diff options
Diffstat (limited to 'multimedia')
7 files changed, 106 insertions, 0 deletions
diff --git a/multimedia/gstreamer-ffmpeg80/Makefile b/multimedia/gstreamer-ffmpeg80/Makefile new file mode 100644 index 000000000..487118ea4 --- /dev/null +++ b/multimedia/gstreamer-ffmpeg80/Makefile @@ -0,0 +1,52 @@ +# 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$ +# + +PORTNAME= gstreamer +PORTVERSION= 0.8.7 +PORTREVISION= 1 +CATEGORIES= multimedia +MASTER_SITES= http://gstreamer.freedesktop.org/src/gst-ffmpeg/ +PKGNAMESUFFIX= -ffmpeg80 +DISTNAME= gst-ffmpeg-${PORTVERSION} + +MAINTAINER= kwm@FreeBSD.org +COMMENT= GStreamer plug-in for manipulating MPEG video streams + +USE_X_PREFIX= yes +USE_BZIP2= yes +USE_REINPLACE= yes +USE_GMAKE= yes +USE_GNOME= gnometarget +USE_GSTREAMER80= yes +USE_AUTOTOOLS= libtool:15 +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-${GST_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..abb70b9ec --- /dev/null +++ b/multimedia/gstreamer-ffmpeg80/distinfo @@ -0,0 +1,2 @@ +MD5 (gst-ffmpeg-0.8.7.tar.bz2) = 6435ef3954ee05de79829e262f86187a +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..969012bef --- /dev/null +++ b/multimedia/gstreamer-ffmpeg80/pkg-plist @@ -0,0 +1,4 @@ +@exec %D/bin/gst-register-%%VERSION%% --gst-registry=%D/share/gnome/cache/gstreamer-%%VERSION%%/registry.xml 2>/dev/null || true +lib/gstreamer-%%VERSION%%/libgstffmpeg.so +lib/gstreamer-%%VERSION%%/libgstpostproc.so +@unexec %D/bin/gst-register-%%GST80_VERSION%% --gst-registry=%D/share/gnome/cache/gstreamer-%%VERSION%%/registry.xml 2>/dev/null || true |