[PATCH] multimedia/gstreamer: Add NLS, trim pkg-plist
nemysis
nemysis at gmx.ch
Wed Jun 19 03:57:56 UTC 2013
>Submitter-Id: current-users
>Originator: nemysis
>Organization:
>Confidential: no
>Synopsis: [PATCH] multimedia/gstreamer: Add NLS, trim pkg-plist
>Severity: non-critical
>Priority: low
>Category: ports
>Class: change-request
>Release: FreeBSD 9.1-RELEASE-p3 amd64
>Environment:
System: FreeBSD FreeBSD_Ports 9.1-RELEASE-p3 FreeBSD 9.1-RELEASE-p3 #0: Mon Apr 29 18:27:25 UTC 2013
>Description:
- Add NLS Option
- Trim pkg-plist
- Make portlint happy, license
Port maintainer (multimedia at FreeBSD.org) is cc'd.
Generated and tested manually, tested with port test and with RedPorts, sent with FreeBSD Port Tools 0.99_7 (mode: change, diff: ports)
>How-To-Repeat:
Build log
https://redports.org/buildarchive/20130619032601-29530/
>Fix:
--- gstreamer-0.10.36.patch begins here ---
diff -ruN /usr/ports/multimedia/gstreamer/Makefile ./Makefile
--- /usr/ports/multimedia/gstreamer/Makefile 2013-06-02 18:56:37.000000000 +0200
+++ ./Makefile 2013-06-19 05:23:26.000000000 +0200
@@ -10,14 +10,14 @@
MAINTAINER= multimedia at FreeBSD.org
COMMENT= Development framework for creating media applications
+LICENSE= LGPL20
+
BUILD_DEPENDS= ${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex \
gobject-introspection>=0.9.12:${PORTSDIR}/devel/gobject-introspection
RUN_DEPENDS= ${LOCALBASE}/share/gir-1.0/GLib-2.0.gir:${PORTSDIR}/devel/gobject-introspection
-LICENSE= LGPL20
-LICENSE_FILE= ${WRKSRC}/COPYING
CFLAGS:= ${CFLAGS} -O2 -Wno-format
-USES= bison pathfix pkgconfig gettext
+USES= bison pathfix pkgconfig
# workaround a crash in clang 3.3 crash llvm bug # 15840
USE_GCC= any
USE_BZIP2= yes
@@ -41,7 +41,7 @@
gst-typefind-${GST_VERSION}.1 gst-xmlinspect-${GST_VERSION}.1 \
gst-xmllaunch-${GST_VERSION}.1
-OPTIONS_DEFINE= LIBCHECK
+OPTIONS_DEFINE= LIBCHECK NLS
LIBCHECK_DESC= Unit tests support
.include <bsd.port.pre.mk>
@@ -54,6 +54,14 @@
PLIST_SUB+= CHECK="@comment "
.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 -ruN /usr/ports/multimedia/gstreamer/pkg-plist ./pkg-plist
--- /usr/ports/multimedia/gstreamer/pkg-plist 2013-06-02 18:56:37.000000000 +0200
+++ ./pkg-plist 2013-06-19 04:36:57.000000000 +0200
@@ -141,46 +141,46 @@
%%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
- at dirrmtry share/locale/rw/LC_MESSAGES
- at 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
--- gstreamer-0.10.36.patch ends here ---
More information about the freebsd-multimedia
mailing list