From 0eb9d570066ff8987347d5a6c88bb8e3ca7a9cd8 Mon Sep 17 00:00:00 2001 From: Joe Marcus Clarke Date: Mon, 5 Apr 2004 04:06:42 +0000 Subject: Add gstreamer-ffmpeg, a GStreamer plug-in for manipulating MPEG video streams. Submitted by: Koop Mast --- multimedia/gstreamer-ffmpeg/Makefile | 52 ++++++++++++++++++++++ multimedia/gstreamer-ffmpeg/distinfo | 2 + .../files/ia64-patch-ffmpeg::configure | 10 +++++ multimedia/gstreamer-ffmpeg/files/patch-configure | 20 +++++++++ .../files/patch-ext_ffmpeg_gstffmpegcodecmap.c | 31 +++++++++++++ multimedia/gstreamer-ffmpeg/files/patch-ltmain.sh | 51 +++++++++++++++++++++ multimedia/gstreamer-ffmpeg/pkg-descr | 5 +++ multimedia/gstreamer-ffmpeg/pkg-plist | 3 ++ 8 files changed, 174 insertions(+) create mode 100644 multimedia/gstreamer-ffmpeg/Makefile create mode 100644 multimedia/gstreamer-ffmpeg/distinfo create mode 100644 multimedia/gstreamer-ffmpeg/files/ia64-patch-ffmpeg::configure create mode 100644 multimedia/gstreamer-ffmpeg/files/patch-configure create mode 100644 multimedia/gstreamer-ffmpeg/files/patch-ext_ffmpeg_gstffmpegcodecmap.c create mode 100644 multimedia/gstreamer-ffmpeg/files/patch-ltmain.sh create mode 100644 multimedia/gstreamer-ffmpeg/pkg-descr create mode 100644 multimedia/gstreamer-ffmpeg/pkg-plist (limited to 'multimedia/gstreamer-ffmpeg') diff --git a/multimedia/gstreamer-ffmpeg/Makefile b/multimedia/gstreamer-ffmpeg/Makefile new file mode 100644 index 000000000000..5df361547551 --- /dev/null +++ b/multimedia/gstreamer-ffmpeg/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 +# +# $FreeBSD$ +# + +PORTNAME= gstreamer +PORTVERSION= 0.8.0 +CATEGORIES= multimedia +MASTER_SITES= http://gstreamer.freedesktop.org/src/gst-ffmpeg/ +PKGNAMESUFFIX= -ffmpeg +DISTNAME= gst-ffmpeg-${PORTVERSION} + +MAINTAINER= kwm@rainbow-runner.nl +COMMENT= GStreamer plug-in for manipulating MPEG video streams + +LIB_DEPENDS= gstreamer-0.8.1:${PORTSDIR}/multimedia/gstreamer + +USE_X_PREFIX= yes +USE_BZIP2= yes +USE_REINPLACE= yes +USE_GMAKE= yes +USE_GNOME= gnomehack \ + gnomeprefix +GNU_CONFIGURE= yes +CONFIGURE_ENV= PKG_CONFIG=${PKG_CONFIG} \ + CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \ + LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" +PLIST_SUB= \ + VERSION="${GST_VERSION}" +INSTALLS_SHLIB= yes + +PKG_CONFIG?="${LOCALBASE}/bin/pkg-config" +GST_VERSION=${PORTVERSION:C/..$//} + +.include + +.if ${ARCH} == "ia64" || ${ARCH} == "amd64" +EXTRA_PATCHES+= ${FILESDIR}/ia64-patch-ffmpeg::configure +.endif + +post-patch: + @${REINPLACE_CMD} -E -e \ + 's|make|${GMAKE}|' \ + ${WRKSRC}/gst-libs/ext/Makefile.in + +post-install: +# register plugins + -@${X11BASE}/bin/gst-register-${GST_VERSION} 2>/dev/null + +.include diff --git a/multimedia/gstreamer-ffmpeg/distinfo b/multimedia/gstreamer-ffmpeg/distinfo new file mode 100644 index 000000000000..a31890d573c2 --- /dev/null +++ b/multimedia/gstreamer-ffmpeg/distinfo @@ -0,0 +1,2 @@ +MD5 (gst-ffmpeg-0.8.0.tar.bz2) = 26dd962c37e886cbc3be167680a44ee4 +SIZE (gst-ffmpeg-0.8.0.tar.bz2) = 1558194 diff --git a/multimedia/gstreamer-ffmpeg/files/ia64-patch-ffmpeg::configure b/multimedia/gstreamer-ffmpeg/files/ia64-patch-ffmpeg::configure new file mode 100644 index 000000000000..f4c1cb8ae5f6 --- /dev/null +++ b/multimedia/gstreamer-ffmpeg/files/ia64-patch-ffmpeg::configure @@ -0,0 +1,10 @@ +--- gst-libs/ext/ffmpeg/ffmpeg/configure.bak Sat Sep 27 18:39:42 2003 ++++ gst-libs/ext/ffmpeg/ffmpeg/configure Sat Sep 27 19:53:52 2003 +@@ -119,6 +119,7 @@ + v4l="no" + audio_oss="yes" + make="gmake" ++CFLAGS="$CFLAGS -fPIC -DPIC" + LDFLAGS="$LDFLAGS -export-dynamic" + ;; + BSD/OS) diff --git a/multimedia/gstreamer-ffmpeg/files/patch-configure b/multimedia/gstreamer-ffmpeg/files/patch-configure new file mode 100644 index 000000000000..9bfbd28d15fd --- /dev/null +++ b/multimedia/gstreamer-ffmpeg/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-ffmpeg/files/patch-ext_ffmpeg_gstffmpegcodecmap.c b/multimedia/gstreamer-ffmpeg/files/patch-ext_ffmpeg_gstffmpegcodecmap.c new file mode 100644 index 000000000000..18025870866b --- /dev/null +++ b/multimedia/gstreamer-ffmpeg/files/patch-ext_ffmpeg_gstffmpegcodecmap.c @@ -0,0 +1,31 @@ +--- ext/ffmpeg/gstffmpegcodecmap.c.orig Fri Feb 6 15:29:09 2004 ++++ ext/ffmpeg/gstffmpegcodecmap.c Fri Feb 6 15:40:14 2004 +@@ -44,13 +44,13 @@ + "width", G_TYPE_INT, context->width, \ + "height", G_TYPE_INT, context->height, \ + "framerate", G_TYPE_DOUBLE, 1. * context->frame_rate / \ +- context->frame_rate_base, \ ++ context->frame_rate_base , \ + ##props, NULL) \ + : \ + gst_caps_new_simple (mimetype, \ + "width", GST_TYPE_INT_RANGE, 16, 4096, \ + "height", GST_TYPE_INT_RANGE, 16, 4096, \ +- "framerate", GST_TYPE_DOUBLE_RANGE, 0., G_MAXDOUBLE, \ ++ "framerate", GST_TYPE_DOUBLE_RANGE, 0., G_MAXDOUBLE , \ + ##props, NULL) + + /* same for audio - now with channels/sample rate +@@ -60,10 +60,10 @@ + (context != NULL) ? \ + gst_caps_new_simple (mimetype, \ + "rate", G_TYPE_INT, context->sample_rate, \ +- "channels", G_TYPE_INT, context->channels, \ ++ "channels", G_TYPE_INT, context->channels , \ + ##props, NULL) \ + : \ +- gst_caps_new_simple (mimetype, \ ++ gst_caps_new_simple (mimetype , \ + ##props, NULL) + + /* Convert a FFMPEG codec ID and optional AVCodecContext diff --git a/multimedia/gstreamer-ffmpeg/files/patch-ltmain.sh b/multimedia/gstreamer-ffmpeg/files/patch-ltmain.sh new file mode 100644 index 000000000000..e780774b31b4 --- /dev/null +++ b/multimedia/gstreamer-ffmpeg/files/patch-ltmain.sh @@ -0,0 +1,51 @@ +--- ltmain.sh.orig Thu Feb 26 13:28:02 2004 ++++ ltmain.sh Fri Feb 27 02:56:45 2004 +@@ -1280,7 +1280,7 @@ + esac + elif test "X$arg" = "X-lc_r"; then + case $host in +- *-*-openbsd* | *-*-freebsd*) ++ *-*-openbsd* | *-*-freebsd4*) + # Do not include libc_r directly, use -pthread flag. + continue + ;; +@@ -1290,8 +1290,16 @@ + continue + ;; + ++ -pthread) ++ compile_command="$compile_command -pthread" ++ finalize_command="$finalize_command -pthread" ++ compiler_flags="$compiler_flags -pthread" ++ continue ++ ;; ++ + -module) + module=yes ++ build_old_libs=no + continue + ;; + +@@ -3000,6 +3008,9 @@ + # problems, so we reset it completely + verstring= + ;; ++ *-*-freebsd*) ++ # FreeBSD doesn't need this ... ++ ;; + *) + verstring="0.0" + ;; +@@ -5428,10 +5439,12 @@ + fi + + # Install the pseudo-library for information purposes. ++ if /usr/bin/false; then + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` + instname="$dir/$name"i + $show "$install_prog $instname $destdir/$name" + $run eval "$install_prog $instname $destdir/$name" || exit $? ++ fi + + # Maybe install the static library, too. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" diff --git a/multimedia/gstreamer-ffmpeg/pkg-descr b/multimedia/gstreamer-ffmpeg/pkg-descr new file mode 100644 index 000000000000..b8a091e3522f --- /dev/null +++ b/multimedia/gstreamer-ffmpeg/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-ffmpeg/pkg-plist b/multimedia/gstreamer-ffmpeg/pkg-plist new file mode 100644 index 000000000000..1cdb885303a5 --- /dev/null +++ b/multimedia/gstreamer-ffmpeg/pkg-plist @@ -0,0 +1,3 @@ +@unexec %D/bin/gst-register 2>/dev/null || true +lib/gstreamer-%%VERSION%%/libgstffmpeg.so +@exec %D/bin/gst-register 2>/dev/null || true -- cgit v1.2.3