summaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authorahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-05-17 20:29:05 +0800
committerahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-05-17 20:29:05 +0800
commita23c156c96a1f6b3747f126ae5cfc945e4e78e4a (patch)
tree54f5012f6bff5aefc73ae3d68cbc07e567f67c6f /multimedia
parent7ee889a79d66f631aad176cc07bc8d6400b3447d (diff)
downloadmarcuscom-ports-a23c156c96a1f6b3747f126ae5cfc945e4e78e4a.tar
marcuscom-ports-a23c156c96a1f6b3747f126ae5cfc945e4e78e4a.tar.gz
marcuscom-ports-a23c156c96a1f6b3747f126ae5cfc945e4e78e4a.tar.bz2
marcuscom-ports-a23c156c96a1f6b3747f126ae5cfc945e4e78e4a.tar.lz
marcuscom-ports-a23c156c96a1f6b3747f126ae5cfc945e4e78e4a.tar.xz
marcuscom-ports-a23c156c96a1f6b3747f126ae5cfc945e4e78e4a.tar.zst
marcuscom-ports-a23c156c96a1f6b3747f126ae5cfc945e4e78e4a.zip
- Add gstreamer-plugins-hal
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6282 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/gstreamer-plugins/Makefile137
-rw-r--r--multimedia/gstreamer-plugins/Makefile.common426
-rw-r--r--multimedia/gstreamer-plugins/distinfo12
-rw-r--r--multimedia/gstreamer-plugins/pkg-descr17
-rw-r--r--multimedia/gstreamer-plugins/pkg-plist144
5 files changed, 736 insertions, 0 deletions
diff --git a/multimedia/gstreamer-plugins/Makefile b/multimedia/gstreamer-plugins/Makefile
new file mode 100644
index 000000000..2a72155e4
--- /dev/null
+++ b/multimedia/gstreamer-plugins/Makefile
@@ -0,0 +1,137 @@
+# 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$
+# $MCom: ports/multimedia/gstreamer-plugins/Makefile,v 1.80 2006/04/28 12:00:14 ahze Exp $
+#
+
+PORTNAME= gstreamer
+PORTVERSION?= 0.10.7
+## SET BACK TO PORTREVISION?= when we reset PORTREVISION in all the gst plugin ports
+CATEGORIES?= multimedia audio
+MASTER_SITES= ${MASTER_SITE_GNOME:S|$|sources/gst-plugins-base/0.10/:base|} \
+ http://gstreamer.freedesktop.org/src/gst-plugins-base/:base \
+ ${MASTER_SITE_LOCAL:S|$|ahze/:base|} \
+ ${MASTER_SITE_LOCAL:S|$|ahze/:good|} \
+ ${MASTER_SITE_LOCAL:S|$|ahze/:bad|} \
+ ${MASTER_SITE_LOCAL:S|$|ahze/:ugly|} \
+ http://gstreamer.freedesktop.org/src/gst-plugins-bad/:bad \
+ ${MASTER_SITE_GNOME:S|$|sources/gst-plugins-good/0.10/:good|} \
+ http://gstreamer.freedesktop.org/src/gst-plugins-good/:good \
+ http://gstreamer.freedesktop.org/src/gst-plugins-ugly/:ugly \
+ http://people.freebsd.org/~ahze/distfiles/:good \
+ http://people.freebsd.org/~ahze/distfiles/:bad \
+ http://people.freebsd.org/~ahze/distfiles/:ugly \
+ http://people.freebsd.org/~ahze/distfiles/:base
+PKGNAMESUFFIX= -plugins${GST_PLUGIN_SUFFIX}
+DISTFILES= ${BASE_DISTFILE}:base \
+ ${BAD_DISTFILE}:bad \
+ ${GOOD_DISTFILE}:good \
+ ${UGLY_DISTFILE}:ugly
+DIST_SUBDIR= gnome2
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT?= GStreamer written collection of plugins handling several media types
+
+LIB_DEPENDS+= gstreamer-0.10.0:${PORTSDIR}/multimedia/gstreamer \
+ popt.0:${PORTSDIR}/devel/popt \
+ oil-0.3.1:${PORTSDIR}/devel/liboil
+
+BASE_PORTVERSION= ${PORTVERSION}
+BASE_DISTNAME= gst-plugins-base-${BASE_PORTVERSION}
+BASE_DISTFILE= ${BASE_DISTNAME}${EXTRACT_SUFX}
+BAD_PORTVERSION= 0.10.3
+BAD_DISTNAME= gst-plugins-bad-${BAD_PORTVERSION}
+BAD_DISTFILE= ${BAD_DISTNAME}${EXTRACT_SUFX}
+GOOD_PORTVERSION= 0.10.3
+GOOD_DISTNAME= gst-plugins-good-${GOOD_PORTVERSION}
+GOOD_DISTFILE= ${GOOD_DISTNAME}${EXTRACT_SUFX}
+UGLY_PORTVERSION= 0.10.3
+UGLY_DISTNAME= gst-plugins-ugly-${UGLY_PORTVERSION}
+UGLY_DISTFILE= ${UGLY_DISTNAME}${EXTRACT_SUFX}
+
+SHLIB_VERSION= 1
+USE_GETTEXT= yes
+VERSION= ${GST_VERSION}
+WANT_GSTREAMER= yes
+USE_X_PREFIX= yes
+USE_BZIP2= yes
+USE_GMAKE= yes
+USE_GNOME+= gnomehack gnomeprefix gnometarget pkgconfig ltverhack
+USE_AUTOTOOLS= libtool:15
+GST_PLUGIN?= base
+
+CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
+ CPPFLAGS="${CPPFLAGS} -I${X11BASE}/include -I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
+ LDFLAGS="${LDFLAGS} -L${X11BASE}/lib -L${LOCALBASE}/lib ${EXTRA_LIBS} ${PTHREAD_LIBS}"
+
+DEFAULT_AUDIOSINK?= osssink
+DEFAULT_AUDIOSRC?= osssrc
+
+.include <bsd.port.pre.mk>
+.include "${MASTERDIR}/Makefile.common"
+
+.if !defined(WITH_CPUFLAGS)
+#WITHOUT_CPU_CFLAGS= yes
+.endif
+
+.if ${GST_PLUGIN} == "base"
+INSTALLS_SHLIB= yes
+MAN1= gst-visualise-0.10.1
+WRKSRC=${WRKDIR}/${BASE_DISTNAME}
+EXTRACT_ONLY=${BASE_DISTFILE}
+PLIST_SUB+= VERSION="${VERSION}" \
+ SHLIB_VERSION="${SHLIB_VERSION}"
+.endif
+
+# cdrom default device
+.ifdef(WITH_CDROM_DEVICE)
+DEFAULT_CDROM_DEVICE=${WITH_CDROM_DEVICE}
+.else
+. if ${OSVERSION} < 500000
+DEFAULT_CDROM_DEVICE=/dev/acd0c
+. else
+DEFAULT_CDROM_DEVICE=/dev/acd0
+. endif
+.endif
+
+# dvd default device
+.ifdef(WITH_DVD_DEVICE)
+DEFAULT_DVD_DEVICE=${WITH_DVD_DEVICE}
+.else
+. if ${OSVERSION} < 500000
+DEFAULT_DVD_DEVICE=/dev/acd0c
+. else
+DEFAULT_DVD_DEVICE=/dev/acd0
+. endif
+.endif
+
+pre-everything::
+.if !defined(WITH_CPUFLAGS)
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "If you want to compile with CPUFLAGS"
+ @${ECHO_MSG} "hit Ctrl+C now and use make \"WITH_CPUFLAGS=yes\""
+ @${ECHO_MSG} "NOTE: This option may cause build, install, and/or"
+ @${ECHO_MSG} "runtime failures. If this option does not work for you"
+ @${ECHO_MSG} "please do not use it."
+ @${ECHO_MSG} ""
+.endif
+
+post-patch:
+ @${FIND} ${WRKSRC} -type f | \
+ ${XARGS} -n 10 ${REINPLACE_CMD} -e \
+ 's|malloc\.h|stdlib.h|; \
+ s|stdint\.h|inttypes.h|; \
+ s|%%VERSION%%|${VERSION}|'
+ @${FIND} ${WRKSRC}/ext -name Makefile.in | \
+ ${XARGS} -n 10 ${REINPLACE_CMD} -e \
+ 's|$$(top_builddir)/gst-libs/gst/tag/libgsttag-@GST_MAJORMINOR@.la|${X11BASE}/lib/libgsttag-@GST_MAJORMINOR@.la|; \
+ s|$$(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_MAJORMINOR@.la|${X11BASE}/lib/libgstaudio-@GST_MAJORMINOR@.la|; \
+ s|$$(top_builddir)/gst-libs/gst/riff/libgstriff-@GST_MAJORMINOR@.la|${X11BASE}/lib/libgstriff-@GST_MAJORMINOR@.la|; \
+ s|$$(top_builddir)/gst-libs/gst/cdda/libgstcdda-@GST_MAJORMINOR@.la|${X11BASE}/lib/libgstcdda-@GST_MAJORMINOR@.la|'
+ @${REINPLACE_CMD} -e 's|DEFAULT_AUDIOSINK="alsasink"|DEFAULT_AUDIOSINK="${DEFAULT_AUDIOSINK}"|; \
+ s|DEFAULT_AUDIOSRC="alsasrc"|DEFAULT_AUDIOSRC="${DEFAULT_AUDIOSRC}"|' \
+ ${WRKSRC}/configure
+
+.include <bsd.port.post.mk>
diff --git a/multimedia/gstreamer-plugins/Makefile.common b/multimedia/gstreamer-plugins/Makefile.common
new file mode 100644
index 000000000..c4f3e412c
--- /dev/null
+++ b/multimedia/gstreamer-plugins/Makefile.common
@@ -0,0 +1,426 @@
+# $FreeBSD$
+# $MCom: ports/multimedia/gstreamer-plugins/Makefile.common,v 1.40 2006/04/23 21:40:21 marcus Exp $
+# base
+BASE_GST_ALL_PLUGINS= \
+ alsa \
+ cdparanoia \
+ gnomevfs \
+ libvisual \
+ ogg \
+ pango \
+ theora \
+ vorbis
+# bad
+BAD_GST_ALL_PLUGINS+= \
+ amrwb \
+ bz2 \
+ directfb \
+ divx \
+ dts \
+ faac \
+ faad \
+ gsm \
+ ivorbis \
+ libmms \
+ musepack \
+ musicbrainz \
+ neon \
+ sdl \
+ soundtouch \
+ swfdec \
+ xvid \
+ wavpack
+# throra
+
+# good
+GOOD_GST_ALL_PLUGINS+= \
+ aalib \
+ annodex \
+ cairo \
+ cdio \
+ dv \
+ esd \
+ flac \
+ gconf \
+ gdk_pixbuf \
+ hal \
+ jpeg \
+ ladspa \
+ libcaca \
+ libpng \
+ raw1394 \
+ shout2 \
+ speex \
+ taglib
+# Ugly
+UGLY_GST_ALL_PLUGINS+= \
+ a52dec \
+ amrnb \
+ dvdnav \
+ dvdread \
+ lame \
+ mad \
+ mpeg2dec \
+ sidplay
+
+CONFIG_GST_PLUGINS= gnome_vfs
+GST_ALL_PLUGINS= ${BASE_GST_ALL_PLUGINS} ${BAD_GST_ALL_PLUGINS} \
+ ${GOOD_GST_ALL_PLUGINS} ${UGLY_ALL_PLUGINS} \
+ ${CONFIG_GST_PLUGINS}
+
+# Disable all plugins by default
+.for d in ${GST_ALL_PLUGINS}
+CONFIGURE_ARGS+= --disable-${d}
+.endfor
+CONFIGURE_ARGS+= --enable-${GST_PLUGIN}
+
+CONFIGURE_ARGS+=--disable-tests \
+ --disable-examples \
+ --disable-amrnb \
+ --disable-alsa \
+ --disable-http \
+ --enable-cdrom \
+ --disable-gconf \
+ --disable-gconftool \
+ --disable-schemas-install \
+ --enable-oss \
+ --disable-osx_audio \
+ --disable-osx_video \
+ --disable-tarkin \
+ --enable-static \
+ --disable-sunaudio \
+ --disable-gst_v4l \
+ --disable-gst_v4l2 \
+ --disable-xine \
+ --enable-x \
+ --enable-xshm \
+ --enable-xvideo
+
+# spc is broken a the moment
+#.if (${ARCH} == "i386")
+#BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm
+#CONFIGURE_ARGS+=--enable-spc
+#PLIST_SUB+= SPC=""
+#.else
+CONFIGURE_ARGS+=--disable-spc
+PLIST_SUB+= SPC="@comment "
+#.endif
+
+.if ${GST_PLUGIN}!="base" && !defined(NO_GSTREAMER_COMMON)
+GST_PLUGIN_SUFFIX?= -${GST_PLUGIN}
+
+COMMENT= Gstreamer ${GST_PLUGIN} plugin
+
+# Enable the right plugin
+
+CONFIGURE_ARGS:=${CONFIGURE_ARGS:S|--disable-${GST_PLUGIN}|--enable-${GST_PLUGIN}|}
+
+# Build/Install directory. defaults to ext/${GST_PLUGIN}
+# few plugins are in sys/
+GST_PLUGIN_DIR?= ext/${GST_PLUGIN}
+
+#
+GST_LIB_DIR= lib/gstreamer-${VERSION}
+
+# Auto create PLIST
+PLIST= ${NONEXISTENT}
+PLIST_FILES?= ${GST_LIB_DIR}/libgst${GST_PLUGIN}${GST_PLIST_SUFFIX}.so \
+ ${GST_LIB_DIR}/libgst${GST_PLUGIN}${GST_PLIST_SUFFIX}.a \
+ ${GST_LIB_DIR}/libgst${GST_PLUGIN}${GST_PLIST_SUFFIX}.la
+
+# hack around WRKSRC stuff near the top... fix me
+DIST?= good
+
+# a52dec
+.if ${GST_PLUGIN}=="a52dec"
+LIB_DEPENDS+= a52.0:${PORTSDIR}/audio/liba52
+DIST= ugly
+.endif
+
+# aalib
+.if ${GST_PLUGIN}=="aalib"
+LIB_DEPENDS+= aa.1:${PORTSDIR}/graphics/aalib
+PLIST_FILES= ${GST_LIB_DIR}/libgstaasink.so \
+ ${GST_LIB_DIR}/libgstaasink.a \
+ ${GST_LIB_DIR}/libgstaasink.la
+.endif
+
+# cairo
+.if ${GST_PLUGIN}=="cairo"
+LIB_DEPENDS+= cairo.2:${PORTSDIR}/graphics/cairo
+.endif
+
+# cdparanoia
+.if ${GST_PLUGIN}=="cdparanoia"
+LIB_DEPENDS+= cdda_interface.0:${PORTSDIR}/audio/cdparanoia
+EXTRA_LIBS+= -lgstcdda-${VERSION}
+DIST= base
+.endif
+
+# dts
+.if ${GST_PLUGIN}=="dts"
+BUILD_DEPENDS+= ${LOCALBASE}/lib/libdts.a:${PORTSDIR}/multimedia/libdts
+PLIST_FILES= ${GST_LIB_DIR}/libgstdtsdec.a \
+ ${GST_LIB_DIR}/libgstdtsdec.la \
+ ${GST_LIB_DIR}/libgstdtsdec.so
+DIST= bad
+.endif
+
+# dv
+.if ${GST_PLUGIN}=="dv"
+LIB_DEPENDS+= dv.4:${PORTSDIR}/multimedia/libdv
+.endif
+
+.if ${GST_PLUGIN}=="dvd"
+EXTRA_LIBS+= -ldvdnav
+LIB_DEPENDS+= dvdnav.4:${PORTSDIR}/multimedia/libdvdnav
+GST_PLUGIN_DIR= ext/dvdnav \
+ ext/dvdread
+PLIST_FILES= ${GST_LIB_DIR}/libgstdvdnav.a \
+ ${GST_LIB_DIR}/libgstdvdnav.la \
+ ${GST_LIB_DIR}/libgstdvdnav.so \
+ ${GST_LIB_DIR}/libgstdvdread.a \
+ ${GST_LIB_DIR}/libgstdvdread.la \
+ ${GST_LIB_DIR}/libgstdvdread.so
+DIST= ugly
+.endif
+
+
+# esound
+.if ${GST_PLUGIN}=="esound"
+USE_GNOME+= esound
+GST_PLUGIN_DIR= ext/esd
+CONFIGURE_ENV+= ESD_CFLAGS="`pkg-config --cflags esound`" \
+ ESD_LIBS="`pkg-config --libs esound`"
+PLIST_FILES= ${GST_LIB_DIR}/libgstesd.so \
+ ${GST_LIB_DIR}/libgstesd.a \
+ ${GST_LIB_DIR}/libgstesd.la
+.endif
+
+# faac
+.if ${GST_PLUGIN}=="faac"
+LIB_DEPENDS+= faac.0:${PORTSDIR}/audio/faac
+DIST= bad
+.endif
+
+# faad
+.if ${GST_PLUGIN}=="faad"
+LIB_DEPENDS+= faad.0:${PORTSDIR}/audio/faad
+DIST= bad
+.endif
+
+# flac
+.if ${GST_PLUGIN}=="flac"
+LIB_DEPENDS+= FLAC.7:${PORTSDIR}/audio/flac
+.endif
+
+# gconf
+.if ${GST_PLUGIN}=="gconf"
+USE_GNOME+= gconf2
+GST_PLUGIN_DIR= ext/gconf \
+ gconf
+GCONF_SCHEMAS= gstreamer-${GST_VERSION}.schemas
+PLIST_FILES= ${GST_LIB_DIR}/libgstgconfelements.so \
+ ${GST_LIB_DIR}/libgstgconfelements.a \
+ ${GST_LIB_DIR}/libgstgconfelements.la
+.endif
+
+# gnomevfs
+.if ${GST_PLUGIN}=="gnomevfs"
+USE_GNOME+= gnomevfs2
+CONFIGURE_ARGS+=--enable-gnome_vfs
+DIST= base
+.endif
+
+# gsm
+.if ${GST_PLUGIN}=="gsm"
+LIB_DEPENDS+= gsm.1:${PORTSDIR}/audio/gsm
+DIST= bad
+.endif
+
+# ivorbis
+.if ${GST_PLUGIN}=="ivorbis"
+LIB_DEPENDS+= vorbisidec.1:${PORTSDIR}/audio/libtremor
+DIST= bad
+.endif
+
+# hal
+.if ${GST_PLUGIN}=="hal"
+LIB_DEPENDS+= hal.1:${PORTSDIR}/sysutils/hal
+PLIST_FILES= ${GST_LIB_DIR}/libgsthalelements.a \
+ ${GST_LIB_DIR}/libgsthalelements.la \
+ ${GST_LIB_DIR}/libgsthalelements.so
+
+.endif
+
+# jpeg
+.if ${GST_PLUGIN}=="jpeg"
+LIB_DEPENDS+= jpeg.9:${PORTSDIR}/graphics/jpeg
+.endif
+
+# ladspa
+.if ${GST_PLUGIN}=="ladspa"
+BUILD_DEPENDS+= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
+.endif
+
+# lame
+.if ${GST_PLUGIN}=="lame"
+LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame
+DIST= ugly
+.endif
+
+# libcaca
+.if ${GST_PLUGIN}=="libcaca"
+BUILD_DEPENDS+= ${LOCALBASE}/lib/libcaca.a:${PORTSDIR}/graphics/libcaca
+PLIST_FILES= ${GST_LIB_DIR}/libgstcacasink.so \
+ ${GST_LIB_DIR}/libgstcacasink.a \
+ ${GST_LIB_DIR}/libgstcacasink.la
+.endif
+
+# libmms
+.if ${GST_PLUGIN}=="libmms"
+LIB_DEPENDS+= mms.0:${PORTSDIR}/net/libmms
+PLIST_FILES= ${GST_LIB_DIR}/libgstmms.so \
+ ${GST_LIB_DIR}/libgstmms.a \
+ ${GST_LIB_DIR}/libgstmms.la
+DIST= bad
+.endif
+
+# libpng and the snapshot plugin
+.if ${GST_PLUGIN}=="libpng"
+LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png
+GST_PLUGIN_DIR= ext/libpng
+PLIST_FILES= ${GST_LIB_DIR}/libgstpng.so \
+ ${GST_LIB_DIR}/libgstpng.a \
+ ${GST_LIB_DIR}/libgstpng.la
+.endif
+
+# libvisual
+.if ${GST_PLUGIN}=="libvisual"
+LIB_DEPENDS+= visual.0:${PORTSDIR}/graphics/libvisual
+DIST= base
+.if ${OSVERSION} < 500000
+BROKEN= Does not build on 4.x
+.endif
+.endif
+
+# mad
+.if ${GST_PLUGIN}=="mad"
+LIB_DEPENDS+= mad.2:${PORTSDIR}/audio/libmad \
+ id3tag.0:${PORTSDIR}/audio/libid3tag
+DIST= ugly
+.endif
+
+# mpeg2dec
+.if ${GST_PLUGIN}=="mpeg2dec"
+LIB_DEPENDS+= mpeg2.0:${PORTSDIR}/multimedia/libmpeg2
+DIST= ugly
+.endif
+
+# musepack
+.if ${GST_PLUGIN}=="musepack"
+LIB_DEPENDS+= mpcdec.4:${PORTSDIR}/audio/libmpcdec
+DIST= bad
+.endif
+
+# musicbrainz
+.if ${GST_PLUGIN}=="musicbrainz"
+LIB_DEPENDS+= musicbrainz.4:${PORTSDIR}/audio/libmusicbrainz
+PLIST_FILES= ${GST_LIB_DIR}/libgsttrm.so \
+ ${GST_LIB_DIR}/libgsttrm.a \
+ ${GST_LIB_DIR}/libgsttrm.la
+DIST= bad
+.endif
+
+# ogg
+.if ${GST_PLUGIN}=="ogg"
+LIB_DEPENDS+= ogg.5:${PORTSDIR}/audio/libogg
+EXTRA_LIBS+= -lgstriff-${VERSION}
+DIST= base
+.endif
+
+# pango
+.if ${GST_PLUGIN}=="pango"
+USE_GNOME+= pango
+DIST= base
+.endif
+
+# sdl
+.if ${GST_PLUGIN}=="sdl"
+USE_SDL+= sdl
+GST_PLIST_SUFFIX= videosink
+DIST= bad
+.endif
+
+# shout2
+.if ${GST_PLUGIN}=="shout2"
+LIB_DEPENDS+= shout.5:${PORTSDIR}/audio/libshout2
+.endif
+
+# sidplay
+.if ${GST_PLUGIN}=="sidplay"
+LIB_DEPENDS+= sidplay.1:${PORTSDIR}/audio/libsidplay
+PLIST_FILES= ${GST_LIB_DIR}/libgstsid.so \
+ ${GST_LIB_DIR}/libgstsid.a \
+ ${GST_LIB_DIR}/libgstsid.la
+DIST= ugly
+.endif
+
+# speex
+.if ${GST_PLUGIN}=="speex"
+LIB_DEPENDS+= speex.3:${PORTSDIR}/audio/speex
+.endif
+
+# theora
+.if ${GST_PLUGIN}=="theora"
+LIB_DEPENDS+= theora.2:${PORTSDIR}/multimedia/libtheora
+DIST= base
+.endif
+
+# vorbis
+.if ${GST_PLUGIN}=="vorbis"
+USE_GSTREAMER+= ogg
+LIB_DEPENDS+= vorbis.3:${PORTSDIR}/audio/libvorbis
+EXTRA_LIBS+= -lgsttag-${VERSION} -lgstaudio-${VERSION}
+DIST= base
+.endif
+
+# wavpack
+.if ${GST_PLUGIN}=="wavpack"
+LIB_DEPENDS+= wavpack.0:${PORTSDIR}/audio/wavpack
+DIST= bad
+.endif
+
+.if ${DIST}=="base"
+EXTRACT_ONLY=${BASE_DISTFILE}
+WRKSRC=${WRKDIR}/${BASE_DISTNAME}
+.elif ${DIST}=="bad"
+EXTRACT_ONLY=${BAD_DISTFILE}
+WRKSRC=${WRKDIR}/${BAD_DISTNAME}
+.elif ${DIST}=="ugly"
+EXTRACT_ONLY=${UGLY_DISTFILE}
+WRKSRC=${WRKDIR}/${UGLY_DISTNAME}
+.else
+EXTRACT_ONLY=${GOOD_DISTFILE}
+WRKSRC=${WRKDIR}/${GOOD_DISTNAME}
+.endif
+
+BUILD_DEPENDS+= gstreamer-plugins>=${GST_VERSION}${GST_MINOR_VERSION}:${PORTSDIR}/multimedia/gstreamer-plugins
+RUN_DEPENDS+= gstreamer-plugins>=${GST_VERSION}${GST_MINOR_VERSION}:${PORTSDIR}/multimedia/gstreamer-plugins
+
+.if !target(do-build)
+do-build:
+.for dir in ${GST_PREBUILD_DIR} ${GST_PLUGIN_DIR} ${GST_POSTBUILD_DIR}
+ @cd ${WRKSRC}/${dir}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \
+ ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET}
+.endfor
+.endif
+
+.if !target(do-install)
+do-install:
+.for dir in ${GST_PLUGIN_DIR}
+ @cd ${WRKSRC}/${dir}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \
+ ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET}
+.endfor
+.endif
+.endif
diff --git a/multimedia/gstreamer-plugins/distinfo b/multimedia/gstreamer-plugins/distinfo
new file mode 100644
index 000000000..1a3636281
--- /dev/null
+++ b/multimedia/gstreamer-plugins/distinfo
@@ -0,0 +1,12 @@
+MD5 (gnome2/gst-plugins-base-0.10.7.tar.bz2) = 21ec9c7ac4b02de019a6d8e8c2aaa2a3
+SHA256 (gnome2/gst-plugins-base-0.10.7.tar.bz2) = 7be5984162333dae48d8f7e58e6c7f4b43726c78e2ca13aca6618b1342af8d37
+SIZE (gnome2/gst-plugins-base-0.10.7.tar.bz2) = 1166071
+MD5 (gnome2/gst-plugins-bad-0.10.3.tar.bz2) = 8545a02c408976c5e9f0c2cf3c6a362e
+SHA256 (gnome2/gst-plugins-bad-0.10.3.tar.bz2) = 648f1ef813c64c7eedd45d164eb41ba21366bba8ec5fcbff3100458721be489e
+SIZE (gnome2/gst-plugins-bad-0.10.3.tar.bz2) = 953949
+MD5 (gnome2/gst-plugins-good-0.10.3.tar.bz2) = a58bb825bd4b22412764f2a8d2f98b1c
+SHA256 (gnome2/gst-plugins-good-0.10.3.tar.bz2) = 8c09374656aca4b8ffbe109a24dcdb98c5d519c4b05bf9eeeb3a34f16b26eaf5
+SIZE (gnome2/gst-plugins-good-0.10.3.tar.bz2) = 1165391
+MD5 (gnome2/gst-plugins-ugly-0.10.3.tar.bz2) = af6f238507b0040bf84fcbc6a241e559
+SHA256 (gnome2/gst-plugins-ugly-0.10.3.tar.bz2) = 0cd916b3f0c8867cea77243d20d8d56ed45b7ef5ec5c5dd1603860ece8e88a10
+SIZE (gnome2/gst-plugins-ugly-0.10.3.tar.bz2) = 605833
diff --git a/multimedia/gstreamer-plugins/pkg-descr b/multimedia/gstreamer-plugins/pkg-descr
new file mode 100644
index 000000000..80300084c
--- /dev/null
+++ b/multimedia/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/multimedia/gstreamer-plugins/pkg-plist b/multimedia/gstreamer-plugins/pkg-plist
new file mode 100644
index 000000000..f4720a089
--- /dev/null
+++ b/multimedia/gstreamer-plugins/pkg-plist
@@ -0,0 +1,144 @@
+bin/gst-visualise-%%VERSION%%
+include/gstreamer-%%VERSION%%/gst/audio/audio.h
+include/gstreamer-%%VERSION%%/gst/audio/gstaudioclock.h
+include/gstreamer-%%VERSION%%/gst/audio/gstaudiofilter.h
+include/gstreamer-%%VERSION%%/gst/audio/gstaudiosink.h
+include/gstreamer-%%VERSION%%/gst/audio/gstaudiosrc.h
+include/gstreamer-%%VERSION%%/gst/audio/gstbaseaudiosink.h
+include/gstreamer-%%VERSION%%/gst/audio/gstbaseaudiosrc.h
+include/gstreamer-%%VERSION%%/gst/audio/gstringbuffer.h
+include/gstreamer-%%VERSION%%/gst/audio/mixerutils.h
+include/gstreamer-%%VERSION%%/gst/audio/multichannel-enumtypes.h
+include/gstreamer-%%VERSION%%/gst/audio/multichannel.h
+include/gstreamer-%%VERSION%%/gst/cdda/gstcddabasesrc.h
+include/gstreamer-%%VERSION%%/gst/floatcast/floatcast.h
+include/gstreamer-%%VERSION%%/gst/interfaces/colorbalance.h
+include/gstreamer-%%VERSION%%/gst/interfaces/colorbalancechannel.h
+include/gstreamer-%%VERSION%%/gst/interfaces/interfaces-enumtypes.h
+include/gstreamer-%%VERSION%%/gst/interfaces/mixer.h
+include/gstreamer-%%VERSION%%/gst/interfaces/mixeroptions.h
+include/gstreamer-%%VERSION%%/gst/interfaces/mixertrack.h
+include/gstreamer-%%VERSION%%/gst/interfaces/navigation.h
+include/gstreamer-%%VERSION%%/gst/interfaces/propertyprobe.h
+include/gstreamer-%%VERSION%%/gst/interfaces/tuner.h
+include/gstreamer-%%VERSION%%/gst/interfaces/tunerchannel.h
+include/gstreamer-%%VERSION%%/gst/interfaces/tunernorm.h
+include/gstreamer-%%VERSION%%/gst/interfaces/xoverlay.h
+include/gstreamer-%%VERSION%%/gst/netbuffer/gstnetbuffer.h
+include/gstreamer-%%VERSION%%/gst/riff/riff-ids.h
+include/gstreamer-%%VERSION%%/gst/riff/riff-media.h
+include/gstreamer-%%VERSION%%/gst/riff/riff-read.h
+include/gstreamer-%%VERSION%%/gst/rtp/gstbasertpdepayload.h
+include/gstreamer-%%VERSION%%/gst/rtp/gstbasertppayload.h
+include/gstreamer-%%VERSION%%/gst/rtp/gstrtpbuffer.h
+include/gstreamer-%%VERSION%%/gst/tag/tag.h
+include/gstreamer-%%VERSION%%/gst/video/gstvideofilter.h
+include/gstreamer-%%VERSION%%/gst/video/gstvideosink.h
+include/gstreamer-%%VERSION%%/gst/video/video.h
+lib/gstreamer-%%VERSION%%/libgstadder.a
+lib/gstreamer-%%VERSION%%/libgstadder.la
+lib/gstreamer-%%VERSION%%/libgstadder.so
+lib/gstreamer-%%VERSION%%/libgstaudioconvert.a
+lib/gstreamer-%%VERSION%%/libgstaudioconvert.la
+lib/gstreamer-%%VERSION%%/libgstaudioconvert.so
+lib/gstreamer-%%VERSION%%/libgstaudiorate.a
+lib/gstreamer-%%VERSION%%/libgstaudiorate.la
+lib/gstreamer-%%VERSION%%/libgstaudiorate.so
+lib/gstreamer-%%VERSION%%/libgstaudioresample.a
+lib/gstreamer-%%VERSION%%/libgstaudioresample.la
+lib/gstreamer-%%VERSION%%/libgstaudioresample.so
+lib/gstreamer-%%VERSION%%/libgstaudiotestsrc.a
+lib/gstreamer-%%VERSION%%/libgstaudiotestsrc.la
+lib/gstreamer-%%VERSION%%/libgstaudiotestsrc.so
+lib/gstreamer-%%VERSION%%/libgstdecodebin.a
+lib/gstreamer-%%VERSION%%/libgstdecodebin.la
+lib/gstreamer-%%VERSION%%/libgstdecodebin.so
+lib/gstreamer-%%VERSION%%/libgstffmpegcolorspace.a
+lib/gstreamer-%%VERSION%%/libgstffmpegcolorspace.la
+lib/gstreamer-%%VERSION%%/libgstffmpegcolorspace.so
+lib/gstreamer-%%VERSION%%/libgstplaybin.a
+lib/gstreamer-%%VERSION%%/libgstplaybin.la
+lib/gstreamer-%%VERSION%%/libgstplaybin.so
+lib/gstreamer-%%VERSION%%/libgstsubparse.a
+lib/gstreamer-%%VERSION%%/libgstsubparse.la
+lib/gstreamer-%%VERSION%%/libgstsubparse.so
+lib/gstreamer-%%VERSION%%/libgsttcp.a
+lib/gstreamer-%%VERSION%%/libgsttcp.la
+lib/gstreamer-%%VERSION%%/libgsttcp.so
+lib/gstreamer-%%VERSION%%/libgsttypefindfunctions.a
+lib/gstreamer-%%VERSION%%/libgsttypefindfunctions.la
+lib/gstreamer-%%VERSION%%/libgsttypefindfunctions.so
+lib/gstreamer-%%VERSION%%/libgstvideorate.a
+lib/gstreamer-%%VERSION%%/libgstvideorate.la
+lib/gstreamer-%%VERSION%%/libgstvideorate.so
+lib/gstreamer-%%VERSION%%/libgstvideoscale.a
+lib/gstreamer-%%VERSION%%/libgstvideoscale.la
+lib/gstreamer-%%VERSION%%/libgstvideoscale.so
+lib/gstreamer-%%VERSION%%/libgstvideotestsrc.a
+lib/gstreamer-%%VERSION%%/libgstvideotestsrc.la
+lib/gstreamer-%%VERSION%%/libgstvideotestsrc.so
+lib/gstreamer-%%VERSION%%/libgstvolume.a
+lib/gstreamer-%%VERSION%%/libgstvolume.la
+lib/gstreamer-%%VERSION%%/libgstvolume.so
+lib/gstreamer-%%VERSION%%/libgstximagesink.a
+lib/gstreamer-%%VERSION%%/libgstximagesink.la
+lib/gstreamer-%%VERSION%%/libgstximagesink.so
+lib/gstreamer-%%VERSION%%/libgstxvimagesink.a
+lib/gstreamer-%%VERSION%%/libgstxvimagesink.la
+lib/gstreamer-%%VERSION%%/libgstxvimagesink.so
+lib/libgstaudio-%%VERSION%%.a
+lib/libgstaudio-%%VERSION%%.la
+lib/libgstaudio-%%VERSION%%.so
+lib/libgstaudio-%%VERSION%%.so.0
+lib/libgstcdda-%%VERSION%%.a
+lib/libgstcdda-%%VERSION%%.la
+lib/libgstcdda-%%VERSION%%.so
+lib/libgstcdda-%%VERSION%%.so.0
+lib/libgstinterfaces-%%VERSION%%.a
+lib/libgstinterfaces-%%VERSION%%.la
+lib/libgstinterfaces-%%VERSION%%.so
+lib/libgstinterfaces-%%VERSION%%.so.0
+lib/libgstnetbuffer-%%VERSION%%.a
+lib/libgstnetbuffer-%%VERSION%%.la
+lib/libgstnetbuffer-%%VERSION%%.so
+lib/libgstnetbuffer-%%VERSION%%.so.0
+lib/libgstriff-%%VERSION%%.a
+lib/libgstriff-%%VERSION%%.la
+lib/libgstriff-%%VERSION%%.so
+lib/libgstriff-%%VERSION%%.so.0
+lib/libgstrtp-%%VERSION%%.a
+lib/libgstrtp-%%VERSION%%.la
+lib/libgstrtp-%%VERSION%%.so
+lib/libgstrtp-%%VERSION%%.so.0
+lib/libgsttag-%%VERSION%%.a
+lib/libgsttag-%%VERSION%%.la
+lib/libgsttag-%%VERSION%%.so
+lib/libgsttag-%%VERSION%%.so.0
+lib/libgstvideo-%%VERSION%%.a
+lib/libgstvideo-%%VERSION%%.la
+lib/libgstvideo-%%VERSION%%.so
+lib/libgstvideo-%%VERSION%%.so.0
+libdata/pkgconfig/gstreamer-plugins-base-%%VERSION%%.pc
+share/locale/af/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/az/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/cs/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/en_GB/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/hu/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/it/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/nb/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/nl/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/or/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/sq/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/sr/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/sv/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/uk/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/vi/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+@dirrm include/gstreamer-%%VERSION%%/gst/video
+@dirrm include/gstreamer-%%VERSION%%/gst/tag
+@dirrm include/gstreamer-%%VERSION%%/gst/rtp
+@dirrm include/gstreamer-%%VERSION%%/gst/riff
+@dirrm include/gstreamer-%%VERSION%%/gst/netbuffer
+@dirrm include/gstreamer-%%VERSION%%/gst/interfaces
+@dirrm include/gstreamer-%%VERSION%%/gst/floatcast
+@dirrm include/gstreamer-%%VERSION%%/gst/cdda
+@dirrm include/gstreamer-%%VERSION%%/gst/audio