diff options
author | lioux <lioux@FreeBSD.org> | 2002-07-16 05:44:09 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2002-07-16 05:44:09 +0800 |
commit | 820260f4e4da8ca682cc770c51d718f3b18aaf32 (patch) | |
tree | 684c842fe8b38bccd50303671fb3c3bb889fe05c /graphics | |
parent | 126ac7669820d4f895dec16bd0bf63b53ad6179f (diff) | |
download | freebsd-ports-gnome-820260f4e4da8ca682cc770c51d718f3b18aaf32.tar.gz freebsd-ports-gnome-820260f4e4da8ca682cc770c51d718f3b18aaf32.tar.zst freebsd-ports-gnome-820260f4e4da8ca682cc770c51d718f3b18aaf32.zip |
New port gstreamer-plugins version 0.4.0: GStreamer written collection
of plugins handling several media types
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/Makefile | 1 | ||||
-rw-r--r-- | graphics/gstreamer-plugins/Makefile | 540 | ||||
-rw-r--r-- | graphics/gstreamer-plugins/distinfo | 1 | ||||
-rw-r--r-- | graphics/gstreamer-plugins/files/patch-configure | 10 | ||||
-rw-r--r-- | graphics/gstreamer-plugins/files/patch-ext::flac::gstflacdec.c | 83 | ||||
-rw-r--r-- | graphics/gstreamer-plugins/files/patch-ext::flac::gstflacenc.c | 20 | ||||
-rw-r--r-- | graphics/gstreamer-plugins/pkg-comment | 1 | ||||
-rw-r--r-- | graphics/gstreamer-plugins/pkg-descr | 17 | ||||
-rw-r--r-- | graphics/gstreamer-plugins/pkg-plist | 99 |
9 files changed, 772 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile index 40843a8a0b82..290ecbc69d12 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -110,6 +110,7 @@ SUBDIR += gridpix SUBDIR += gsculpt SUBDIR += gstreamer + SUBDIR += gstreamer-plugins SUBDIR += gsubedit SUBDIR += gthumb SUBDIR += gtkdps diff --git a/graphics/gstreamer-plugins/Makefile b/graphics/gstreamer-plugins/Makefile new file mode 100644 index 000000000000..fe69adfda48d --- /dev/null +++ b/graphics/gstreamer-plugins/Makefile @@ -0,0 +1,540 @@ +# New ports collection makefile for: gstreamer plugins +# Date created: Wed Jul 10 23:38:01 UTC 2002 +# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= gstreamer +PORTVERSION= 0.4.0 +CATEGORIES= graphics +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} +PKGNAMESUFFIX= -plugins +DISTNAME= gst-plugins-${PORTVERSION} + +MAINTAINER= lioux@FreeBSD.org + +BUILD_DEPENDS= pkg-config:${PORTSDIR}/devel/pkgconfig +LIB_DEPENDS= glib-2.0.0:${PORTSDIR}/devel/glib20 \ + gstreamer.0:${PORTSDIR}/graphics/gstreamer \ + popt.0:${PORTSDIR}/devel/popt \ + xml2.5:${PORTSDIR}/textproc/libxml2 + +USE_BZIP2= yes +USE_LIBTOOL= yes +USE_REINPLACE= yes +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --disable-tests \ + --disable-alsa \ + --disable-mjpegtools \ + --disable-qcam \ + --disable-v4l +CONFIGURE_ENV= PKG_CONFIG=${PKG_CONFIG} \ + SDL_CONFIG=${SDL_CONFIG} \ + XMMS_CONFIG=${XMMS_CONFIG} \ + CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \ + CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \ + LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" +INSTALLS_SHLIB= yes +PLIST_SUB= LOCALBASE="${LOCALBASE}" + +# for esound detection +WANT_ESOUND= yes + +MAN1= gst-launch-ext.1 gst-visualise.1 + +PKG_CONFIG?="${LOCALBASE}/bin/pkg-config" +SDL_CONFIG?="${LOCALBASE}/bin/sdl11-config" +XMMS_CONFIG?="${LOCALBASE}/bin/xmms-config" + +post-patch: +# as of this writing, FreeBSD does not support lrint* C99 math functions +# do not prefix binary names with anything + @${REINPLACE_CMD} -E -e \ + 's|^#define.*LRINT.*$$||; \ + s|(@program_transform_name@),[^,]+,|\1,s/$$$$//,|' \ + ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} +# use proper dir + @${REINPLACE_CMD} -E -e \ + 's|^(pkgconfigdir).*$$|\1=${PREFIX}/libdata/pkgconfig|' \ + ${WRKSRC}/Makefile.in +# remove version number from include dir name + @${REINPLACE_CMD} -E -e \ + 's|-@VERSION@||' \ + ${WRKSRC}/gstreamer-libs.pc.in +# remove version number from include dir name + @${FIND} ${WRKSRC} -type f -name Makefile.in | \ + ${XARGS} -n 10 ${REINPLACE_CMD} -E -e \ + 's|^(lib[[:alpha:]]+includedir.+)-@VERSION@|\1|' +# gconf is not working in this release + @${REINPLACE_CMD} -E -e \ + 's,^((DIST_SUBDIRS|SUBDIRS).+)gconf,\1,' \ + ${WRKSRC}/Makefile.in \ + ${WRKSRC}/gst-libs/gst/Makefile.in +# mcopidl takes the file as the last argument + @${REINPLACE_CMD} -E -e \ + 's|(mcopidl.+)(\$$<)(.+)$$|\1 \3 \2|' \ + ${WRKSRC}/ext/arts/Makefile.in +# no linux/cdrom.h + @${REINPLACE_CMD} -E -e \ + 's|^#include[[:space:]]+.+linux/cdrom\.h.*$$||' \ + ${WRKSRC}/ext/dvdread/dvdreadsrc.c +# malloc.h was deprecated in favor of stdlib.h +# inttypes.h not stdint.h + @${FIND} ${WRKSRC} -type f | \ + ${XARGS} -n 10 ${REINPLACE_CMD} -e \ + 's|malloc.h|stdlib.h|; \ + s|stdint.h|inttypes.h|' + +.include <bsd.port.pre.mk> + +CONFIGURE_ARGS+= \ + --with-xmms-prefix=${LOCALBASE} \ + --with-xmms-exec-prefix=${LOCALBASE} + +#--disable-cdparanoia +#--disable-dv +#--disable-dvdnav +#--disable-dxr3 +#--disable-examples +#--disable-gnome_vfs +#--disable-hermes +#--disable-jack +#--disable-ladspa +#--disable-lcs +#--disable-libdvtest +#--disable-raw1394 +#--disable-rtp +#--disable-shout +#--disable-sidplay +#--disable-smoothwave +#--disable-tarkin +#--disable-tests +#--disable-vcd +#--disable-vga +#--disable-xmms +#--disable-xvideo + +## +## auto detect possible plugins +## + +# aalib +.if exists(${LOCALBASE}/lib/libaa.a) +WITH_AALIB=yes +.endif + +# arts +.if exists(${LOCALBASE}/lib/libartsc.so.0) +WITH_ARTS=yes +.endif + +# avifile +.if exists(${LOCALBASE}/lib/libaviplay.a) +WITH_AVIFILE=yes +.endif + +# esound +.if exists(${LOCALBASE}/lib/libesd.a) +WITH_ESOUND=yes +.endif + +# flac +.if exists(${LOCALBASE}/lib/libFLAC.a) +WITH_FLAC=yes +.endif + +# lame +.if exists(${LOCALBASE}/lib/libmp3lame.a) +WITH_LAME=yes +.endif + +# gsm +.if exists(${LOCALBASE}/lib/libgsm.a) +WITH_GSM=yes +.endif + +# jpeg +.if exists(${LOCALBASE}/lib/libjpeg.a) +WITH_JPEG=yes +.endif + +# flac +.if exists(${LOCALBASE}/lib/libFLAC.a) +WITH_FLAC=yes +.endif + +# liba52 +.if exists(${LOCALBASE}/lib/liba52.a) +WITH_LIBA52=yes +.endif + +# libaudiofile +.if exists(${LOCALBASE}/lib/libaudiofile.a) +WITH_LIBAUDIOFILE=yes +.endif + +# libdvdread +.if exists(${LOCALBASE}/lib/libdvdread.a) +WITH_LIBDVDREAD=yes +.endif + +# libfame +.if exists(${LOCALBASE}/lib/libfame.a) +WITH_LIBFAME=yes +.endif + +# libmikmod +.if exists(${LOCALBASE}/lib/libmikmod.a) +WITH_LIBMIKMOD=yes +.endif + +# libmpeg2 +.if exists(${LOCALBASE}/lib/libmpeg2.a) +WITH_LIBMPEG2=yes +.endif + +# mad +.if exists(${LOCALBASE}/lib/libmad.a) +WITH_MAD=yes +.endif + +# openquicktime +.if exists(${LOCALBASE}/lib/libopenquicktime.so) +WITH_OPENQUICKTIME=yes +.endif + +# png +.if exists(${LOCALBASE}/lib/libpng.a) +WITH_PNG=yes +.endif + +# sdl +.if exists(${LOCALBASE}/lib/libSDL-1.1.a) +WITH_SDL=yes +.endif + +# vorbis +.if exists(${LOCALBASE}/lib/libvorbis.a) +WITH_VORBIS=yes +.endif + +## +## control CONFIGURE options +## + +# aalib +.ifndef(WITH_AALIB) +CONFIGURE_ARGS+= --disable-aalib \ + --disable-aalibtest +PLIST_SUB+= AALIB="@comment " +.else +LIB_DEPENDS+= aa.1:${PORTSDIR}/graphics/aalib + +CONFIGURE_ARGS+= --with-aalib-prefix=${LOCALBASE} \ + --with-aalib-exec-prefix=${LOCALBASE} +PLIST_SUB+= AALIB="" +.endif + +# arts +.ifndef(WITH_ARTS) +CONFIGURE_ARGS+= --disable-arts \ + --disable-artsc \ + --disable-artstest +PLIST_SUB+= ARTS="@comment " +.else +LIB_DEPENDS+= artsc.0:${PORTSDIR}/audio/arts + +CONFIGURE_ARGS+= --with-arts-prefix=${LOCALBASE} \ + --with-arts-exec-prefix=${LOCALBASE} +PLIST_SUB+= ARTS="" +.endif + +# avifile +.ifndef(WITH_AVIFILE) +CONFIGURE_ARGS+= --disable-avifile +PLIST_SUB+= AVIFILE="@comment " +.else +LIB_DEPENDS+= aviplay.0:${PORTSDIR}/graphics/avifile + +PLIST_SUB+= AVIFILE="" +.endif + +# esound +.if !(defined(HAVE_ESOUND) || defined(WITH_ESOUND)) +CONFIGURE_ARGS+= --disable-esd \ + --disable-esdtest +PLIST_SUB+= ESOUND="@comment " +.else +USE_ESOUND= yes +CONFIGURE_ARGS+= --with-esd-prefix=${LOCALBASE} \ + --with-esd-exec-prefix=${LOCALBASE} +PLIST_SUB+= ESOUND="" +.endif + +# flac +.ifndef(WITH_FLAC) +CONFIGURE_ARGS+= --disable-flac +PLIST_SUB+= FLAC="@comment " +.else +LIB_DEPENDS+= FLAC.3:${PORTSDIR}/audio/flac + +PLIST_SUB+= FLAC="" +.endif + +# gsm +.ifndef(WITH_GSM) +CONFIGURE_ARGS+= --disable-gsm +PLIST_SUB+= GSM="@comment " +.else +LIB_DEPENDS+= gsm.1:${PORTSDIR}/audio/gsm + +PLIST_SUB+= GSM="" +.endif + +# http +.ifndef(WITH_HTTP) +CONFIGURE_ARGS+= --disable-http +PLIST_SUB+= HTTP="@comment " +.else +PLIST_SUB+= HTTP="" +.endif + +# jpeg +.ifndef(WITH_JPEG) +CONFIGURE_ARGS+= --disable-jpeg +PLIST_SUB+= JPEG="@comment " +.else +LIB_DEPENDS+= jpeg.9:${PORTSDIR}/graphics/jpeg + +PLIST_SUB+= JPEG="" +.endif + +# lame +.ifndef(WITH_LAME) +CONFIGURE_ARGS+= --disable-lame +PLIST_SUB+= LAME="@comment " +.else +LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame + +PLIST_SUB+= LAME="" +.endif + +# liba52 +.ifndef(WITH_LIBA52) +CONFIGURE_ARGS+= --disable-a52dec +PLIST_SUB+= LIBA52="@comment " +.else +LIB_DEPENDS+= jpeg.9:${PORTSDIR}/graphics/jpeg + +CONFIGURE_ARGS+= --with-a52dec-prefix=${LOCALBASE} +PLIST_SUB+= LIBA52="" +.endif + +# libaudiofile +.ifndef(WITH_LIBAUDIOFILE) +CONFIGURE_ARGS+= --disable-audiofile +PLIST_SUB+= LIBAUDIOFILE="@comment " +.else +LIB_DEPENDS+= audiofile.0:${PORTSDIR}/audio/libaudiofile + +PLIST_SUB+= LIBAUDIOFILE="" +.endif + +# libdvdread +.ifndef(WITH_LIBDVDREAD) +CONFIGURE_ARGS+= --disable-dvdread +PLIST_SUB+= LIBDVDREAD="@comment " +.else +LIB_DEPENDS+= dvdread.2:${PORTSDIR}/graphics/libdvdread + +PLIST_SUB+= LIBDVDREAD="" +.endif + +# libfame +.ifndef(WITH_LIBFAME) +CONFIGURE_ARGS+= --disable-libfame \ + --disable-libfametest +PLIST_SUB+= LIBFAME="@comment " +.else +LIB_DEPENDS+= fame-0.9.0:${PORTSDIR}/graphics/libfame + +CONFIGURE_ARGS+= --with-libfame-prefix=${LOCALBASE} \ + --with-libfame-exec-prefix=${LOCALBASE} +PLIST_SUB+= LIBFAME="" +.endif + +# libmikmod +.ifndef(WITH_LIBMIKMOD) +CONFIGURE_ARGS+= --disable-libmikmodtest \ + --disable-mikmod +PLIST_SUB+= LIBMIKMOD="@comment " +.else +LIB_DEPENDS+= mikmod.2:${PORTSDIR}/audio/libmikmod + +CONFIGURE_ARGS+= --with-libmikmod-prefix=${LOCALBASE} \ + --with-libmikmod-exec-prefix=${LOCALBASE} +PLIST_SUB+= LIBMIKMOD="" +.endif + +# libmpeg2 +.ifndef(WITH_LIBMPEG2) +CONFIGURE_ARGS+= --disable-mpeg2dec +PLIST_SUB+= LIBMPEG2="@comment " +.else +LIB_DEPENDS+= mpeg2.0:${PORTSDIR}/graphics/libmpeg2 + +CONFIGURE_ARGS+= --with-mpeg2dec-prefix=${LOCALBASE} +PLIST_SUB+= LIBMPEG2="" +.endif + +# mad +.ifndef(WITH_MAD) +CONFIGURE_ARGS+= --disable-mad +PLIST_SUB+= LIBMAD="@comment " +.else +LIB_DEPENDS+= mad.1:${PORTSDIR}/audio/mad + +PLIST_SUB+= LIBMAD="" +.endif + +# openquicktime +.ifndef(WITH_OPENQUICKTIME) +CONFIGURE_ARGS+= --disable-openquicktime +PLIST_SUB+= OPENQUICKTIME="@comment " +.else +LIB_DEPENDS+= openquicktime.0:${PORTSDIR}/graphics/openquicktime + +PLIST_SUB+= OPENQUICKTIME="" +.endif + +# oss +.ifdef(WITHOUT_OSS) +CONFIGURE_ARGS+= --disable-oss +PLIST_SUB+= OSS="@comment " +.else +PLIST_SUB+= OSS="" +.endif + +# png +.ifndef(WITH_PNG) +CONFIGURE_ARGS+= --disable-libpng +PLIST_SUB+= PNG="@comment " +.else +LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png + +PLIST_SUB+= PNG="" +.endif + +# sdl +.ifndef(WITH_SDL) +CONFIGURE_ARGS+= --disable-sdl \ + --disable-sdltest +PLIST_SUB+= SDL="@comment " +.else +LIB_DEPENDS+= SDL-1.1.4:${PORTSDIR}/devel/sdl12 + +CONFIGURE_ARGS+= --with-sdl-prefix=${LOCALBASE} \ + --with-sdl-exec-prefix=${LOCALBASE} +PLIST_SUB+= SDL="" +.endif + +# vorbis +.ifndef(WITH_VORBIS) +CONFIGURE_ARGS+= --disable-vorbis \ + --disable-vorbistest +PLIST_SUB+= VORBIS="@comment " +.else +LIB_DEPENDS+= vorbis.1:${PORTSDIR}/audio/libvorbis + +PLIST_SUB+= VORBIS="" +.endif + +pre-everything:: +.ifndef(WITH_AALIB) + @${ECHO_MSG} '===>' + @${ECHO_MSG} '===> Define WITH_AALIB to enable aalib Video plugin' +.endif +.ifndef(WITH_ARTS) + @${ECHO_MSG} '===>' + @${ECHO_MSG} '===> Define WITH_ARTS to enable arts Audio plugin' +.endif +.ifndef(WITH_AVIFILE) + @${ECHO_MSG} '===>' + @${ECHO_MSG} '===> Define WITH_AVIFILE to enable avifile Video plugin' +.endif +.if !(defined(HAVE_ESOUND) || defined(WITH_ESOUND)) + @${ECHO_MSG} '===>' + @${ECHO_MSG} '===> Define WITH_ESOUND to enable esound Audio plugin' +.endif +.ifndef(WITH_FLAC) + @${ECHO_MSG} '===>' + @${ECHO_MSG} '===> Define WITH_FLAC to enable flac Audio plugin' +.endif +.ifndef(WITH_GSM) + @${ECHO_MSG} '===>' + @${ECHO_MSG} '===> Define WITH_GSM to enable gsm Audio plugin' +.endif +.ifndef(WITH_HTTP) + @${ECHO_MSG} '===>' + @${ECHO_MSG} '===> Define WITH_HTTP to enable http Network plugin' +.endif +.ifndef(WITH_JPEG) + @${ECHO_MSG} '===>' + @${ECHO_MSG} '===> Define WITH_JPEG to enable jpeg Video plugin' +.endif +.ifndef(WITH_LAME) + @${ECHO_MSG} '===>' + @${ECHO_MSG} '===> Define WITH_LAME to enable lame MP3 Audio plugin' +.endif +.ifndef(WITH_LIBA52) + @${ECHO_MSG} '===>' + @${ECHO_MSG} '===> Define WITH_LIBA52 to enable liba52 AC3 Audio plugin' +.endif +.ifndef(WITH_LIBAUDIOFILE) + @${ECHO_MSG} '===>' + @${ECHO_MSG} '===> Define WITH_LIBAUDIOFILE to enable libaudiofile Audio plugin' +.endif +.ifndef(WITH_LIBDVDREAD) + @${ECHO_MSG} '===>' + @${ECHO_MSG} '===> Define WITH_LIBDVDREAD to enable libdvdread Video plugin' +.endif +.ifndef(WITH_LIBFAME) + @${ECHO_MSG} '===>' + @${ECHO_MSG} '===> Define WITH_LIBFAME to enable libfame Video plugin' +.endif +.ifndef(WITH_LIBMIKMOD) + @${ECHO_MSG} '===>' + @${ECHO_MSG} '===> Define WITH_LIBMIKMOD to enable libmikmod Audio plugin' +.endif +.ifndef(WITH_LIBMPEG2) + @${ECHO_MSG} '===>' + @${ECHO_MSG} '===> Define WITH_LIBMPEG2 to enable libmpeg2 Video plugin' +.endif +.ifndef(WITH_MAD) + @${ECHO_MSG} '===>' + @${ECHO_MSG} '===> Define WITH_MAD to enable mad Audio plugin' +.endif +.ifndef(WITH_OPENQUICKTIME) + @${ECHO_MSG} '===>' + @${ECHO_MSG} '===> Define WITH_OPENQUICKTIME to enable openquicktime Video plugin' +.endif +.ifndef(WITHOUT_OSS) + @${ECHO_MSG} '===>' + @${ECHO_MSG} '===> Define WITHOUT_OSS to disable OSS Audio plugin' +.endif +.ifndef(WITH_PNG) + @${ECHO_MSG} '===>' + @${ECHO_MSG} '===> Define WITH_PNG to enable png Video plugin' +.endif +.ifndef(WITH_SDL) + @${ECHO_MSG} '===>' + @${ECHO_MSG} '===> Define WITH_SDL to enable SDL Video plugin' +.endif +.ifndef(WITH_VORBIS) + @${ECHO_MSG} '===>' + @${ECHO_MSG} '===> Define WITH_VORBIS to enable vorbis Audio plugin' +.endif + +.include <bsd.port.post.mk> diff --git a/graphics/gstreamer-plugins/distinfo b/graphics/gstreamer-plugins/distinfo new file mode 100644 index 000000000000..1f3233ae1353 --- /dev/null +++ b/graphics/gstreamer-plugins/distinfo @@ -0,0 +1 @@ +MD5 (gst-plugins-0.4.0.tar.bz2) = 06c7252240e0779d58ec962b539b6ae6 diff --git a/graphics/gstreamer-plugins/files/patch-configure b/graphics/gstreamer-plugins/files/patch-configure new file mode 100644 index 000000000000..001d56fd6e4f --- /dev/null +++ b/graphics/gstreamer-plugins/files/patch-configure @@ -0,0 +1,10 @@ +--- configure.orig Thu Jul 11 15:51:47 2002 ++++ configure Thu Jul 11 15:51:57 2002 +@@ -6731,6 +6731,7 @@ + + # This can be used to rebuild libtool when needed + LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" ++$ac_aux_dir/ltconfig $LIBTOOL_DEPS + + # Always use our own libtool. + LIBTOOL='$(SHELL) $(top_builddir)/libtool' diff --git a/graphics/gstreamer-plugins/files/patch-ext::flac::gstflacdec.c b/graphics/gstreamer-plugins/files/patch-ext::flac::gstflacdec.c new file mode 100644 index 000000000000..37a11fd7d5e3 --- /dev/null +++ b/graphics/gstreamer-plugins/files/patch-ext::flac::gstflacdec.c @@ -0,0 +1,83 @@ +--- ext/flac/gstflacdec.c.orig Thu Jul 11 21:35:29 2002 ++++ ext/flac/gstflacdec.c Thu Jul 11 21:44:42 2002 +@@ -74,10 +74,10 @@ + void *client_data); + static FLAC__StreamDecoderWriteStatus + gst_flacdec_write (const FLAC__SeekableStreamDecoder *decoder, +- const FLAC__Frame *frame, const FLAC__int32 *buffer[], ++ const FLAC__Frame *frame, const FLAC__int32 * const buffer[], + void *client_data); + static void gst_flacdec_metadata_callback (const FLAC__SeekableStreamDecoder *decoder, +- const FLAC__StreamMetaData *metadata, ++ const FLAC__StreamMetadata *metadata, + void *client_data); + static void gst_flacdec_error_callback (const FLAC__SeekableStreamDecoder *decoder, + FLAC__StreamDecoderErrorStatus status, +@@ -152,7 +152,7 @@ + + static void + gst_flacdec_metadata_callback (const FLAC__SeekableStreamDecoder *decoder, +- const FLAC__StreamMetaData *metadata, void *client_data) ++ const FLAC__StreamMetadata *metadata, void *client_data) + { + FlacDec *flacdec; + +@@ -171,13 +171,13 @@ + flacdec = GST_FLACDEC (client_data); + + switch (status) { +- case FLAC__STREAM_DECODER_ERROR_LOST_SYNC: ++ case FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC: + error = "lost sync"; + break; +- case FLAC__STREAM_DECODER_ERROR_BAD_HEADER: ++ case FLAC__STREAM_DECODER_ERROR_STATUS_BAD_HEADER: + error = "bad header"; + break; +- case FLAC__STREAM_DECODER_ERROR_FRAME_CRC_MISMATCH: ++ case FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISMATCH: + error = "CRC mismatch"; + break; + default: +@@ -271,6 +271,7 @@ + GST_DEBUG (0, "eos"); + flacdec->eos = TRUE; + if (avail == 0) { ++ gst_event_free (event); + return 0; + } + break; +@@ -301,7 +302,7 @@ + + static FLAC__StreamDecoderWriteStatus + gst_flacdec_write (const FLAC__SeekableStreamDecoder *decoder, const FLAC__Frame *frame, +- const FLAC__int32 *buffer[], void *client_data) ++ const FLAC__int32 * const buffer[], void *client_data) + { + FlacDec *flacdec; + GstBuffer *outbuf; +@@ -383,14 +384,14 @@ + } + else { + g_warning ("flacdec: invalid depth %d found\n", depth); +- return FLAC__STREAM_DECODER_WRITE_ABORT; ++ return FLAC__STREAM_DECODER_WRITE_STATUS_ABORT; + } + + flacdec->total_samples += samples; + + gst_pad_push (flacdec->srcpad, outbuf); + +- return FLAC__STREAM_DECODER_WRITE_CONTINUE; ++ return FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE; + } + + static void +@@ -554,6 +555,7 @@ + res = FALSE; + break; + } ++ gst_event_free (event); + return res; + } + diff --git a/graphics/gstreamer-plugins/files/patch-ext::flac::gstflacenc.c b/graphics/gstreamer-plugins/files/patch-ext::flac::gstflacenc.c new file mode 100644 index 000000000000..f661efeb1f0a --- /dev/null +++ b/graphics/gstreamer-plugins/files/patch-ext::flac::gstflacenc.c @@ -0,0 +1,20 @@ +--- ext/flac/gstflacenc.c.orig Thu Jul 11 21:17:58 2002 ++++ ext/flac/gstflacenc.c Thu Jul 11 21:33:45 2002 +@@ -56,7 +56,7 @@ + static FLAC__StreamEncoderWriteStatus + gst_flacenc_write_callback (const FLAC__StreamEncoder *encoder, const FLAC__byte buffer[], unsigned bytes, + unsigned samples, unsigned current_frame, void *client_data); +-static void gst_flacenc_metadata_callback (const FLAC__StreamEncoder *encoder, const FLAC__StreamMetaData *metadata, ++static void gst_flacenc_metadata_callback (const FLAC__StreamEncoder *encoder, const FLAC__StreamMetadata *metadata, + void *client_data); + + static GstElementClass *parent_class = NULL; +@@ -170,7 +170,7 @@ + } + + static void +-gst_flacenc_metadata_callback (const FLAC__StreamEncoder *encoder, const FLAC__StreamMetaData *metadata, void *client_data) ++gst_flacenc_metadata_callback (const FLAC__StreamEncoder *encoder, const FLAC__StreamMetadata *metadata, void *client_data) + { + GstEvent *event; + FlacEnc *flacenc; diff --git a/graphics/gstreamer-plugins/pkg-comment b/graphics/gstreamer-plugins/pkg-comment new file mode 100644 index 000000000000..66a34ec09b2a --- /dev/null +++ b/graphics/gstreamer-plugins/pkg-comment @@ -0,0 +1 @@ +GStreamer written collection of plugins handling several media types diff --git a/graphics/gstreamer-plugins/pkg-descr b/graphics/gstreamer-plugins/pkg-descr new file mode 100644 index 000000000000..80300084cfa4 --- /dev/null +++ b/graphics/gstreamer-plugins/pkg-descr @@ -0,0 +1,17 @@ +[ excerpt from developer's site ] + +This is a collection of plugins written with the GStreamer framework. +Some features of these plugins are: + +- Dynamically loaded plugins provide elements and media types, + demand-loaded via an XML registry, similar to ld.so.cache +- Element interface handles all known types of sources, filters, + sinks +- Capabilities system allows verification of element compatibility + using MIME types and media-specific properties +- Autoplugging uses capabilities system to complete complex paths + automatically +- Pipelines can be saved to XML and loaded back to working state +- Resource friendly plugins don't waste RAM + +WWW: http://gstreamer.sourceforge.net/ diff --git a/graphics/gstreamer-plugins/pkg-plist b/graphics/gstreamer-plugins/pkg-plist new file mode 100644 index 000000000000..e26cd73dfa9b --- /dev/null +++ b/graphics/gstreamer-plugins/pkg-plist @@ -0,0 +1,99 @@ +bin/gst-launch-ext +bin/gst-visualise +include/gst-plugins/gst/audio/audio.h +include/gst-plugins/gst/floatcast/floatcast.h +include/gst-plugins/gst/idct/idct.h +include/gst-plugins/gst/resample/resample.h +include/gst-plugins/gst/riff/riff.h +%%LIBA52%%lib/gst/libgsta52dec.so +%%AALIB%%lib/gst/libgstaasink.so +lib/gst/libgstac3parse.so +lib/gst/libgstadder.so +lib/gst/libgstalaw.so +%%ARTS%%lib/gst/libgstartsdsink.so +lib/gst/libgstaudio.so +%%LIBAUDIOFILE%%lib/gst/libgstaudiofile.so +lib/gst/libgstaudioscale.so +lib/gst/libgstauparse.so +%%AVIFILE%%lib/gst/libgstavidemux.so +%%AVIFILE%%lib/gst/libgstavimux.so +lib/gst/libgstcdxaparse.so +lib/gst/libgstchart.so +lib/gst/libgstcolorspace.so +lib/gst/libgstcutter.so +lib/gst/libgstdeinterlace.so +%%LIBDVDREAD%%lib/gst/libgstdvdreadsrc.so +lib/gst/libgsteffectv.so +%%ESOUND%%lib/gst/libgstesdmon.so +%%ESOUND%%lib/gst/libgstesdsink.so +lib/gst/libgstfestival.so +lib/gst/libgstfilter.so +%%FLAC%%lib/gst/libgstflac.so +lib/gst/libgstflxdec.so +lib/gst/libgstgoom.so +%%GSM%%lib/gst/libgstgsm.so +%%HTTP%%lib/gst/libgsthttpsrc.so +lib/gst/libgstidct.so +lib/gst/libgstintfloat.so +%%JPEG%%lib/gst/libgstjpeg.so +%%LAME%%lib/gst/libgstlame.so +lib/gst/libgstlevel.so +%%LIBFAME%%lib/gst/libgstlibfame.so +%%LIBMAD%%lib/gst/libgstmad.so +lib/gst/libgstmedian.so +%%LIBMIKMOD%%lib/gst/libgstmikmod.so +lib/gst/libgstmodplug.so +lib/gst/libgstmono2stereo.so +lib/gst/libgstmonoscope.so +lib/gst/libgstmp1videoparse.so +lib/gst/libgstmp3types.so +lib/gst/libgstmpeg1encoder.so +lib/gst/libgstmpeg1systemencode.so +lib/gst/libgstmpeg1types.so +%%LIBMPEG2%%lib/gst/libgstmpeg2dec.so +%%LIBMPEG2%%lib/gst/libgstmpeg2enc.so +%%LIBMPEG2%%lib/gst/libgstmpeg2subt.so +%%LIBMPEG2%%lib/gst/libgstmpeg2types.so +lib/gst/libgstmpegaudio.so +lib/gst/libgstmpegaudioparse.so +lib/gst/libgstmpegstream.so +lib/gst/libgstmulaw.so +%%OPENQUICKTIME%%lib/gst/libgstopenquicktimedecoder.so +%%OPENQUICKTIME%%lib/gst/libgstopenquicktimedemux.so +%%OPENQUICKTIME%%lib/gst/libgstopenquicktimetypes.so +%%OSS%%lib/gst/libgstossaudio.so +lib/gst/libgstpassthrough.so +lib/gst/libgstplayondemand.so +lib/gst/libgstqtdemux.so +lib/gst/libgstresample.so +lib/gst/libgstriff.so +lib/gst/libgstrtjpeg.so +%%SDL%%lib/gst/libgstsdlvideosink.so +lib/gst/libgstsilence.so +lib/gst/libgstsinesrc.so +lib/gst/libgstsmooth.so +lib/gst/libgstspectrum.so +lib/gst/libgstspeed.so +lib/gst/libgststereo.so +lib/gst/libgststereo2mono.so +lib/gst/libgststereosplit.so +lib/gst/libgstsynaesthesia.so +lib/gst/libgstudp.so +lib/gst/libgstvideoscale.so +lib/gst/libgstvolenv.so +lib/gst/libgstvolume.so +%%VORBIS%%lib/gst/libgstvorbis.so +lib/gst/libgstvumeter.so +lib/gst/libgstwavparse.so +%%AVIFILE%%lib/gst/libgstwincodec.so +lib/gst/libgsty4menc.so +libdata/pkgconfig/gstreamer-libs.pc +@dirrm include/gst-plugins/gst/riff +@dirrm include/gst-plugins/gst/resample +@dirrm include/gst-plugins/gst/idct +@dirrm include/gst-plugins/gst/floatcast +@dirrm include/gst-plugins/gst/audio +@dirrm include/gst-plugins/gst +@dirrm include/gst-plugins +@exec %%LOCALBASE%%/bin/gst-register 2>/dev/null +@unexec %%LOCALBASE%%/bin/gst-register 2>/dev/null |