aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2004-04-05 12:06:42 +0800
committermarcus <marcus@FreeBSD.org>2004-04-05 12:06:42 +0800
commitcbd187544a1d42f25f675026952d096d79b5a1a3 (patch)
treeb53605d4b7f28873b7aae271d7e9c2ac1ae4c2c2
parent586976b8f5a5c86b39299c9981d4db6daf6b7df9 (diff)
downloadfreebsd-ports-gnome-cbd187544a1d42f25f675026952d096d79b5a1a3.tar.gz
freebsd-ports-gnome-cbd187544a1d42f25f675026952d096d79b5a1a3.tar.zst
freebsd-ports-gnome-cbd187544a1d42f25f675026952d096d79b5a1a3.zip
Add gstreamer-ffmpeg, a GStreamer plug-in for manipulating MPEG video streams.
Submitted by: Koop Mast <kwm@rainbow-runner.nl>
-rw-r--r--multimedia/Makefile1
-rw-r--r--multimedia/gstreamer-ffmpeg/Makefile52
-rw-r--r--multimedia/gstreamer-ffmpeg/distinfo2
-rw-r--r--multimedia/gstreamer-ffmpeg/files/ia64-patch-ffmpeg::configure10
-rw-r--r--multimedia/gstreamer-ffmpeg/files/patch-configure20
-rw-r--r--multimedia/gstreamer-ffmpeg/files/patch-ext_ffmpeg_gstffmpegcodecmap.c31
-rw-r--r--multimedia/gstreamer-ffmpeg/files/patch-ltmain.sh51
-rw-r--r--multimedia/gstreamer-ffmpeg/pkg-descr5
-rw-r--r--multimedia/gstreamer-ffmpeg/pkg-plist3
-rw-r--r--multimedia/gstreamer-ffmpeg80/Makefile52
-rw-r--r--multimedia/gstreamer-ffmpeg80/distinfo2
-rw-r--r--multimedia/gstreamer-ffmpeg80/files/ia64-patch-ffmpeg::configure10
-rw-r--r--multimedia/gstreamer-ffmpeg80/files/patch-configure20
-rw-r--r--multimedia/gstreamer-ffmpeg80/files/patch-ext_ffmpeg_gstffmpegcodecmap.c31
-rw-r--r--multimedia/gstreamer-ffmpeg80/files/patch-ltmain.sh51
-rw-r--r--multimedia/gstreamer-ffmpeg80/pkg-descr5
-rw-r--r--multimedia/gstreamer-ffmpeg80/pkg-plist3
17 files changed, 349 insertions, 0 deletions
diff --git a/multimedia/Makefile b/multimedia/Makefile
index 780e49b070a6..1480e9778768 100644
--- a/multimedia/Makefile
+++ b/multimedia/Makefile
@@ -26,6 +26,7 @@
SUBDIR += gopchop
SUBDIR += gstreamer
SUBDIR += gstreamer-editor
+ SUBDIR += gstreamer-ffmpeg
SUBDIR += gstreamer-player
SUBDIR += gstreamer-plugins
SUBDIR += gsubedit
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 <kwm@rainbow-runner.nl>
+#
+# $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 <bsd.port.pre.mk>
+
+.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 <bsd.port.post.mk>
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
diff --git a/multimedia/gstreamer-ffmpeg80/Makefile b/multimedia/gstreamer-ffmpeg80/Makefile
new file mode 100644
index 000000000000..5df361547551
--- /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.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 <bsd.port.pre.mk>
+
+.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 <bsd.port.post.mk>
diff --git a/multimedia/gstreamer-ffmpeg80/distinfo b/multimedia/gstreamer-ffmpeg80/distinfo
new file mode 100644
index 000000000000..a31890d573c2
--- /dev/null
+++ b/multimedia/gstreamer-ffmpeg80/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-ffmpeg80/files/ia64-patch-ffmpeg::configure b/multimedia/gstreamer-ffmpeg80/files/ia64-patch-ffmpeg::configure
new file mode 100644
index 000000000000..f4c1cb8ae5f6
--- /dev/null
+++ b/multimedia/gstreamer-ffmpeg80/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-ffmpeg80/files/patch-configure b/multimedia/gstreamer-ffmpeg80/files/patch-configure
new file mode 100644
index 000000000000..9bfbd28d15fd
--- /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_gstffmpegcodecmap.c b/multimedia/gstreamer-ffmpeg80/files/patch-ext_ffmpeg_gstffmpegcodecmap.c
new file mode 100644
index 000000000000..18025870866b
--- /dev/null
+++ b/multimedia/gstreamer-ffmpeg80/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-ffmpeg80/files/patch-ltmain.sh b/multimedia/gstreamer-ffmpeg80/files/patch-ltmain.sh
new file mode 100644
index 000000000000..e780774b31b4
--- /dev/null
+++ b/multimedia/gstreamer-ffmpeg80/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-ffmpeg80/pkg-descr b/multimedia/gstreamer-ffmpeg80/pkg-descr
new file mode 100644
index 000000000000..b8a091e3522f
--- /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 000000000000..1cdb885303a5
--- /dev/null
+++ b/multimedia/gstreamer-ffmpeg80/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