summaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authorahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-07-20 21:48:13 +0800
committerahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-07-20 21:48:13 +0800
commit548115082f995ef53c844409dac38caad56eee49 (patch)
tree6ed22a78938a762506d2979c262187a04b0f8090 /multimedia
parent5e2d69e54e27b58685b18389a3196005048175e2 (diff)
downloadmarcuscom-ports-548115082f995ef53c844409dac38caad56eee49.tar
marcuscom-ports-548115082f995ef53c844409dac38caad56eee49.tar.gz
marcuscom-ports-548115082f995ef53c844409dac38caad56eee49.tar.bz2
marcuscom-ports-548115082f995ef53c844409dac38caad56eee49.tar.lz
marcuscom-ports-548115082f995ef53c844409dac38caad56eee49.tar.xz
marcuscom-ports-548115082f995ef53c844409dac38caad56eee49.tar.zst
marcuscom-ports-548115082f995ef53c844409dac38caad56eee49.zip
- Move to LOCALBASE:
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6669 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/gstreamer-ffmpeg80/Makefile50
-rw-r--r--multimedia/gstreamer-ffmpeg80/distinfo3
-rw-r--r--multimedia/gstreamer-ffmpeg80/files/extra-patch-gst-libs_ext_ffmpeg_libavformat_nut.c12
-rw-r--r--multimedia/gstreamer-ffmpeg80/files/patch-configure20
-rw-r--r--multimedia/gstreamer-ffmpeg80/files/patch-ext_ffmpeg_Makefile.in11
-rw-r--r--multimedia/gstreamer-ffmpeg80/pkg-descr5
-rw-r--r--multimedia/gstreamer-ffmpeg80/pkg-plist6
7 files changed, 107 insertions, 0 deletions
diff --git a/multimedia/gstreamer-ffmpeg80/Makefile b/multimedia/gstreamer-ffmpeg80/Makefile
new file mode 100644
index 000000000..de581fa7d
--- /dev/null
+++ b/multimedia/gstreamer-ffmpeg80/Makefile
@@ -0,0 +1,50 @@
+# New ports collection makefile for: gstreamer ffmpeg
+# Date created: Thu Feb 26 20:10:39 CET 2004
+# Whom: Koop Mast <kwm@rainbow-runner.nl>
+#
+# $FreeBSD$
+# $MCom$
+
+PORTNAME= gstreamer
+PORTVERSION= 0.8.7
+PORTREVISION= 4
+CATEGORIES= multimedia
+MASTER_SITES= http://gstreamer.freedesktop.org/src/gst-ffmpeg/
+PKGNAMESUFFIX= -ffmpeg80
+DISTNAME= gst-ffmpeg-${PORTVERSION}
+
+MAINTAINER= multimedia@FreeBSD.org
+COMMENT= GStreamer plug-in for manipulating MPEG video streams
+
+USE_BZIP2= yes
+USE_GMAKE= yes
+USE_GNOME= gnometarget
+USE_GSTREAMER80= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= PKG_CONFIG=${PKG_CONFIG} \
+ CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
+ CFLAGS="${CFLAGS} -fno-force-addr" \
+ LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
+PLIST_SUB= \
+ VERSION="${GST80_VERSION}"
+WITHOUT_CPU_CFLAGS= yes
+
+PKG_CONFIG?="${LOCALBASE}/bin/pkg-config"
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500000
+EXTRA_PATCHES= ${PATCHDIR}/extra-patch-gst-libs_ext_ffmpeg_libavformat_nut.c
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e \
+ 's|make|${GMAKE}|' \
+ ${WRKSRC}/gst-libs/ext/Makefile.in
+
+post-install:
+# register plugins
+ -@${X11BASE}/bin/gst-register-${GST80_VERSION} \
+ --gst-registry=${PREFIX}/share/gnome/cache/gstreamer-${GST80_VERSION}/registry.xml 2>/dev/null
+
+.include <bsd.port.post.mk>
diff --git a/multimedia/gstreamer-ffmpeg80/distinfo b/multimedia/gstreamer-ffmpeg80/distinfo
new file mode 100644
index 000000000..d031ea23b
--- /dev/null
+++ b/multimedia/gstreamer-ffmpeg80/distinfo
@@ -0,0 +1,3 @@
+MD5 (gst-ffmpeg-0.8.7.tar.bz2) = 6435ef3954ee05de79829e262f86187a
+SHA256 (gst-ffmpeg-0.8.7.tar.bz2) = 42c5c1ce64ac1ca382e1d95cc48d5e1d6aa48391f22d99c3dc0dc4cd5ab1a414
+SIZE (gst-ffmpeg-0.8.7.tar.bz2) = 2110685
diff --git a/multimedia/gstreamer-ffmpeg80/files/extra-patch-gst-libs_ext_ffmpeg_libavformat_nut.c b/multimedia/gstreamer-ffmpeg80/files/extra-patch-gst-libs_ext_ffmpeg_libavformat_nut.c
new file mode 100644
index 000000000..1c1fc628e
--- /dev/null
+++ b/multimedia/gstreamer-ffmpeg80/files/extra-patch-gst-libs_ext_ffmpeg_libavformat_nut.c
@@ -0,0 +1,12 @@
+--- gst-libs/ext/ffmpeg/libavformat/nut.c.orig Wed Apr 14 20:38:02 2004
++++ gst-libs/ext/ffmpeg/libavformat/nut.c Sun Jul 11 18:14:19 2004
+@@ -59,6 +59,9 @@
+ #define FLAG_FULL_PTS 4
+ #define FLAG_KEY_FRAME 32
+
++// UINT64_MAX isn't defined on FreeBSD 4.x borrow it from 5.x
++#define UINT64_MAX 0xffffffffffffffffULL
++
+ typedef struct {
+ uint8_t flags;
+ uint8_t stream_id_plus1;
diff --git a/multimedia/gstreamer-ffmpeg80/files/patch-configure b/multimedia/gstreamer-ffmpeg80/files/patch-configure
new file mode 100644
index 000000000..9bfbd28d1
--- /dev/null
+++ b/multimedia/gstreamer-ffmpeg80/files/patch-configure
@@ -0,0 +1,20 @@
+--- configure.orig Thu Feb 26 19:28:07 2004
++++ configure Thu Feb 26 21:10:52 2004
+@@ -19472,7 +19473,7 @@
+ echo $ECHO_N "checking to see if compiler understands -Werror... $ECHO_C" >&6
+
+ save_CFLAGS="$CFLAGS"
+- CFLAGS="$CFLAGS -Werror"
++ CFLAGS="$CFLAGS"
+
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+@@ -19513,7 +19514,7 @@
+ CFLAGS="$save_CFLAGS"
+
+ if test "X$flag_ok" = Xyes ; then
+- GST_ERROR="$GST_ERROR -Werror"
++ GST_ERROR="$GST_ERROR"
+ true
+ else
+ GST_ERROR="$GST_ERROR"
diff --git a/multimedia/gstreamer-ffmpeg80/files/patch-ext_ffmpeg_Makefile.in b/multimedia/gstreamer-ffmpeg80/files/patch-ext_ffmpeg_Makefile.in
new file mode 100644
index 000000000..ec9dfaf85
--- /dev/null
+++ b/multimedia/gstreamer-ffmpeg80/files/patch-ext_ffmpeg_Makefile.in
@@ -0,0 +1,11 @@
+--- ext/ffmpeg/Makefile.in.orig Wed Mar 9 19:50:50 2005
++++ ext/ffmpeg/Makefile.in Wed Mar 9 19:51:23 2005
+@@ -164,7 +164,7 @@
+ INSTALL_PROGRAM = @INSTALL_PROGRAM@
+ INSTALL_SCRIPT = @INSTALL_SCRIPT@
+ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+-LDFLAGS = @LDFLAGS@
++LDFLAGS = @LDFLAGS@ -Wl,-Bsymbolic -lc
+ LIBOBJS = @LIBOBJS@
+ LIBS = @LIBS@
+ LIBTOOL = @LIBTOOL@
diff --git a/multimedia/gstreamer-ffmpeg80/pkg-descr b/multimedia/gstreamer-ffmpeg80/pkg-descr
new file mode 100644
index 000000000..b8a091e35
--- /dev/null
+++ b/multimedia/gstreamer-ffmpeg80/pkg-descr
@@ -0,0 +1,5 @@
+The Gstreamer ffmpeg package provides mpeg support for Gstreamer.
+It includes codecs for most popular formats, and optimized
+colourspace conversion.
+
+WWW: http://gstreamer.freedesktop.org/
diff --git a/multimedia/gstreamer-ffmpeg80/pkg-plist b/multimedia/gstreamer-ffmpeg80/pkg-plist
new file mode 100644
index 000000000..8f34c517f
--- /dev/null
+++ b/multimedia/gstreamer-ffmpeg80/pkg-plist
@@ -0,0 +1,6 @@
+@exec %D/bin/gst-register-%%VERSION%% --gst-registry=%D/share/gnome/cache/gstreamer-%%VERSION%%/registry.xml 2>/dev/null || true
+lib/gstreamer-%%VERSION%%/libgstffmpeg.la
+lib/gstreamer-%%VERSION%%/libgstffmpeg.so
+lib/gstreamer-%%VERSION%%/libgstpostproc.la
+lib/gstreamer-%%VERSION%%/libgstpostproc.so
+@unexec %D/bin/gst-register-%%VERSION%% --gst-registry=%D/share/gnome/cache/gstreamer-%%VERSION%%/registry.xml 2>/dev/null || true