aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/gstreamer1
diff options
context:
space:
mode:
authorkwm <kwm@FreeBSD.org>2013-11-02 06:14:07 +0800
committerkwm <kwm@FreeBSD.org>2013-11-02 06:14:07 +0800
commit1a8785035bcea4385a2ef2b954860630a0805972 (patch)
treeb260b05e7fe7e534f08af61d8504ddf8a7ab5a49 /multimedia/gstreamer1
parent77c3437069513ce4c186a3089baef619f66b5999 (diff)
downloadfreebsd-ports-gnome-1a8785035bcea4385a2ef2b954860630a0805972.tar.gz
freebsd-ports-gnome-1a8785035bcea4385a2ef2b954860630a0805972.tar.zst
freebsd-ports-gnome-1a8785035bcea4385a2ef2b954860630a0805972.zip
Stagify Gstreamer ports.
Fix build of gstreamer and gstreamer1 with glib 2.38.x [1]. Update gstreamer and gstreamer-plugins to new rules, USES=gmake pathfix, new LIB_DEPENDS syntax. Only pull in flex if base version is too old. Be more selective for which OSVERSIONS we need gcc due to the clang bug. Obtained from: Gstreamer upstream [1]
Diffstat (limited to 'multimedia/gstreamer1')
-rw-r--r--multimedia/gstreamer1/Makefile17
-rw-r--r--multimedia/gstreamer1/files/patch-gst_gstdatetime.c12
-rw-r--r--multimedia/gstreamer1/pkg-plist3
3 files changed, 26 insertions, 6 deletions
diff --git a/multimedia/gstreamer1/Makefile b/multimedia/gstreamer1/Makefile
index 2563620ee20b..d4da8794686f 100644
--- a/multimedia/gstreamer1/Makefile
+++ b/multimedia/gstreamer1/Makefile
@@ -17,8 +17,6 @@ PORTSCOUT= limitw:1,even
CFLAGS:= ${CFLAGS} -O2 -Wno-format
USES= bison gettext gmake pathfix pkgconfig
-# workaround a crash in clang 3.3, llvm bug # 15840
-USE_GCC= any
USE_XZ= yes
USE_GNOME= glib20 gnomehier introspection:build ltverhack:0 ltasneededhack
USE_AUTOTOOLS= libtool
@@ -35,15 +33,17 @@ PLIST_SUB= VERSION=${GST10_VERSION}
USE_LDCONFIG= yes
GST10_VERSION= ${PORTVERSION:R}
-MAN1= gst-inspect-${GST10_VERSION}.1 gst-launch-${GST10_VERSION}.1 \
- gst-typefind-${GST10_VERSION}.1
-
OPTIONS_DEFINE= LIBCHECK
LIBCHECK_DESC= Unit tests support
-NO_STAGE= yes
.include <bsd.port.options.mk>
+# workaround a crash in clang 3.3 crash llvm bug # 15840
+.if ((${OSVERSION} >= 901504 && ${OSVERSION} < 902502) || \
+ (${OSVERSION} >= 1000037 && ${OSVERSION} < 1000056))
+USE_GCC= any
+.endif
+
.if ${OSVERSION} < 1000033
BUILD_DEPENDS+= ${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex
CONFIGURE_ENV+= FLEX_PATH="${LOCALBASE}/bin/flex"
@@ -62,4 +62,9 @@ post-patch:
@${REINPLACE_CMD} -e 's|-Wmissing-include-dirs||g' \
${WRKSRC}/configure
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgst*-1.0.so.0
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/gstreamer-1.0/libgst*.so
+
.include <bsd.port.mk>
+
diff --git a/multimedia/gstreamer1/files/patch-gst_gstdatetime.c b/multimedia/gstreamer1/files/patch-gst_gstdatetime.c
new file mode 100644
index 000000000000..8eac4d8c76d4
--- /dev/null
+++ b/multimedia/gstreamer1/files/patch-gst_gstdatetime.c
@@ -0,0 +1,12 @@
+--- gst/gstdatetime.c.orig 2013-10-20 16:05:12.000000000 +0200
++++ gst/gstdatetime.c 2013-10-20 16:05:24.000000000 +0200
+@@ -21,8 +21,8 @@
+ #include "config.h"
+ #endif
+
+-#include "glib-compat-private.h"
+ #include "gst_private.h"
++#include "glib-compat-private.h"
+ #include "gstdatetime.h"
+ #include "gstvalue.h"
+ #include <glib.h>
diff --git a/multimedia/gstreamer1/pkg-plist b/multimedia/gstreamer1/pkg-plist
index 154475fda01d..398249d75c87 100644
--- a/multimedia/gstreamer1/pkg-plist
+++ b/multimedia/gstreamer1/pkg-plist
@@ -122,6 +122,9 @@ libdata/pkgconfig/gstreamer-base-%%VERSION%%.pc
libdata/pkgconfig/gstreamer-controller-%%VERSION%%.pc
libdata/pkgconfig/gstreamer-net-%%VERSION%%.pc
libexec/gstreamer-%%VERSION%%/gst-plugin-scanner
+man/man1/gst-inspect-1.0.1.gz
+man/man1/gst-launch-1.0.1.gz
+man/man1/gst-typefind-1.0.1.gz
share/aclocal/gst-element-check-%%VERSION%%.m4
share/gir-1.0/Gst-%%VERSION%%.gir
share/gir-1.0/GstBase-%%VERSION%%.gir