aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authorriggs <riggs@FreeBSD.org>2014-07-19 21:18:38 +0800
committerriggs <riggs@FreeBSD.org>2014-07-19 21:18:38 +0800
commit2eb62caef78ea241d87a599e2128684a11c437b1 (patch)
tree1eabfa0c028afa275d650711c1e35bab9841b5d9 /multimedia
parentc9db6fffa51e952b27485e1e4373c1f24c974fcb (diff)
downloadfreebsd-ports-gnome-2eb62caef78ea241d87a599e2128684a11c437b1.tar.gz
freebsd-ports-gnome-2eb62caef78ea241d87a599e2128684a11c437b1.tar.zst
freebsd-ports-gnome-2eb62caef78ea241d87a599e2128684a11c437b1.zip
- Add NLS option
PR: 179701 Submitted by: nemysis@gmx.ch Approved by: mentors (implicit)
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/gstreamer/Makefile12
-rw-r--r--multimedia/gstreamer/pkg-plist80
2 files changed, 50 insertions, 42 deletions
diff --git a/multimedia/gstreamer/Makefile b/multimedia/gstreamer/Makefile
index 8bc6d915b771..f0914f119718 100644
--- a/multimedia/gstreamer/Makefile
+++ b/multimedia/gstreamer/Makefile
@@ -15,7 +15,7 @@ LICENSE= LGPL20
LICENSE_FILE= ${WRKSRC}/COPYING
CFLAGS:= ${CFLAGS} -O2 -Wno-format
-USES= bison gettext gmake libtool:keepla pathfix pkgconfig tar:bzip2
+USES= bison gmake libtool:keepla pathfix pkgconfig tar:bzip2
USE_GNOME= glib20 introspection libxml2
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-tests \
@@ -30,7 +30,7 @@ USE_LDCONFIG= yes
INSTALL_TARGET= install-strip
GST_VERSION= 0.10
-OPTIONS_DEFINE= LIBCHECK
+OPTIONS_DEFINE= LIBCHECK NLS
LIBCHECK_DESC= Unit tests support
.include <bsd.port.pre.mk>
@@ -54,6 +54,14 @@ BUILD_DEPENDS+= ${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex
CONFIGURE_ENV+= FLEX_PATH="${LOCALBASE}/bin/flex"
.endif
+.if ${PORT_OPTIONS:MNLS}
+USES+= gettext
+PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB+= NLS="@comment "
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|-Wmissing-include-dirs||g' \
${WRKSRC}/configure
diff --git a/multimedia/gstreamer/pkg-plist b/multimedia/gstreamer/pkg-plist
index 07f8391661e0..4c4e4061e586 100644
--- a/multimedia/gstreamer/pkg-plist
+++ b/multimedia/gstreamer/pkg-plist
@@ -153,46 +153,46 @@ share/gir-1.0/GstBase-%%VERSION%%.gir
%%CHECK%%share/gir-1.0/GstCheck-%%VERSION%%.gir
share/gir-1.0/GstController-%%VERSION%%.gir
share/gir-1.0/GstNet-%%VERSION%%.gir
-share/locale/af/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/az/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/be/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/bg/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/ca/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/cs/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/da/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/de/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/el/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/en_GB/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/eo/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/eu/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/es/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/fi/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/fr/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/gl/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/hu/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/id/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/it/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/ja/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/lt/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/nb/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/nl/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/pl/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/pt_BR/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/ro/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/ru/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/rw/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/sk/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/sl/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/sq/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/sr/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/sv/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/tr/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/uk/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/vi/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/zh_CN/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-share/locale/zh_TW/LC_MESSAGES/gstreamer-%%VERSION%%.mo
-@dirrmtry share/locale/rw/LC_MESSAGES
-@dirrmtry share/locale/rw
+%%NLS%%share/locale/af/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/az/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/be/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/bg/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/ca/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/da/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/de/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/el/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/en_GB/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/eo/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/es/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/eu/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/fi/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/gl/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/hu/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/id/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/it/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/ja/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/lt/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/nb/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/ro/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/rw/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/sk/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/sl/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/sq/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/sr/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/tr/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/uk/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/vi/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/zh_CN/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%share/locale/zh_TW/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+%%NLS%%@dirrmtry share/locale/rw/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/rw
@dirrm libexec/gstreamer-%%VERSION%%
@dirrm lib/gstreamer-%%VERSION%%
@dirrm include/gstreamer-%%VERSION%%/gst/net