aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2013-02-23 05:26:17 +0800
committerjkim <jkim@FreeBSD.org>2013-02-23 05:26:17 +0800
commit9e46b107ae53d2dc5fe8de0ee30df88d81ff9ac1 (patch)
tree7069abc33f1337fce67f7d331c96447e469fec5c /www
parent0082e6219322785a7e0ef3e499ab0e4685fcd110 (diff)
downloadfreebsd-ports-gnome-9e46b107ae53d2dc5fe8de0ee30df88d81ff9ac1.tar.gz
freebsd-ports-gnome-9e46b107ae53d2dc5fe8de0ee30df88d81ff9ac1.tar.zst
freebsd-ports-gnome-9e46b107ae53d2dc5fe8de0ee30df88d81ff9ac1.zip
Fix plist and improve options.
Diffstat (limited to 'www')
-rw-r--r--www/gecko-mediaplayer/Makefile30
-rw-r--r--www/gecko-mediaplayer/pkg-plist21
2 files changed, 35 insertions, 16 deletions
diff --git a/www/gecko-mediaplayer/Makefile b/www/gecko-mediaplayer/Makefile
index 77d55fffb2cb..799b6e9e1f11 100644
--- a/www/gecko-mediaplayer/Makefile
+++ b/www/gecko-mediaplayer/Makefile
@@ -17,17 +17,21 @@ LIB_DEPENDS= dbus-glib-1:${PORTSDIR}/devel/dbus-glib \
gmlib:${PORTSDIR}/multimedia/gmtk
RUN_DEPENDS= gnome-mplayer:${PORTSDIR}/multimedia/gnome-mplayer
-OPTIONS_DEFINE= NOCACHE DOCS
-NOCACHE_DESC= Disable caching of remote media to local storage
+OPTIONS_DEFINE= CACHE DOCS NLS
+OPTIONS_DEFAULT=CACHE
+CACHE_DESC= Enable caching of remote media to local storage
GNU_CONFIGURE= yes
-USE_GETTEXT= yes
USE_PKGCONFIG= build
USE_GNOME= glib20
USE_GECKO= libxul libxul19
USE_WEBPLUGINS= native
-WEBPLUGINS_FILES= ${PORTNAME}-dvx.so ${PORTNAME}-qt.so ${PORTNAME}-rm.so \
- ${PORTNAME}-wmp.so ${PORTNAME}.so
+
+WEBPLUGINS_FILES= ${PORTNAME}.so
+.for p in dvx rm qt wmp
+WEBPLUGINS_FILES+= ${PORTNAME}-${p}.so
+.endfor
+
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS+=--with-plugin_dir="${WEBPLUGINS_DIR}"
@@ -36,8 +40,18 @@ PORTDOCS= README COPYING AUTHORS ChangeLog INSTALL NEWS javascript.txt
.include <bsd.port.options.mk>
+.if ${PORT_OPTIONS:MNLS}
+USE_GETTEXT= yes
+PLIST_SUB= NLS=""
+.else
+USE_GETTEXT= build
+PLIST_SUB= NLS="@comment "
+.endif
+
.if ${PORT_OPTIONS:MNOCACHE}
CONFIGURE_ARGS+= --disable-caching
+.else
+CONFIGURE_ARGS+= --enable-caching
.endif
post-patch:
@@ -47,7 +61,11 @@ post-patch:
.if empty(PORT_OPTIONS:MDOCS)
@${REINPLACE_CMD} -e \
's|install-gecko_mediaplayerdocDATA install-schemaDATA|install-schemaDATA|' \
- ${WRKSRC}/Makefile.in
+ ${WRKSRC}/Makefile.in
+.endif
+.if empty(PORT_OPTIONS:MNLS)
+ @${REINPLACE_CMD} -e 's/^ALL_LINGUAS=".*"/ALL_LINGUAS=""/' \
+ ${WRKSRC}/configure
.endif
.include "${PORTSDIR}/www/firefox/Makefile.webplugins"
diff --git a/www/gecko-mediaplayer/pkg-plist b/www/gecko-mediaplayer/pkg-plist
index 71aa78154a2b..3f0dfcdca124 100644
--- a/www/gecko-mediaplayer/pkg-plist
+++ b/www/gecko-mediaplayer/pkg-plist
@@ -3,14 +3,15 @@
%%WEBPLUGINS_DIR%%/gecko-mediaplayer-rm.so
%%WEBPLUGINS_DIR%%/gecko-mediaplayer-wmp.so
%%WEBPLUGINS_DIR%%/gecko-mediaplayer.so
-share/locale/cs/LC_MESSAGES/gecko-mediaplayer.mo
-share/locale/de/LC_MESSAGES/gecko-mediaplayer.mo
-share/locale/es/LC_MESSAGES/gecko-mediaplayer.mo
-share/locale/fr/LC_MESSAGES/gecko-mediaplayer.mo
-share/locale/it/LC_MESSAGES/gecko-mediaplayer.mo
-share/locale/ja/LC_MESSAGES/gecko-mediaplayer.mo
-share/locale/nl/LC_MESSAGES/gecko-mediaplayer.mo
-share/locale/pl/LC_MESSAGES/gecko-mediaplayer.mo
-share/locale/pt_BR/LC_MESSAGES/gecko-mediaplayer.mo
-share/locale/tr/LC_MESSAGES/gecko-mediaplayer.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/gecko-mediaplayer.mo
+%%NLS%%share/locale/de/LC_MESSAGES/gecko-mediaplayer.mo
+%%NLS%%share/locale/es/LC_MESSAGES/gecko-mediaplayer.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/gecko-mediaplayer.mo
+%%NLS%%share/locale/it/LC_MESSAGES/gecko-mediaplayer.mo
+%%NLS%%share/locale/ja/LC_MESSAGES/gecko-mediaplayer.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/gecko-mediaplayer.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/gecko-mediaplayer.mo
+%%NLS%%share/locale/pt/LC_MESSAGES/gecko-mediaplayer.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/gecko-mediaplayer.mo
+%%NLS%%share/locale/tr/LC_MESSAGES/gecko-mediaplayer.mo
@dirrmtry %%WEBPLUGINS_DIR%%