aboutsummaryrefslogtreecommitdiff
path: root/www/moonshine/Makefile
blob: 88609cedaa93f5338c0b51cd26e6e4ce6a5072cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# New ports collection makefile for:	moonshine
# Date created:				May 14 2009
# Whom:					Florent Thoumie <flz@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	moonshine
PORTVERSION=	0.7
PORTREVISION=	2
CATEGORIES=	www multimedia
MASTER_SITES=	http://romain.blogreen.org/distfiles/
DISTNAME=	abock-${PORTNAME}-${GITCOMMIT}

MAINTAINER=	mono@FreeBSD.org
COMMENT=	Windows Media playback through Moonlight and Firefox

BUILD_DEPENDS=	bash:${PORTSDIR}/shells/bash
GITCOMMIT=	35085a4

USE_GMAKE=	yes
USE_GECKO=	libxul
USE_AUTOTOOLS=	libtool:22 libtoolize aclocal:111 autoconf:268 autoheader:268 automake:111
LIBTOOLIZE_ARGS=	--force --copy --automake
AUTOMAKE_ARGS=	--gnu --add-missing --force --copy -Wno-portability
ACLOCAL_ARGS=	
CONFIGURE_ARGS=	--with-browser-plugin-dir=${PREFIX}/lib/browser_plugins/${PORTNAME}/

USE_WEBPLUGINS=		gecko19
WEBPLUGINS_DIR=		${PREFIX}/lib/browser_plugins/${PORTNAME}/
WEBPLUGINS_FILES=	libmoonshine-plugin.so

.include <bsd.port.pre.mk>
.include "${PORTSDIR}/www/firefox/Makefile.webplugins"

ONLY_FOR_ARCHS=	i386 amd64
ONLY_FOR_ARCHS_REASON=	"not yet ported to anything other than i386 and amd64"

.if defined(WITH_XPI_PLUGIN_ONLY)
CONFIGURE_ARGS+=--enable-xpi-build
PLIST=		${NONEXISTENT}
PLIST_FILES=	${WEBPLUGINS_DIR}/${PKGNAME}-freebsd-${OSREL}.xpi
.endif

post-patch:
	${REINPLACE_CMD} -e 's|#!/bin/bash|#!${LOCALBASE}/bin/bash|' \
		${WRKSRC}/plugin/xpi/dist-build/build-all-arch \
		${WRKSRC}/xulrunner/icon-theme-hicolor/icon-theme-installer
	${REINPLACE_CMD} -e 's|sed -r|sed -E|' \
		${WRKSRC}/plugin/Makefile.am \
		${WRKSRC}/plugin/generate-resource

.if defined(WITH_XPI_PLUGIN_ONLY)
do-install:
	${INSTALL_DATA} ${WRKSRC}/plugin/xpi/moonshine.xpi \
		${WEBPLUGINS_DIR}/${PKGNAME}-freebsd-${OSREL}.xpi
.endif

.include <bsd.port.post.mk>