summaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/gstreamer1-libav/Makefile70
-rw-r--r--multimedia/gstreamer1-libav/distinfo2
-rw-r--r--multimedia/gstreamer1-libav/pkg-descr5
-rw-r--r--multimedia/gstreamer1-libav/pkg-plist4
-rw-r--r--multimedia/gstreamer1-plugins-bad/Makefile34
-rw-r--r--multimedia/gstreamer1-plugins-bad/pkg-plist158
-rw-r--r--multimedia/gstreamer1-plugins-good/Makefile37
-rw-r--r--multimedia/gstreamer1-plugins-good/files/patch-configure29
-rw-r--r--multimedia/gstreamer1-plugins-good/files/patch-sys_oss_gstosshelper.c20
-rw-r--r--multimedia/gstreamer1-plugins-good/files/patch-sys_v4l2_gstv4l2object.h21
-rw-r--r--multimedia/gstreamer1-plugins-good/pkg-plist140
-rw-r--r--multimedia/gstreamer1-plugins-theora/Makefile15
-rw-r--r--multimedia/gstreamer1-plugins-ugly/Makefile33
-rw-r--r--multimedia/gstreamer1-plugins-ugly/pkg-plist49
-rw-r--r--multimedia/gstreamer1-plugins/Makefile163
-rw-r--r--multimedia/gstreamer1-plugins/Makefile.common799
-rw-r--r--multimedia/gstreamer1-plugins/distinfo8
-rw-r--r--multimedia/gstreamer1-plugins/files/patch-Makefile.in22
-rw-r--r--multimedia/gstreamer1-plugins/files/patch-ext_cdparanoia_gstcdparanoiasrc.c18
-rw-r--r--multimedia/gstreamer1-plugins/files/patch-gst_tcp_gstmultihandlesink.c11
-rw-r--r--multimedia/gstreamer1-plugins/pkg-descr17
-rw-r--r--multimedia/gstreamer1-plugins/pkg-plist234
-rw-r--r--multimedia/gstreamer1/Makefile63
-rw-r--r--multimedia/gstreamer1/distinfo2
-rw-r--r--multimedia/gstreamer1/files/patch-Makefile.in17
-rw-r--r--multimedia/gstreamer1/pkg-descr24
-rw-r--r--multimedia/gstreamer1/pkg-plist178
27 files changed, 2173 insertions, 0 deletions
diff --git a/multimedia/gstreamer1-libav/Makefile b/multimedia/gstreamer1-libav/Makefile
new file mode 100644
index 000000000..6d108e9ec
--- /dev/null
+++ b/multimedia/gstreamer1-libav/Makefile
@@ -0,0 +1,70 @@
+# Created by: Koop Mast <kwm@rainbow-runner.nl>
+# $FreeBSD$
+# $MCom$
+
+PORTNAME= gstreamer1-libav
+PORTVERSION= 1.0.0
+CATEGORIES= multimedia
+MASTER_SITES= http://gstreamer.freedesktop.org/src/gst-libav/
+DISTNAME= gst-libav-${PORTVERSION}
+
+MAINTAINER= multimedia@FreeBSD.org
+COMMENT= GStreamer plug-in for manipulating MPEG video streams
+
+LICENSE= GPLv2
+
+BUILD_DEPENDS= yasm:${PORTSDIR}/devel/yasm \
+ orc>=0.4.16:${PORTSDIR}/devel/orc
+# gstreamer-plugins10>=${GST10_VERSION}${GST10_MINOR_VERSION}:${PORTSDIR}/multimedia/gstreamer-plugins
+
+LIB_DEPENDS= orc-0.4:${PORTSDIR}/devel/orc
+
+USE_XZ= yes
+USE_GMAKE= yes
+USE_LDCONFIG= yes
+USE_GSTREAMER1= yes
+GNU_CONFIGURE= yes
+USE_PKGCONFIG= build
+LIBAV_CONFIG= --cc=${CC} \
+ --enable-runtime-cpudetect \
+ --enable-pic
+LDFLAGS+= -Wl,-Bsymbolic
+CFLAGS+= -fno-force-addr
+CONFIGURE_ENV= PKG_CONFIG=${PKG_CONFIG}
+
+#PLIST_SUB= VERSION="${GST10_VERSION}"
+PLIST_SUB= VERSION="1.0"
+
+PKG_CONFIG?="${LOCALBASE}/bin/pkg-config"
+#GST_VERSION=${PORTVERSION:C/..$//}
+
+# sse hardware vector support
+.if defined(MACHINE_CPU) && (${MACHINE_CPU:Msse} == "sse" || ${MACHINE_CPU:Mamd64} == "amd64")
+WITH_BUILTIN_VECTOR= yes
+.else
+LIBAV_CONFIG+= --disable-sse
+.endif
+
+# mmx support
+.if defined(MACHINE_CPU) && ${MACHINE_CPU:Mmmx} == "" && ${MACHINE_CPU:Mamd64} == ""
+LIBAV_CONFIG+= --disable-mmx
+WITHOUT_BUILTIN_VECTOR= yes
+.endif
+
+# builtin vector, requires mmx and sse
+.if !defined(WITHOUT_BUILTIN_VECTOR) && defined(WITH_BUILTIN_VECTOR)
+CFLAGS+= -msse
+.endif
+
+CONFIGURE_ARGS+= --with-libav-extra-configure="${LIBAV_CONFIG}"
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 900033
+
+BUILD_DEPENDS+= ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils
+MAKE_ENV= COMPILER_PATH=${LOCALBASE}/bin
+
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/multimedia/gstreamer1-libav/distinfo b/multimedia/gstreamer1-libav/distinfo
new file mode 100644
index 000000000..fe215527e
--- /dev/null
+++ b/multimedia/gstreamer1-libav/distinfo
@@ -0,0 +1,2 @@
+SHA256 (gst-libav-1.0.0.tar.xz) = 9d1cf67210f1e3aa7f06a45b94c2f519a5aaf8a5ed7bf4dbd66dc64a35436131
+SIZE (gst-libav-1.0.0.tar.xz) = 4230152
diff --git a/multimedia/gstreamer1-libav/pkg-descr b/multimedia/gstreamer1-libav/pkg-descr
new file mode 100644
index 000000000..b8a091e35
--- /dev/null
+++ b/multimedia/gstreamer1-libav/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/gstreamer1-libav/pkg-plist b/multimedia/gstreamer1-libav/pkg-plist
new file mode 100644
index 000000000..2022bcd22
--- /dev/null
+++ b/multimedia/gstreamer1-libav/pkg-plist
@@ -0,0 +1,4 @@
+lib/gstreamer-%%VERSION%%/libgstavscale.la
+lib/gstreamer-%%VERSION%%/libgstavscale.so
+lib/gstreamer-%%VERSION%%/libgstlibav.la
+lib/gstreamer-%%VERSION%%/libgstlibav.so
diff --git a/multimedia/gstreamer1-plugins-bad/Makefile b/multimedia/gstreamer1-plugins-bad/Makefile
new file mode 100644
index 000000000..0357e4b46
--- /dev/null
+++ b/multimedia/gstreamer1-plugins-bad/Makefile
@@ -0,0 +1,34 @@
+# Created by: Michael Johnson <ahze@FreeBSD.org>
+# $FreeBSD$
+# $MCom$
+
+PORTREVISION= 0
+CATEGORIES= multimedia
+
+COMMENT= Bad gstreamer-plugins
+
+GST_PLUGIN= bad
+GST_PLUGIN_SUFFIX= -bad
+
+MASTERDIR= ${.CURDIR}/../../multimedia/gstreamer1-plugins
+
+BUILD_DEPENDS+= gstreamer1-plugins>=${GST10_VERSION}${GST10_MINOR_VERSION}:${PORTSDIR}/multimedia/gstreamer1-plugins \
+ v4l_compat>=1.0.20100321:${PORTSDIR}/multimedia/v4l_compat
+RUN_DEPENDS+= gstreamer1-plugins>=${GST10_VERSION}${GST10_MINOR_VERSION}:${PORTSDIR}/multimedia/gstreamer1-plugins
+
+DIST= bad
+BAD_GST_DIRS= gst-libs sys gst po
+NO_GSTREAMER_COMMON= yes
+PLIST= ${.CURDIR}/pkg-plist
+
+do-build:
+.for dir in ${BAD_GST_DIRS}
+ @(cd ${BUILD_WRKSRC}/${dir}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
+.endfor
+
+do-install:
+.for dir in ${BAD_GST_DIRS}
+ @(cd ${INSTALL_WRKSRC}/${dir} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
+.endfor
+
+.include "${MASTERDIR}/Makefile"
diff --git a/multimedia/gstreamer1-plugins-bad/pkg-plist b/multimedia/gstreamer1-plugins-bad/pkg-plist
new file mode 100644
index 000000000..a038cb871
--- /dev/null
+++ b/multimedia/gstreamer1-plugins-bad/pkg-plist
@@ -0,0 +1,158 @@
+include/gstreamer-%%VERSION%%/gst/basecamerabinsrc/gstbasecamerasrc.h
+include/gstreamer-%%VERSION%%/gst/basecamerabinsrc/gstcamerabin-enum.h
+include/gstreamer-%%VERSION%%/gst/basecamerabinsrc/gstcamerabinpreview.h
+include/gstreamer-%%VERSION%%/gst/codecparsers/gsth264parser.h
+include/gstreamer-%%VERSION%%/gst/codecparsers/gstmpeg4parser.h
+include/gstreamer-%%VERSION%%/gst/codecparsers/gstmpegvideoparser.h
+include/gstreamer-%%VERSION%%/gst/codecparsers/gstvc1parser.h
+include/gstreamer-%%VERSION%%/gst/interfaces/photography-enumtypes.h
+include/gstreamer-%%VERSION%%/gst/interfaces/photography.h
+include/gstreamer-%%VERSION%%/gst/signalprocessor/gstsignalprocessor.h
+include/gstreamer-%%VERSION%%/gst/video/gstsurfaceconverter.h
+include/gstreamer-%%VERSION%%/gst/video/gstsurfacemeta.h
+include/gstreamer-%%VERSION%%/gst/video/videocontext.h
+lib/gstreamer-%%VERSION%%/libgstadpcmdec.la
+lib/gstreamer-%%VERSION%%/libgstadpcmdec.so
+lib/gstreamer-%%VERSION%%/libgstadpcmenc.la
+lib/gstreamer-%%VERSION%%/libgstadpcmenc.so
+lib/gstreamer-%%VERSION%%/libgstasfmux.la
+lib/gstreamer-%%VERSION%%/libgstasfmux.so
+lib/gstreamer-%%VERSION%%/libgstautoconvert.la
+lib/gstreamer-%%VERSION%%/libgstautoconvert.so
+lib/gstreamer-%%VERSION%%/libgstbayer.la
+lib/gstreamer-%%VERSION%%/libgstbayer.so
+lib/gstreamer-%%VERSION%%/libgstcoloreffects.la
+lib/gstreamer-%%VERSION%%/libgstcoloreffects.so
+lib/gstreamer-%%VERSION%%/libgstdataurisrc.la
+lib/gstreamer-%%VERSION%%/libgstdataurisrc.so
+lib/gstreamer-%%VERSION%%/libgstdebugutilsbad.la
+lib/gstreamer-%%VERSION%%/libgstdebugutilsbad.so
+lib/gstreamer-%%VERSION%%/libgstdtmf.la
+lib/gstreamer-%%VERSION%%/libgstdtmf.so
+lib/gstreamer-%%VERSION%%/libgstdvbsuboverlay.la
+lib/gstreamer-%%VERSION%%/libgstdvbsuboverlay.so
+lib/gstreamer-%%VERSION%%/libgstdvdspu.la
+lib/gstreamer-%%VERSION%%/libgstdvdspu.so
+lib/gstreamer-%%VERSION%%/libgstfestival.la
+lib/gstreamer-%%VERSION%%/libgstfestival.so
+lib/gstreamer-%%VERSION%%/libgstfragmented.la
+lib/gstreamer-%%VERSION%%/libgstfragmented.so
+lib/gstreamer-%%VERSION%%/libgstgaudieffects.la
+lib/gstreamer-%%VERSION%%/libgstgaudieffects.so
+lib/gstreamer-%%VERSION%%/libgstgdp.la
+lib/gstreamer-%%VERSION%%/libgstgdp.so
+lib/gstreamer-%%VERSION%%/libgstgeometrictransform.la
+lib/gstreamer-%%VERSION%%/libgstgeometrictransform.so
+lib/gstreamer-%%VERSION%%/libgstid3tag.la
+lib/gstreamer-%%VERSION%%/libgstid3tag.so
+lib/gstreamer-%%VERSION%%/libgstinter.la
+lib/gstreamer-%%VERSION%%/libgstinter.so
+lib/gstreamer-%%VERSION%%/libgstinterlace.la
+lib/gstreamer-%%VERSION%%/libgstinterlace.so
+lib/gstreamer-%%VERSION%%/libgstjpegformat.la
+lib/gstreamer-%%VERSION%%/libgstjpegformat.so
+lib/gstreamer-%%VERSION%%/libgstliveadder.la
+lib/gstreamer-%%VERSION%%/libgstliveadder.so
+lib/gstreamer-%%VERSION%%/libgstmpegpsdemux.la
+lib/gstreamer-%%VERSION%%/libgstmpegpsdemux.so
+lib/gstreamer-%%VERSION%%/libgstmpegtsdemux.la
+lib/gstreamer-%%VERSION%%/libgstmpegtsdemux.so
+lib/gstreamer-%%VERSION%%/libgstmpegtsmux.la
+lib/gstreamer-%%VERSION%%/libgstmpegtsmux.so
+lib/gstreamer-%%VERSION%%/libgstpcapparse.la
+lib/gstreamer-%%VERSION%%/libgstpcapparse.so
+lib/gstreamer-%%VERSION%%/libgstpnm.la
+lib/gstreamer-%%VERSION%%/libgstpnm.so
+lib/gstreamer-%%VERSION%%/libgstrawparse.la
+lib/gstreamer-%%VERSION%%/libgstrawparse.so
+lib/gstreamer-%%VERSION%%/libgstrtpmux.la
+lib/gstreamer-%%VERSION%%/libgstrtpmux.so
+lib/gstreamer-%%VERSION%%/libgstrtpvp8.la
+lib/gstreamer-%%VERSION%%/libgstrtpvp8.so
+lib/gstreamer-%%VERSION%%/libgstscaletempoplugin.la
+lib/gstreamer-%%VERSION%%/libgstscaletempoplugin.so
+lib/gstreamer-%%VERSION%%/libgstsdpelem.la
+lib/gstreamer-%%VERSION%%/libgstsdpelem.so
+lib/gstreamer-%%VERSION%%/libgstsegmentclip.la
+lib/gstreamer-%%VERSION%%/libgstsegmentclip.so
+lib/gstreamer-%%VERSION%%/libgstsiren.la
+lib/gstreamer-%%VERSION%%/libgstsiren.so
+lib/gstreamer-%%VERSION%%/libgstspeed.la
+lib/gstreamer-%%VERSION%%/libgstspeed.so
+lib/gstreamer-%%VERSION%%/libgstvideoparsersbad.la
+lib/gstreamer-%%VERSION%%/libgstvideoparsersbad.so
+lib/gstreamer-%%VERSION%%/libgsty4mdec.la
+lib/gstreamer-%%VERSION%%/libgsty4mdec.so
+lib/gstreamer-%%VERSION%%/libgstaudiovisualizers.la
+lib/gstreamer-%%VERSION%%/libgstaudiovisualizers.so
+lib/gstreamer-%%VERSION%%/libgstcamerabin2.la
+lib/gstreamer-%%VERSION%%/libgstcamerabin2.so
+lib/gstreamer-%%VERSION%%/libgstremovesilence.la
+lib/gstreamer-%%VERSION%%/libgstremovesilence.so
+lib/gstreamer-%%VERSION%%/libgstsmooth.la
+lib/gstreamer-%%VERSION%%/libgstsmooth.so
+lib/libgstbasecamerabinsrc-%%VERSION%%.a
+lib/libgstbasecamerabinsrc-%%VERSION%%.la
+lib/libgstbasecamerabinsrc-%%VERSION%%.so
+lib/libgstbasecamerabinsrc-%%VERSION%%.so.0
+lib/libgstbasevideo-%%VERSION%%.a
+lib/libgstbasevideo-%%VERSION%%.la
+lib/libgstbasevideo-%%VERSION%%.so
+lib/libgstbasevideo-%%VERSION%%.so.0
+lib/libgstcodecparsers-%%VERSION%%.a
+lib/libgstcodecparsers-%%VERSION%%.la
+lib/libgstcodecparsers-%%VERSION%%.so
+lib/libgstcodecparsers-%%VERSION%%.so.0
+lib/libgstphotography-%%VERSION%%.a
+lib/libgstphotography-%%VERSION%%.la
+lib/libgstphotography-%%VERSION%%.so
+lib/libgstphotography-%%VERSION%%.so.0
+lib/libgstsignalprocessor-%%VERSION%%.a
+lib/libgstsignalprocessor-%%VERSION%%.la
+lib/libgstsignalprocessor-%%VERSION%%.so
+lib/libgstsignalprocessor-%%VERSION%%.so.0
+share/locale/af/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/az/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/bg/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/ca/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/cs/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/da/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/de/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/el/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/en_GB/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/eo/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/es/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/eu/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/fi/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/fr/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/gl/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/hu/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/id/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/it/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/ja/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/ky/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/lt/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/lv/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/mt/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/nb/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/nl/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/or/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/pl/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/pt_BR/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/ro/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/ru/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/sk/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/sl/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/sq/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/sr/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/sv/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/tr/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/uk/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/vi/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+share/locale/zh_CN/LC_MESSAGES/gst-plugins-bad-%%VERSION%%.mo
+@dirrmtry share/locale/ky/LC_MESSAGES
+@dirrmtry share/locale/ky
+@dirrm include/gstreamer-%%VERSION%%/gst/signalprocessor
+@dirrm include/gstreamer-%%VERSION%%/gst/interfaces
+@dirrm include/gstreamer-%%VERSION%%/gst/codecparsers
+@dirrm include/gstreamer-%%VERSION%%/gst/basecamerabinsrc
diff --git a/multimedia/gstreamer1-plugins-good/Makefile b/multimedia/gstreamer1-plugins-good/Makefile
new file mode 100644
index 000000000..df24e3e3e
--- /dev/null
+++ b/multimedia/gstreamer1-plugins-good/Makefile
@@ -0,0 +1,37 @@
+# Created by: Michael Johnson <ahze@FreeBSD.org>
+# $FreeBSD$
+# $MCom$
+
+PORTREVISION= 0
+CATEGORIES= multimedia
+
+COMMENT= Good gstreamer-plugins
+
+GST_PLUGIN= good
+GST_PLUGIN_SUFFIX= -good
+
+MASTERDIR= ${.CURDIR}/../../multimedia/gstreamer1-plugins
+
+BUILD_DEPENDS+= gstreamer1-plugins>=${GST10_VERSION}${GST10_MINOR_VERSION}:${PORTSDIR}/multimedia/gstreamer1-plugins
+RUN_DEPENDS+= gstreamer1-plugins>=${GST10_VERSION}${GST10_MINOR_VERSION}:${PORTSDIR}/multimedia/gstreamer1-plugins
+
+DIST= good
+GOOD_GST_DIRS= gst sys po
+
+PLIST= ${.CURDIR}/pkg-plist
+FILESDIR=${.CURDIR}/files
+PATCHDIR=${.CURDIR}/files
+NO_GSTREAMER_COMMON= yes
+
+do-build:
+.for dir in ${GOOD_GST_DIRS}
+ @(cd ${BUILD_WRKSRC}/${dir}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
+.endfor
+
+do-install:
+.for dir in ${GOOD_GST_DIRS}
+ @(cd ${INSTALL_WRKSRC}/${dir} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
+
+.endfor
+
+.include "${MASTERDIR}/Makefile"
diff --git a/multimedia/gstreamer1-plugins-good/files/patch-configure b/multimedia/gstreamer1-plugins-good/files/patch-configure
new file mode 100644
index 000000000..d893a20c2
--- /dev/null
+++ b/multimedia/gstreamer1-plugins-good/files/patch-configure
@@ -0,0 +1,29 @@
+--- configure.orig 2010-12-01 19:16:00.000000000 +0100
++++ configure 2010-12-02 15:39:17.000000000 +0100
+@@ -24955,7 +24955,7 @@ if test "${with_default_audiosink+set}"
+
+ else
+
+- DEFAULT_AUDIOSINK="$DEFAULT_AUDIOSINK"
++ DEFAULT_VISUALIZER="$DEFAULT_VISUALIZER"
+
+ fi
+
+@@ -27516,6 +27516,8 @@ $as_echo_n "checking Checking for up to
+ #ifdef __sun /* Solaris */
+ #include <sys/types.h>
+ #include <sys/videodev2.h>
++#elif __FreeBSD__
++#include <linux/videodev2.h>
+ #else /* Linux */
+ #include <linux/types.h>
+ #define _LINUX_TIME_H
+@@ -27589,6 +27591,8 @@ $as_echo_n "checking struct v4l2_buffer
+ #ifdef __sun /* Solaris */
+ #include <sys/types.h>
+ #include <sys/videodev2.h>
++#elif __FreeBSD__
++#include <linux/videodev2.h>
+ #else /* Linux */
+ #include <linux/types.h>
+ #define _LINUX_TIME_H
diff --git a/multimedia/gstreamer1-plugins-good/files/patch-sys_oss_gstosshelper.c b/multimedia/gstreamer1-plugins-good/files/patch-sys_oss_gstosshelper.c
new file mode 100644
index 000000000..34fdd3119
--- /dev/null
+++ b/multimedia/gstreamer1-plugins-good/files/patch-sys_oss_gstosshelper.c
@@ -0,0 +1,20 @@
+--- sys/oss/gstosshelper.c.orig Sun Apr 2 03:23:53 2006
++++ sys/oss/gstosshelper.c Sun Apr 2 03:25:44 2006
+@@ -343,13 +344,17 @@ gst_oss_helper_rate_check_rate (GstOssPr
+ int format;
+ int n_channels;
+ int ret;
++ int rst;
+
+ rate = irate;
+ format = probe->format;
+ n_channels = probe->n_channels;
++ rst = 4000; /* XXX Lowest supported rate for FreeBSD. */
+
+ GST_LOG ("checking format %d, channels %d, rate %d",
+ format, n_channels, rate);
++ /* Reset rate to lowest supported rate. */
++ ioctl (probe->fd, SNDCTL_DSP_SPEED, &rst);
+ ret = ioctl (probe->fd, SNDCTL_DSP_SETFMT, &format);
+ if (ret < 0)
+ return -1;
diff --git a/multimedia/gstreamer1-plugins-good/files/patch-sys_v4l2_gstv4l2object.h b/multimedia/gstreamer1-plugins-good/files/patch-sys_v4l2_gstv4l2object.h
new file mode 100644
index 000000000..af186ea7f
--- /dev/null
+++ b/multimedia/gstreamer1-plugins-good/files/patch-sys_v4l2_gstv4l2object.h
@@ -0,0 +1,21 @@
+--- sys/v4l2/gstv4l2object.h.orig 2010-02-11 17:52:41.000000000 +0100
++++ sys/v4l2/gstv4l2object.h 2010-02-11 17:57:50.000000000 +0100
+@@ -38,13 +38,15 @@
+ */
+ #include <sys/ioctl.h>
+ #include <sys/types.h>
+-#ifndef __sun
++#ifdef __sun
++#include <sys/videodev2.h>
++#elif defined(__FreeBSD__)
++#include <linux/videodev2.h>
++#else /* linux */
+ #include <linux/types.h>
+ #define _LINUX_TIME_H
+ #define __user
+ #include <linux/videodev2.h>
+-#else
+-#include <sys/videodev2.h>
+ #endif
+
+ #include <gst/gst.h>
diff --git a/multimedia/gstreamer1-plugins-good/pkg-plist b/multimedia/gstreamer1-plugins-good/pkg-plist
new file mode 100644
index 000000000..dfe6500bd
--- /dev/null
+++ b/multimedia/gstreamer1-plugins-good/pkg-plist
@@ -0,0 +1,140 @@
+lib/gstreamer-%%VERSION%%/libgstalaw.la
+lib/gstreamer-%%VERSION%%/libgstalaw.so
+lib/gstreamer-%%VERSION%%/libgstalpha.la
+lib/gstreamer-%%VERSION%%/libgstalpha.so
+lib/gstreamer-%%VERSION%%/libgstalphacolor.la
+lib/gstreamer-%%VERSION%%/libgstalphacolor.so
+lib/gstreamer-%%VERSION%%/libgstapetag.la
+lib/gstreamer-%%VERSION%%/libgstapetag.so
+lib/gstreamer-%%VERSION%%/libgstaudiofx.la
+lib/gstreamer-%%VERSION%%/libgstaudiofx.so
+lib/gstreamer-%%VERSION%%/libgstaudioparsers.la
+lib/gstreamer-%%VERSION%%/libgstaudioparsers.so
+lib/gstreamer-%%VERSION%%/libgstauparse.la
+lib/gstreamer-%%VERSION%%/libgstauparse.so
+lib/gstreamer-%%VERSION%%/libgstautodetect.la
+lib/gstreamer-%%VERSION%%/libgstautodetect.so
+lib/gstreamer-%%VERSION%%/libgstavi.la
+lib/gstreamer-%%VERSION%%/libgstavi.so
+lib/gstreamer-%%VERSION%%/libgstcutter.la
+lib/gstreamer-%%VERSION%%/libgstcutter.so
+lib/gstreamer-%%VERSION%%/libgstdebug.la
+lib/gstreamer-%%VERSION%%/libgstdebug.so
+lib/gstreamer-%%VERSION%%/libgstdeinterlace.la
+lib/gstreamer-%%VERSION%%/libgstdeinterlace.so
+lib/gstreamer-%%VERSION%%/libgsteffectv.la
+lib/gstreamer-%%VERSION%%/libgsteffectv.so
+lib/gstreamer-%%VERSION%%/libgstequalizer.la
+lib/gstreamer-%%VERSION%%/libgstequalizer.so
+lib/gstreamer-%%VERSION%%/libgstflv.la
+lib/gstreamer-%%VERSION%%/libgstflv.so
+lib/gstreamer-%%VERSION%%/libgstflxdec.la
+lib/gstreamer-%%VERSION%%/libgstflxdec.so
+lib/gstreamer-%%VERSION%%/libgstgoom.la
+lib/gstreamer-%%VERSION%%/libgstgoom.so
+lib/gstreamer-%%VERSION%%/libgstgoom2k1.la
+lib/gstreamer-%%VERSION%%/libgstgoom2k1.so
+lib/gstreamer-%%VERSION%%/libgsticydemux.la
+lib/gstreamer-%%VERSION%%/libgsticydemux.so
+lib/gstreamer-%%VERSION%%/libgstid3demux.la
+lib/gstreamer-%%VERSION%%/libgstid3demux.so
+lib/gstreamer-%%VERSION%%/libgstimagefreeze.la
+lib/gstreamer-%%VERSION%%/libgstimagefreeze.so
+lib/gstreamer-%%VERSION%%/libgstinterleave.la
+lib/gstreamer-%%VERSION%%/libgstinterleave.so
+lib/gstreamer-%%VERSION%%/libgstlevel.la
+lib/gstreamer-%%VERSION%%/libgstlevel.so
+lib/gstreamer-%%VERSION%%/libgstmatroska.la
+lib/gstreamer-%%VERSION%%/libgstmatroska.so
+lib/gstreamer-%%VERSION%%/libgstmulaw.la
+lib/gstreamer-%%VERSION%%/libgstmulaw.so
+lib/gstreamer-%%VERSION%%/libgstmultifile.la
+lib/gstreamer-%%VERSION%%/libgstmultifile.so
+lib/gstreamer-%%VERSION%%/libgstmultipart.la
+lib/gstreamer-%%VERSION%%/libgstmultipart.so
+lib/gstreamer-%%VERSION%%/libgstnavigationtest.la
+lib/gstreamer-%%VERSION%%/libgstnavigationtest.so
+lib/gstreamer-%%VERSION%%/libgstoss4audio.la
+lib/gstreamer-%%VERSION%%/libgstoss4audio.so
+lib/gstreamer-%%VERSION%%/libgstossaudio.la
+lib/gstreamer-%%VERSION%%/libgstossaudio.so
+lib/gstreamer-%%VERSION%%/libgstisomp4.la
+lib/gstreamer-%%VERSION%%/libgstisomp4.so
+lib/gstreamer-%%VERSION%%/libgstreplaygain.la
+lib/gstreamer-%%VERSION%%/libgstreplaygain.so
+lib/gstreamer-%%VERSION%%/libgstrtp.la
+lib/gstreamer-%%VERSION%%/libgstrtp.so
+lib/gstreamer-%%VERSION%%/libgstrtpmanager.la
+lib/gstreamer-%%VERSION%%/libgstrtpmanager.so
+lib/gstreamer-%%VERSION%%/libgstrtsp.la
+lib/gstreamer-%%VERSION%%/libgstrtsp.so
+lib/gstreamer-%%VERSION%%/libgstshapewipe.la
+lib/gstreamer-%%VERSION%%/libgstshapewipe.so
+lib/gstreamer-%%VERSION%%/libgstsmpte.la
+lib/gstreamer-%%VERSION%%/libgstsmpte.so
+lib/gstreamer-%%VERSION%%/libgstspectrum.la
+lib/gstreamer-%%VERSION%%/libgstspectrum.so
+lib/gstreamer-%%VERSION%%/libgstudp.la
+lib/gstreamer-%%VERSION%%/libgstudp.so
+lib/gstreamer-%%VERSION%%/libgstvideobox.la
+lib/gstreamer-%%VERSION%%/libgstvideobox.so
+lib/gstreamer-%%VERSION%%/libgstvideocrop.la
+lib/gstreamer-%%VERSION%%/libgstvideocrop.so
+lib/gstreamer-%%VERSION%%/libgstvideofilter.la
+lib/gstreamer-%%VERSION%%/libgstvideofilter.so
+lib/gstreamer-%%VERSION%%/libgstvideomixer.la
+lib/gstreamer-%%VERSION%%/libgstvideomixer.so
+lib/gstreamer-%%VERSION%%/libgstwavenc.la
+lib/gstreamer-%%VERSION%%/libgstwavenc.so
+lib/gstreamer-%%VERSION%%/libgstwavparse.la
+lib/gstreamer-%%VERSION%%/libgstwavparse.so
+lib/gstreamer-%%VERSION%%/libgstximagesrc.la
+lib/gstreamer-%%VERSION%%/libgstximagesrc.so
+lib/gstreamer-%%VERSION%%/libgsty4menc.la
+lib/gstreamer-%%VERSION%%/libgsty4menc.so
+share/gstreamer-%%VERSION%%/presets/GstIirEqualizer10Bands.prs
+share/gstreamer-%%VERSION%%/presets/GstIirEqualizer3Bands.prs
+share/locale/af/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/az/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/bg/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/ca/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/cs/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/da/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/de/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/el/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/en_GB/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/eo/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/es/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/eu/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/fi/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/fr/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/gl/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/hu/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/id/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/it/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/ja/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/lt/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/lv/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/mt/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/nb/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/nl/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/or/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/pl/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/pt_BR/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/ro/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/ru/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/sk/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/sl/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/sq/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/sr/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/sv/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/tr/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/uk/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/vi/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/zh_CN/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/zh_HK/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+share/locale/zh_TW/LC_MESSAGES/gst-plugins-good-%%VERSION%%.mo
+@dirrmtry share/locale/zh_HK/LC_MESSAGES
+@dirrmtry share/locale/zh_HK
+@dirrmtry share/gstreamer-%%VERSION%%/presets
+@dirrmtry share/gstreamer-%%VERSION%%
diff --git a/multimedia/gstreamer1-plugins-theora/Makefile b/multimedia/gstreamer1-plugins-theora/Makefile
new file mode 100644
index 000000000..fa69a9b7e
--- /dev/null
+++ b/multimedia/gstreamer1-plugins-theora/Makefile
@@ -0,0 +1,15 @@
+# Created by: Michael Johnson <ahze@FreeBSD.org>
+# $FreeBSD$
+# $MCom$
+
+PORTREVISION= 0
+CATEGORIES= multimedia
+
+COMMENT= Gstreamer theora plugin
+
+GST_PLUGIN= theora
+DIST= base
+
+MASTERDIR= ${.CURDIR}/../../multimedia/gstreamer1-plugins
+
+.include "${MASTERDIR}/Makefile"
diff --git a/multimedia/gstreamer1-plugins-ugly/Makefile b/multimedia/gstreamer1-plugins-ugly/Makefile
new file mode 100644
index 000000000..092f11e44
--- /dev/null
+++ b/multimedia/gstreamer1-plugins-ugly/Makefile
@@ -0,0 +1,33 @@
+# Created by: Michael Johnson <ahze@FreeBSD.org>
+# $FreeBSD$
+# $MCom$
+
+PORTREVISION= 0
+CATEGORIES= multimedia
+
+COMMENT= Ugly gstreamer-plugins
+
+GST_PLUGIN= ugly
+GST_PLUGIN_SUFFIX= -ugly
+
+MASTERDIR= ${.CURDIR}/../../multimedia/gstreamer1-plugins
+
+BUILD_DEPENDS+= gstreamer1-plugins>=${GST10_VERSION}${GST10_MINOR_VERSION}:${PORTSDIR}/multimedia/gstreamer1-plugins
+RUN_DEPENDS+= gstreamer1-plugins>=${GST10_VERSION}${GST10_MINOR_VERSION}:${PORTSDIR}/multimedia/gstreamer1-plugins
+
+DIST= ugly
+UGLY_GST_DIRS= gst po gst-libs
+NO_GSTREAMER_COMMON= yes
+PLIST= ${.CURDIR}/pkg-plist
+
+do-build:
+.for dir in ${UGLY_GST_DIRS}
+ @(cd ${BUILD_WRKSRC}/${dir}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
+.endfor
+
+do-install:
+.for dir in ${UGLY_GST_DIRS}
+ @(cd ${INSTALL_WRKSRC}/${dir} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
+.endfor
+
+.include "${MASTERDIR}/Makefile"
diff --git a/multimedia/gstreamer1-plugins-ugly/pkg-plist b/multimedia/gstreamer1-plugins-ugly/pkg-plist
new file mode 100644
index 000000000..f03a34330
--- /dev/null
+++ b/multimedia/gstreamer1-plugins-ugly/pkg-plist
@@ -0,0 +1,49 @@
+lib/gstreamer-%%VERSION%%/libgstasf.la
+lib/gstreamer-%%VERSION%%/libgstasf.so
+lib/gstreamer-%%VERSION%%/libgstdvdlpcmdec.la
+lib/gstreamer-%%VERSION%%/libgstdvdlpcmdec.so
+lib/gstreamer-%%VERSION%%/libgstdvdsub.la
+lib/gstreamer-%%VERSION%%/libgstdvdsub.so
+lib/gstreamer-%%VERSION%%/libgstrmdemux.la
+lib/gstreamer-%%VERSION%%/libgstrmdemux.so
+lib/gstreamer-%%VERSION%%/libgstxingmux.la
+lib/gstreamer-%%VERSION%%/libgstxingmux.so
+share/locale/af/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/az/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/bg/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/ca/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/cs/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/da/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/de/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/el/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/en_GB/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/eo/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/es/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/eu/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/fi/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/fr/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/gl/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/hu/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/id/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/it/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/ja/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/lt/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/lv/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/mt/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/ms/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/nb/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/nl/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/or/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/pl/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/pt_BR/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/ro/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/ru/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/sk/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/sl/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/sq/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/sr/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/sv/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/tr/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/uk/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/vi/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
+share/locale/zh_CN/LC_MESSAGES/gst-plugins-ugly-%%VERSION%%.mo
diff --git a/multimedia/gstreamer1-plugins/Makefile b/multimedia/gstreamer1-plugins/Makefile
new file mode 100644
index 000000000..f7ebf1a13
--- /dev/null
+++ b/multimedia/gstreamer1-plugins/Makefile
@@ -0,0 +1,163 @@
+# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
+# $FreeBSD$
+# $MCom$
+
+PORTNAME= gstreamer1-plugins
+PORTVERSION?= ${BASE_PORTVERSION}
+# When chasing a shared library for a plug-in bump the PORTREVISION in the
+# plug-in port instead, like ${category}/gstreamer1-plugin-${PLUGIN}.
+PORTREVISION?= 0
+CATEGORIES?= multimedia audio
+MASTER_SITES= http://gstreamer.freedesktop.org/src/gst-plugins-base/:base \
+ http://gstreamer.freedesktop.org/src/gst-plugins-bad/:bad \
+ http://gstreamer.freedesktop.org/src/gst-plugins-good/:good \
+ http://gstreamer.freedesktop.org/src/gst-plugins-ugly/:ugly
+PKGNAMESUFFIX?= ${GST_PLUGIN_SUFFIX}
+
+MAINTAINER= multimedia@FreeBSD.org
+COMMENT?= GStreamer written collection of plugins handling several media types
+
+# XXX check which plugin needs the iso-codes stuff and put the depend there.
+BUILD_DEPENDS+= gobject-introspection>=1.31.1:${PORTSDIR}/devel/gobject-introspection \
+ gstreamer1>=${GST1_VERSION}${GST1_MINOR_VERSION}:${PORTSDIR}/multimedia/gstreamer1 \
+ iso-codes>=0:${PORTSDIR}/misc/iso-codes \
+ orc>=0.4.16:${PORTSDIR}/devel/orc
+LIB_DEPENDS+= gstreamer-1.0:${PORTSDIR}/multimedia/gstreamer1 \
+ freetype:${PORTSDIR}/print/freetype2 \
+ orc-0.4:${PORTSDIR}/devel/orc
+RUN_DEPENDS+= iso-codes>=0:${PORTSDIR}/misc/iso-codes
+
+BASE_PORTVERSION= 1.0.0
+BASE_DISTNAME= gst-plugins-base-${BASE_PORTVERSION}
+BASE_DISTFILE= ${BASE_DISTNAME}${EXTRACT_SUFX}
+BAD_PORTVERSION= 1.0.0
+BAD_DISTNAME= gst-plugins-bad-${BAD_PORTVERSION}
+BAD_DISTFILE= ${BAD_DISTNAME}${EXTRACT_SUFX}
+GOOD_PORTVERSION= 1.0.0
+GOOD_DISTNAME= gst-plugins-good-${GOOD_PORTVERSION}
+GOOD_DISTFILE= ${GOOD_DISTNAME}${EXTRACT_SUFX}
+UGLY_PORTVERSION= 1.0.0
+UGLY_DISTNAME= gst-plugins-ugly-${UGLY_PORTVERSION}
+UGLY_DISTFILE= ${UGLY_DISTNAME}${EXTRACT_SUFX}
+DIST?= base
+
+SHLIB_VERSION= 0
+USE_GETTEXT= yes
+# xxx remove when 1.0 is offical released
+VERSION= ${GST1_VERSION}
+#VERSION= 1.0
+WANT_GSTREAMER= yes
+USE_XZ= yes
+USE_GMAKE= yes
+USE_GNOME+= gnomehack ltverhack:0 ltasneededhack
+USE_PKGCONFIG= build
+USE_AUTOTOOLS= libtool
+GST_PLUGIN?= base
+USE_LDCONFIG= yes
+
+CFLAGS:= ${CFLAGS} -O2 -Wno-format
+CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
+LDFLAGS+= -L${LOCALBASE}/lib ${EXTRA_LIBS} ${PTHREAD_LIBS}
+
+DEFAULT_AUDIOSINK?= osssink
+DEFAULT_AUDIOSRC?= osssrc
+
+.if ${DIST}==""
+IGNORE= DIST not specified
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if ${ARCH}=="i386"
+PLIST_SUB+= I386=""
+.else
+PLIST_SUB+= I386="@comment "
+.endif
+
+.if ${GST_PLUGIN} == "base"
+DIST= base
+NO_GSTREAMER_COMMON= yes
+CONFIGURE_ARGS+=--with-default-audiosink="${DEFAULT_AUDIOSINK}" \
+ --with-default-audiosrc="${DEFAULT_AUDIOSRC}"
+
+MAN1= gst-discoverer-1.0.1
+.else
+BUILD_DEPENDS+= gstreamer1-plugins>=${GST1_VERSION}${GST1_MINOR_VERSION}:${PORTSDIR}/multimedia/gstreamer1-plugins
+RUN_DEPEDNS+= gstreamer1-plugins>=${GST1_VERSION}${GST1_MINOR_VERSION}:${PORTSDIR}/multimedia/gstreamer1-plugins
+.endif
+PLIST_SUB+= VERSION="${VERSION}" \
+ SHLIB_VERSION="${SHLIB_VERSION}"
+
+.include "${MASTERDIR}/Makefile.common"
+
+.if ${DIST}=="base"
+EXTRACT_ONLY=${BASE_DISTFILE}
+WRKSRC=${WRKDIR}/${BASE_DISTNAME}
+PORTVERSION= ${BASE_PORTVERSION}
+DISTFILES+= ${BASE_DISTFILE}:base
+PATCHDIR= ${.CURDIR}/../../multimedia/gstreamer1-plugins/files
+.elif ${DIST}=="bad"
+EXTRACT_ONLY=${BAD_DISTFILE}
+WRKSRC=${WRKDIR}/${BAD_DISTNAME}
+PORTVERSION= ${BAD_PORTVERSION}
+DISTFILES+= ${BAD_DISTFILE}:bad
+PATCHDIR= ${.CURDIR}/../../multimedia/gstreamer1-plugins-bad/files
+.elif ${DIST}=="ugly"
+EXTRACT_ONLY=${UGLY_DISTFILE}
+WRKSRC=${WRKDIR}/${UGLY_DISTNAME}
+PORTVERSION= ${UGLY_PORTVERSION}
+DISTFILES+= ${UGLY_DISTFILE}:ugly
+PATCHDIR= ${.CURDIR}/../../multimedia/gstreamer1-plugins-ugly/files
+.elif ${DIST}=="good"
+EXTRACT_ONLY=${GOOD_DISTFILE}
+WRKSRC=${WRKDIR}/${GOOD_DISTNAME}
+PORTVERSION= ${GOOD_PORTVERSION}
+DISTFILES+= ${GOOD_DISTFILE}:good
+PATCHDIR= ${.CURDIR}/../../multimedia/gstreamer1-plugins-good/files
+.elif ${DIST}=="makesum"
+DISTFILES+= ${BASE_DISTFILE}:base ${BAD_DISTFILE}:bad \
+ ${UGLY_DISTFILE}:ugly ${GOOD_DISTFILE}:good
+.else
+BROKEN= Unknown dist setting
+.endif
+
+# cdrom/dvd default device
+.ifdef(WITH_DVD_DEVICE)
+DEFAULT_DVD_DEVICE=${WITH_DVD_DEVICE}
+.else
+DEFAULT_DVD_DEVICE=/dev/cd0
+.endif
+
+post-patch:
+.if ${DIST}=="bad"
+ @${REINPLACE_CMD} -e 's|opencv <= 2.3.1|opencv <= 2.3.99|g' \
+ ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e 's|/dev/dvd|${DEFAULT_DVD_DEVICE}|g' \
+ ${WRKSRC}/ext/resindvd/resindvdbin.c \
+ ${WRKSRC}/ext/resindvd/resindvdsrc.c
+.endif
+ @${FIND} ${WRKSRC}/ext ${WRKSRC}/sys -name Makefile.in | \
+ ${XARGS} -n 10 ${REINPLACE_CMD} -e \
+ 's|$$(top_builddir)/gst-libs/gst/tag/libgsttag-@GST_API_VERSION@.la|${LOCALBASE}/lib/libgsttag-$$(GST_API_VERSION).la|; \
+ s|$$(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_API_VERSION@.la|${LOCALBASE}/lib/libgstaudio-$$(GST_API_VERSION).la|; \
+ s|$$(top_builddir)/gst-libs/gst/riff/libgstriff-@GST_API_VERSION@.la|${LOCALBASE}/lib/libgstriff-$$(GST_API_VERSION).la|; \
+ s|$$(top_builddir)/gst-libs/gst/signalprocessor/libgstsignalprocessor-@GST_API_VERSION@.la|${LOCALBASE}/lib/libgstsignalprocessor-$$(GST_API_VERSION).la|; \
+ s|$$(top_builddir)/gst-libs/gst/video/libgstbasevideo-@GST_API_VERSION@.la|${LOCALBASE}/lib/libgstbasevideo-$$(GST_API_VERSION).la|; \
+ s|$$(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_API_VERSION@.la|${LOCALBASE}/lib/libgstvideo-$$(GST_API_VERSION).la|'
+
+ @${FIND} ${WRKSRC}/ext ${WRKSRC}/sys -name Makefile.in | \
+ ${XARGS} -n 10 ${REINPLACE_CMD} -e \
+ 's|$$(top_builddir)/gst-libs/gst/tag/libgsttag-$$(GST_API_VERSION).la|${LOCALBASE}/lib/libgsttag-$$(GST_API_VERSION).la|; \
+ s|$$(top_builddir)/gst-libs/gst/audio/libgstaudio-$$(GST_API_VERSION).la|${LOCALBASE}/lib/libgstaudio-$$(GST_API_VERSION).la|; \
+ s|$$(top_builddir)/gst-libs/gst/riff/libgstriff-$$(GST_API_VERSION).la|${LOCALBASE}/lib/libgstriff-$$(GST_API_VERSION).la|; \
+ s|$$(top_builddir)/gst-libs/gst/signalprocessor/libgstsignalprocessor-$$(GST_API_VERSION).la|${LOCALBASE}/lib/libgstsignalprocessor-$$(GST_API_VERSION).la|; \
+ s|$$(top_builddir)/gst-libs/gst/video/libgstbasevideo-$$(GST_API_VERSION).la|${LOCALBASE}/lib/libgstbasevideo-$$(GST_API_VERSION).la|; \
+ s|$$(top_builddir)/gst-libs/gst/video/libgstvideo-$$(GST_API_VERSION).la|${LOCALBASE}/lib/libgstvideo-$$(GST_API_VERSION).la|'
+
+# @${REINPLACE_CMD} -e 's|DEFAULT_AUDIOSINK="alsasink"|DEFAULT_AUDIOSINK="${DEFAULT_AUDIOSINK}"|; \
+# s|DEFAULT_AUDIOSRC="alsasrc"|DEFAULT_AUDIOSRC="${DEFAULT_AUDIOSRC}"|' \
+# -e 's|libpng12.pc|libpng15.pc|g' \
+# -e 's|-Wmissing-include-dirs||g' \
+# ${WRKSRC}/configure
+
+.include <bsd.port.post.mk>
diff --git a/multimedia/gstreamer1-plugins/Makefile.common b/multimedia/gstreamer1-plugins/Makefile.common
new file mode 100644
index 000000000..f5ecbec23
--- /dev/null
+++ b/multimedia/gstreamer1-plugins/Makefile.common
@@ -0,0 +1,799 @@
+# $FreeBSD$
+# $MCom$
+
+# XXX configure checks for all ports.
+
+# xxx DIST is voor het aangeven waar de plugin weg komt.?
+# dus DIST ook in plugins vermelden naast GST_PLUGIN
+# voor meeste DIST gebruik GST_PLUGIN gebruiken?
+
+# base
+BASE_GST_ALL_PLUGINS= \
+ alsa \
+ cdparanoia \
+ ivorbis \
+ libvisual \
+ ogg \
+ pango \
+ theora \
+ vorbis \
+ x \
+ xvideo
+
+# bad
+BAD_GST_ALL_PLUGINS+= \
+# apexsink \
+# assrender \
+# bz2 \
+# cdaudio \
+# celt \
+# cog \
+# dc1394 \
+# dirac \
+# directfb \
+# dts \
+# dvb \
+# faac \
+# faad \
+# flite \
+# gme \
+# gsm \
+# kate \
+# ladspa \
+# libmms \
+# lv2 \
+# mimic \
+# modplug \
+# mpeg2enc \
+# mplex \
+# musepack \
+# musicbrainz \
+# mythtv \
+# nas \
+# neon \
+# ofa \
+# opencv \
+# resindvd \
+# rsvg \
+# schro \
+# sdl \
+# shm \
+# sndfile \
+# soundtouch \
+# spc \
+# swfdec \
+# timidity \
+# vdpau \
+# xvid \
+# zbar
+
+# bad plugins that are disabled because we don't support them, e.a. windows plugins
+# --disable-applemedia \ --disable-avcsrc \
+# --disable-osxvideosrc \
+BAD_GST_DISABLED= \
+ --disable-acm \
+ --disable-dc1394 \
+ --disable-dccp \
+ --disable-direct3d9 \
+ --disable-directdraw \
+ --disable-directfb \
+ --disable-directsound \
+ --disable-fbdev \
+ --disable-uvch264 \
+ --disable-vcd \
+ --disable-wininet
+
+# acm, apexsink, applemedia, cog, dc1394, decklink dfbvideosink, direct3dsink, directdrawsink, directsoundsrc, fbdevsink, gme, linsys, lv2, opus, osxvideosrc
+# direct3d
+# directshow
+# QuickTime (Quicktime/Quicktime.h)
+# wininet (windows internet support)
+
+# maybe
+# wayland (wayland-client
+
+# enabled always
+# --enable-shm AC_CHECK_LIB([rt], [shm_open] <<== -lrt really? :)
+
+# assrender (libass >= 0.9.4) ASS/SSA renderer
+# vo-amrwbenc (vo-amrwbenc > =0.1.0
+# vo-aacenc vo-accenc > 0.1.0
+# apexsink (AirPort Express Wireless sink) (openssl >= 0.9.5 + libcrypto)
+# bz2
+# cdaudio libcdaudio
+# celt
+# chromaprint (libchromaprint)
+# cog (libpng)
+# curl (libcurl >= 7.21.0)
+# decklink (needs thread some FreeBSD probably and configure.ac patch)
+# dirac (dirac >= 0.10)
+# dts (dts library)
+# renindvd (dvdnav 4.1.2 , dvdread 4.1.2
+# free AAC encoder, FAAC (faac)
+# free AAC decoder, FAAD (faad)
+# flite
+# gsm (libgsm)
+# jasper jasperdec jasperenc (jasper/jasper.h)
+# kate (multimedia/libkate >= 0.1.7) (needs libtiger, google code)
+# ladspa
+# lv2 (slv2 >= 0.6.6)
+# libmms (libmms -> 0.4)
+# linsys (linear Systems SDI plugin, needs configure voodo + code probably)
+# modplug (libmodplug)
+# mimic (libmimic)
+# mjpegtools
+# mpeg2enc (mjpegtools)
+# mpg123 (libmpg123 >= 1.13)
+# mplex (mjpegtools)
+# musepack (mpcdec)
+# musicbrainz ( > 2.1.0) doesn't support newer versions.
+# mythtv (gmyth >= 0.4 <= 0.7.99)
+# nas (audio/audiolib.h -laudio)
+# neon >= 0.27.0 <= 0.29.99
+# ofa (libofa)
+# openal (openal)
+# opencv (opencv >= 2.0.0 opencv <= 2.3.1 )
+# opus (libopus >= 0.9.4)
+# pvr (libtimemmgr)??
+# rsvg (not needed?)
+# timidity (libtimidity) timidity midi soft synth plugin
+# teletextdec (zvbi-0.2) Teletext decoder
+# wildmidi ( WildMidi 0.2.2 ?)
+# sdl
+# sndfile
+# soundtouch
+# spc
+# gme (gme/gme.h -lgme)
+# swfdec
+# xvid
+# dvb
+# vdpau
+# schroedinger
+# zbar (libzbar >= 0.9)
+# rtmp (librtmp)
+# spandsp (spandsp >= 0.0.6)
+# gsettings (broken)
+# sndio (sndio.h, libsndio)
+#
+#
+
+# good
+GOOD_GST_ALL_PLUGINS+= \
+ aalib \
+ annodex \
+ cairo \
+ dv \
+ esd \
+ flac \
+ gconf \
+ gdk_pixbuf \
+ hal \
+ jpeg \
+ libcaca \
+ libpng \
+ pulse \
+ raw1394 \
+ shout2 \
+ soup \
+ speex \
+ taglib \
+ gst_v4l2 \
+ wavpack
+
+GOOD_GST_DISABLED=
+
+# ugly
+UGLY_GST_ALL_PLUGINS+= \
+ a52dec \
+ amrnb \
+ amrwbdec \
+ cdio \
+ dvdread \
+ lame \
+ mad \
+ mpeg2dec \
+ sidplay \
+ twolame \
+ x264
+
+UGLY_GST_DISABLED=
+
+.for i in ${BASE_GST_ALL_PLUGINS} ${BAD_GST_ALL_PLUGINS} ${UGLY_GST_ALL_PLUGINS}
+gst_${i}_GCONF_SCHEMAS?= # Empty
+gst_${i}_USE_SDL?= # Empty
+.endfor
+
+#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
+.if ${DIST}=="base"
+.for d in ${BASE_GST_ALL_PLUGINS}
+CONFIGURE_ARGS+= --disable-${d}
+.endfor
+.endif
+
+.if ${DIST}=="bad"
+.for d in ${BAD_GST_ALL_PLUGINS}
+CONFIGURE_ARGS+= --disable-${d}
+.endfor
+CONFIGURE_ARGS+= ${BAD_GST_DISABLED}
+# Isn't ported yet, in 1.0.0
+CONFIGURE_ARGS+=--disable-gsettings
+.endif
+
+.if ${DIST}=="good"
+.for d in ${GOOD_GST_ALL_PLUGINS}
+CONFIGURE_ARGS+= --disable-${d}
+.endfor
+CONFIGURE_ARGS+= ${GOOD_GST_DISABLED}
+.endif
+
+.if ${DIST}=="ugly"
+.for d in ${UGLY_GST_ALL_PLUGINS}
+CONFIGURE_ARGS+= --disable-${d}
+.endfor
+CONFIGURE_ARGS+= ${UGLY_GST_DISABLED}
+.endif
+
+.if !${GST_PLUGIN}=="base" && !${GST_PLUGIN}=="bad" && !${GST_PLUGIN}=="good" && !${GST_PLUGIN}=="ugly"
+CONFIGURE_ARGS+= --enable-${GST_PLUGIN}
+.endif
+
+# plugins disabled by default from bad
+# done above under bad plugin summary
+#CONFIGURE_ARGS+=--disable-tests \
+# --disable-examples \
+# --disable-cd1394 \
+# --disable-acm \
+# --disable-apexsink \
+# --enable-cog \
+# --enable-dvb \
+# --disable-fbdev \
+# --disable-directfb \
+# --disable-http \
+# --enable-cdrom \
+# --disable-gconf \
+# --disable-gconftool \
+# --disable-schemas-install \
+# --enable-oss \
+# --enable-oss4 \
+# --disable-osx_audio \
+# --disable-osx_video \
+# --disable-directdrawsink \
+# --disable-directsoundsink \
+# --disable-tarkin \
+# --enable-shm \
+# --enable-static \
+# --disable-sunaudio \
+# --disable-wildmidi \
+# --disable-xine \
+# --enable-x \
+# --enable-xshm \
+# --enable-xvideo
+
+.if !defined(NO_GSTREAMER_COMMON)
+GST_PLUGIN_SUFFIX?= -${GST_PLUGIN}
+
+# Enable the right plugin
+
+CONFIGURE_ARGS:=${CONFIGURE_ARGS:S|--disable-${GST_PLUGIN}|--enable-${GST_PLUGIN}|}
+
+GST_INC_DIR= include/gstreamer-${VERSION}
+GST_LIB_DIR= lib/gstreamer-${VERSION}
+
+# Auto create PLIST
+PLIST= ${NONEXISTENT}
+
+# a52dec
+gst_a52dec_LIB_DEPENDS+= a52:${PORTSDIR}/audio/liba52
+gst_a52dec_PLIST_FILES= ${GST_LIB_DIR}/libgsta52dec.la \
+ ${GST_LIB_DIR}/libgsta52dec.so
+#gst_a52dec_DIST= ugly
+
+# aalib
+gst_aalib_LIB_DEPENDS+= aa:${PORTSDIR}/graphics/aalib
+gst_aalib_PLIST_FILES= ${GST_LIB_DIR}/libgstaasink.so \
+ ${GST_LIB_DIR}/libgstaasink.la
+
+# amrnb
+gst_amrnb_LIB_DEPENDS+= opencore-amrnb:${PORTSDIR}/audio/opencore-amr
+gst_amrnb_PLIST_FILES= ${GST_LIB_DIR}/libgstamrnb.la \
+ ${GST_LIB_DIR}/libgstamrnb.so \
+ share/gstreamer-${VERSION}/presets/GstAmrnbEnc.prs
+gst_amrnb_PLIST_DIRS= share/gstreamer-${VERSION}/presets \
+ share/gstreamer-${VERSION}
+#gst_amrnb_DIST= ugly
+
+# amrwbdec
+gst_amrwbdec_LIB_DEPENDS+= opencore-amrwb:${PORTSDIR}/audio/opencore-amr
+gst_amrwbdec_CONFIGURE_ARGS+= --enable-amrwb
+gst_amrwbdec_PLIST_FILES= ${GST_LIB_DIR}/libgstamrwbdec.la \
+ ${GST_LIB_DIR}/libgstamrwbdec.so
+#gst_amrwbdec_DIST= ugly
+
+# annodex
+gst_annodex_USE_GNOME+= libxml2
+#gst_annodex_LIB_DEPENDS+= xml2:${PORTSDIR}/textproc/libxml2
+gst_annodex_PLIST_FILES= ${GST_LIB_DIR}/libgstannodex.la \
+ ${GST_LIB_DIR}/libgstannodex.so
+
+# bz2
+gst_bz2_PLIST_FILES= ${GST_LIB_DIR}/libgstbz2.la \
+ ${GST_LIB_DIR}/libgstbz2.so
+#gst_bz2_DIST= bad
+
+# cairo
+gst_cairo_LIB_DEPENDS+= cairo:${PORTSDIR}/graphics/cairo
+gst_cairo_PLIST_FILES= ${GST_LIB_DIR}/libgstcairo.la \
+ ${GST_LIB_DIR}/libgstcairo.so
+
+# cdaudio
+gst_cdaudio_LIB_DEPENDS+=cdaudio:${PORTSDIR}/audio/libcdaudio
+gst_cdaudio_PLIST_FILES= ${GST_LIB_DIR}/libgstcdaudio.la \
+ ${GST_LIB_DIR}/libgstcdaudio.so
+#gst_cdaudio_DIST= bad
+
+# cdparanoia
+gst_cdparanoia_LIB_DEPENDS+= cdda_interface:${PORTSDIR}/audio/cdparanoia
+gst_cdparanoia_PLIST_FILES= ${GST_LIB_DIR}/libgstcdparanoia.la \
+ ${GST_LIB_DIR}/libgstcdparanoia.so
+
+# cdio
+gst_cdio_LIB_DEPENDS+= cdio:${PORTSDIR}/sysutils/libcdio
+gst_cdio_PLIST_FILES= ${GST_LIB_DIR}/libgstcdio.la \
+ ${GST_LIB_DIR}/libgstcdio.so
+#gst_cdio_DIST= ugly
+
+# dts
+gst_dts_LIB_DEPENDS+= dca:${PORTSDIR}/multimedia/libdca
+gst_dts_PLIST_FILES= ${GST_LIB_DIR}/libgstdtsdec.la \
+ ${GST_LIB_DIR}/libgstdtsdec.so
+gst_dts_EXTRA_LIBS+= -ldca
+#gst_dts_DIST= bad
+
+# dv
+gst_dv_LIB_DEPENDS+= dv:${PORTSDIR}/multimedia/libdv
+gst_dv_PLIST_FILES= ${GST_LIB_DIR}/libgstdv.la \
+ ${GST_LIB_DIR}/libgstdv.so
+
+# dvd
+gst_dvd_LIB_DEPENDS+= dvdread:${PORTSDIR}/multimedia/libdvdread
+gst_dvd_GST_PLUGIN_DIR= ext/dvdread
+gst_dvd_PLIST_FILES= ${GST_LIB_DIR}/libgstdvdread.la \
+ ${GST_LIB_DIR}/libgstdvdread.so
+#gst_dvd_DIST= ugly
+
+
+# esound
+gst_esound_USE_GNOME+= esound
+gst_esound_GST_PLUGIN_DIR= ext/esd
+gst_esound_CONFIGURE_ENV+= ESD_CFLAGS="`pkg-config --cflags esound`" \
+ ESD_LIBS="`pkg-config --libs esound`"
+gst_esound_PLIST_FILES= ${GST_LIB_DIR}/libgstesd.so \
+ ${GST_LIB_DIR}/libgstesd.la
+
+# exif
+# hmm not a real plugin, seems to be part of metadata?
+#gst_exif_LIB_DEPENDS+= exif:${PORTSDIR}/graphics/libexif
+#gst_exif_PLIST_FILES= ${GST_LIB_DIR}/libgstexif.la \
+# ${GST_LIB_DIR}/libgstexif.so
+#gst_exif_DIST= bad
+
+# faac
+gst_faac_LIB_DEPENDS+= faac:${PORTSDIR}/audio/faac
+gst_faac_PLIST_FILES= ${GST_LIB_DIR}/libgstfaac.la \
+ ${GST_LIB_DIR}/libgstfaac.so
+#gst_faac_DIST= bad
+
+# faad
+gst_faad_USE_GSTREAMER1+= bad
+gst_faad_LIB_DEPENDS+= faad:${PORTSDIR}/audio/faad
+gst_faad_PLIST_FILES= ${GST_LIB_DIR}/libgstfaad.la \
+ ${GST_LIB_DIR}/libgstfaad.so
+#gst_faad_DIST= bad
+
+# flac
+gst_flac_LIB_DEPENDS+= FLAC:${PORTSDIR}/audio/flac
+gst_flac_PLIST_FILES= ${GST_LIB_DIR}/libgstflac.la \
+ ${GST_LIB_DIR}/libgstflac.so
+
+# flite
+gst_flite_BUILD_DEPENDS+= ${LOCALBASE}/lib/libflite.a:${PORTSDIR}/audio/flite
+gst_flite_PLIST_FILES= ${GST_LIB_DIR}/libgstflite.la \
+ ${GST_LIB_DIR}/libgstflite.so
+#gst_flite_DIST= bad
+
+# gconf
+gst_gconf_USE_GNOME+= gnomeprefix gconf2
+gst_gconf_GST_PLUGIN_DIR= ext/gconf \
+ gconf
+gst_gconf_CONFIGURE_ARGS+= --enable-schemas-install
+gst_gconf_GCONF_SCHEMAS= gstreamer-${GST_VERSION}.schemas
+gst_gconf_PLIST_FILES= ${GST_LIB_DIR}/libgstgconfelements.so \
+ ${GST_LIB_DIR}/libgstgconfelements.la
+
+# gdk_pixbuf
+gst_gdk_pixbuf_USE_GNOME+= gtk20
+gst_gdk_pixbuf_GST_PLUGIN_DIR= ext/gdk_pixbuf
+gst_gdk_pixbuf_PLIST_FILES= ${GST_LIB_DIR}/libgstgdkpixbuf.la \
+ ${GST_LIB_DIR}/libgstgdkpixbuf.so
+
+# gme
+gst_gme_LIB_DEPENDS+= gme:${PORTSDIR}/audio/libgme
+gst_gme_PLIST_FILES= ${GST_LIB_DIR}/libgstgme.la \
+ ${GST_LIB_DIR}/libgstgme.so
+#gst_gme_DIST= bad
+
+# gnomevfs
+gst_gnomevfs_USE_GNOME+= gnomevfs2
+gst_gnomevfs_CONFIGURE_ARGS+=--enable-gnome_vfs
+gst_gnomevfs_PLIST_FILES= ${GST_LIB_DIR}/libgstgnomevfs.la \
+ ${GST_LIB_DIR}/libgstgnomevfs.so
+#gst_gnomevfs_DIST= base
+
+# gsm
+gst_gsm_LIB_DEPENDS+= gsm:${PORTSDIR}/audio/gsm
+gst_gsm_PLIST_FILES= ${GST_LIB_DIR}/libgstgsm.la \
+ ${GST_LIB_DIR}/libgstgsm.so
+#gst_gsm_DIST= bad
+
+# hal
+gst_hal_LIB_DEPENDS+= hal:${PORTSDIR}/sysutils/hal
+gst_hal_PLIST_FILES= ${GST_LIB_DIR}/libgsthalelements.la \
+ ${GST_LIB_DIR}/libgsthalelements.so
+
+# jack
+gst_jack_LIB_DEPENDS+= jack:${PORTSDIR}/audio/jack
+gst_jack_PLIST_FILES= ${GST_LIB_DIR}/libgstjack.la \
+ ${GST_LIB_DIR}/libgstjack.so
+#gst_jack_DIST= good
+
+# jpeg
+gst_jpeg_LIB_DEPENDS+= jpeg:${PORTSDIR}/graphics/jpeg
+gst_jpeg_PLIST_FILES= ${GST_LIB_DIR}/libgstjpeg.la \
+ ${GST_LIB_DIR}/libgstjpeg.so
+
+# ladspa
+gst_ladspa_BUILD_DEPENDS+= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
+gst_ladspa_PLIST_FILES= ${GST_LIB_DIR}/libgstladspa.la \
+ ${GST_LIB_DIR}/libgstladspa.so
+#gst_ladspa_DIST= bad
+
+# lame
+gst_lame_LIB_DEPENDS+= mp3lame:${PORTSDIR}/audio/lame
+gst_lame_PLIST_FILES= ${GST_LIB_DIR}/libgstlame.la \
+ ${GST_LIB_DIR}/libgstlame.so
+#gst_lame_DIST= ugly
+
+# libcaca
+gst_libcaca_LIB_DEPENDS+= caca:${PORTSDIR}/graphics/libcaca
+gst_libcaca_PLIST_FILES= ${GST_LIB_DIR}/libgstcacasink.so \
+ ${GST_LIB_DIR}/libgstcacasink.la
+
+# libmms
+gst_libmms_LIB_DEPENDS+= mms:${PORTSDIR}/net/libmms
+gst_libmms_PLIST_FILES= ${GST_LIB_DIR}/libgstmms.so \
+ ${GST_LIB_DIR}/libgstmms.la
+#gst_libmms_DIST= bad
+
+# libpng and the snapshot plugin
+gst_libpng_LIB_DEPENDS+= png:${PORTSDIR}/graphics/png
+gst_libpng_GST_PLUGIN_DIR= ext/libpng
+gst_libpng_PLIST_FILES= ${GST_LIB_DIR}/libgstpng.so \
+ ${GST_LIB_DIR}/libgstpng.la
+
+# libvisual
+gst_libvisual_LIB_DEPENDS+= visual-0.4:${PORTSDIR}/graphics/libvisual04
+gst_libvisual_PLIST_FILES= ${GST_LIB_DIR}/libgstlibvisual.la \
+ ${GST_LIB_DIR}/libgstlibvisual.so
+
+# mad
+gst_mad_LIB_DEPENDS+= mad:${PORTSDIR}/audio/libmad \
+ id3tag.0:${PORTSDIR}/audio/libid3tag
+gst_mad_PLIST_FILES= ${GST_LIB_DIR}/libgstmad.la \
+ ${GST_LIB_DIR}/libgstmad.so
+#gst_mad_DIST= ugly
+
+# mpeg2enc
+gst_mpeg2enc_LIB_DEPENDS+= mjpegutils-2.0:${PORTSDIR}/multimedia/mjpegtools
+gst_mpeg2enc_PLIST_FILES= ${GST_LIB_DIR}/libgstmpeg2enc.la \
+ ${GST_LIB_DIR}/libgstmpeg2enc.so
+#gst_mpeg2enc_DIST= bad
+
+# mpeg2dec
+gst_mpeg2dec_LIB_DEPENDS+= mpeg2:${PORTSDIR}/multimedia/libmpeg2
+gst_mpeg2dec_PLIST_FILES= ${GST_LIB_DIR}/libgstmpeg2dec.la \
+ ${GST_LIB_DIR}/libgstmpeg2dec.so
+#gst_mpeg2dec_DIST= ugly
+
+# musepack
+gst_musepack_LIB_DEPENDS+= mpcdec:${PORTSDIR}/audio/musepack
+gst_musepack_PLIST_FILES= ${GST_LIB_DIR}/libgstmusepack.la \
+ ${GST_LIB_DIR}/libgstmusepack.so
+#gst_musepack_DIST= bad
+
+# musicbrainz
+#gst_musicbrainz_LIB_DEPENDS+= musicbrainz.4:${PORTSDIR}/audio/libmusicbrainz
+#gst_musicbrainz_PLIST_FILES= ${GST_LIB_DIR}/libgsttrm.so \
+# ${GST_LIB_DIR}/libgsttrm.la
+#gst_musicbrainz_DIST= bad
+
+# nas
+gst_nas_LIB_DEPENDS+= audio.2:${PORTSDIR}/audio/nas
+gst_nas_PLIST_FILES= ${GST_LIB_DIR}/libgstnassink.la \
+ ${GST_LIB_DIR}/libgstnassink.so
+#gst_nas_DIST= bad
+
+# neon
+gst_neon_LIB_DEPENDS+= neon:${PORTSDIR}/www/neon29
+gst_neon_CONFIGURE_ENV+= NEON_CFLAGS="-I${LOCALBASE}/include/neon"
+gst_neon_PLIST_FILES= ${GST_LIB_DIR}/libgstneonhttpsrc.la \
+ ${GST_LIB_DIR}/libgstneonhttpsrc.so
+#gst_neon_DIST= bad
+
+# ogg
+gst_ogg_LIB_DEPENDS+= ogg:${PORTSDIR}/audio/libogg
+gst_ogg_PLIST_FILES= ${GST_LIB_DIR}/libgstogg.la \
+ ${GST_LIB_DIR}/libgstogg.so
+
+# opencv
+gst_opencv_LIB_DEPENDS+=opencv_highgui:${PORTSDIR}/graphics/opencv
+gst_opencv_PLIST_FILES= ${GST_LIB_DIR}/libgstopencv.la \
+ ${GST_LIB_DIR}/libgstopencv.a \
+ ${GST_LIB_DIR}/libgstopencv.so
+#gst_opencv_DIST= bad
+
+# pango
+gst_pango_USE_GNOME+= pango
+gst_pango_PLIST_FILES= ${GST_LIB_DIR}/libgstpango.la \
+ ${GST_LIB_DIR}/libgstpango.so
+
+# pulse
+gst_pulse_LIB_DEPENDS= pulse:${PORTSDIR}/audio/pulseaudio
+gst_pulse_PLIST_FILES= ${GST_LIB_DIR}/libgstpulse.la \
+ ${GST_LIB_DIR}/libgstpulse.so
+#gst_pulse_DIST= good
+
+# resindvd
+gst_resindvd_BUILD_DEPENDS+= libdvdnav>=4.1.2:${PORTSDIR}/multimedia/libdvdnav
+gst_resindvd_RUN_DEPENDS+= libdvdnav>=4.1.2:${PORTSDIR}/multimedia/libdvdnav
+gst_resindvd_PLIST_FILES= ${GST_LIB_DIR}/libresindvd.la \
+ ${GST_LIB_DIR}/libresindvd.so
+#gst_resindvd_DIST= bad
+
+# sdl
+gst_sdl_USE_SDL+= sdl
+gst_sdl_PLIST_FILES= ${GST_LIB_DIR}/libgstsdl.la \
+ ${GST_LIB_DIR}/libgstsdl.so
+#gst_sdl_DIST= bad
+
+# shout2
+gst_shout2_LIB_DEPENDS+= shout:${PORTSDIR}/audio/libshout2
+gst_shout2_PLIST_FILES= ${GST_LIB_DIR}/libgstshout2.la \
+ ${GST_LIB_DIR}/libgstshout2.so
+
+# sidplay
+gst_sidplay_LIB_DEPENDS+= sidplay:${PORTSDIR}/audio/libsidplay
+gst_sidplay_PLIST_FILES= ${GST_LIB_DIR}/libgstsid.so \
+ ${GST_LIB_DIR}/libgstsid.la
+#gst_sidplay_DIST= ugly
+
+# sndfile
+gst_sndfile_LIB_DEPENDS+= sndfile:${PORTSDIR}/audio/libsndfile
+gst_sndfile_PLIST_FILES= ${GST_LIB_DIR}/libgstsndfile.la \
+ ${GST_LIB_DIR}/libgstsndfile.so
+#gst_sndfile_DIST= bad
+
+# soundtouch
+gst_soundtouch_LIB_DEPENDS+= SoundTouch:${PORTSDIR}/audio/soundtouch
+gst_soundtouch_PLIST_FILES= ${GST_LIB_DIR}/libgstsoundtouch.la \
+ ${GST_LIB_DIR}/libgstsoundtouch.so
+#gst_soundtouch_DIST= bad
+
+# souphttpsrc
+gst_soup_USE_GNOME+= libsoup
+#gst_soup_LIB_DEPENDS+= soup-2.4:${PORTSDIR}/devel/libsoup
+gst_soup_GST_PLUGIN_DIR=ext/soup
+gst_soup_PLIST_FILES= ${GST_LIB_DIR}/libgstsouphttpsrc.la \
+ ${GST_LIB_DIR}/libgstsouphttpsrc.so
+
+# spc
+gst_spc_LIB_DEPENDS+= openspc:${PORTSDIR}/audio/libopenspc
+gst_spc_PLIST_FILES= ${GST_LIB_DIR}/libgstspc.la \
+ ${GST_LIB_DIR}/libgstspc.so
+#gst_spc_DIST= bad
+
+# speex
+gst_speex_LIB_DEPENDS+= speex:${PORTSDIR}/audio/speex
+gst_speex_PLIST_FILES= ${GST_LIB_DIR}/libgstspeex.la \
+ ${GST_LIB_DIR}/libgstspeex.so
+
+# schro(edinger)
+gst_schroedinger_LIB_DEPENDS+= schroedinger-1.0:${PORTSDIR}/multimedia/schroedinger
+gst_schroedinger_CONFIGURE_ARGS+=--enable-schro
+gst_schroedinger_PLIST_FILES= ${GST_LIB_DIR}/libgstschro.la \
+ ${GST_LIB_DIR}/libgstschro.so
+#gst_schroedinger_DIST= bad
+
+# swfdec
+gst_swfdec_LIB_DEPENDS+=swfdec-0.4:${PORTSDIR}/graphics/swfdec
+#gst_swfdec_DIST= bad
+
+# taglib
+gst_taglib_LIB_DEPENDS+= tag:${PORTSDIR}/audio/taglib
+gst_taglib_PLIST_FILES= ${GST_LIB_DIR}/libgsttaglib.la \
+ ${GST_LIB_DIR}/libgsttaglib.so
+
+# theora
+gst_theora_LIB_DEPENDS+= theora:${PORTSDIR}/multimedia/libtheora
+gst_theora_PLIST_FILES= ${GST_LIB_DIR}/libgsttheora.la \
+ ${GST_LIB_DIR}/libgsttheora.so
+
+# twolame
+gst_twolame_LIB_DEPENDS+= twolame:${PORTSDIR}/audio/twolame
+gst_twolame_PLIST_FILES= ${GST_LIB_DIR}/libgsttwolame.la \
+ ${GST_LIB_DIR}/libgsttwolame.so
+#gst_twolame_DIST= ugly
+
+# gst_v4l2
+gst_gst_v4l2_LIB_DEPENDS+= v4l2:${PORTSDIR}/multimedia/libv4l
+.if ${OSVERSION} >= 800000
+gst_gst_v4l2_RUN_DEPENDS+= webcamd:${PORTSDIR}/multimedia/webcamd
+.endif
+gst_gst_v4l2_PLIST_FILES= ${GST_LIB_DIR}/libgstvideo4linux2.la \
+ ${GST_LIB_DIR}/libgstvideo4linux2.so
+gst_gst_v4l2_CONFIGURE_ARGS+= --enable-gst_v4l2
+gst_gst_v4l2_GST_PLUGIN_DIR=sys/v4l2
+#gst_gst_v4l2_DIST= good
+
+# vdpau
+gst_vdpau_LIB_DEPENDS+= vdpau:${PORTSDIR}/multimedia/libvdpau
+gst_vdpau_GST_PLUGIN_DIR=sys/vdpau
+gst_vdpau_PLIST_FILES= ${GST_INC_DIR}/gst/vdpau/gstvdp.h \
+ ${GST_INC_DIR}/gst/vdpau/gstvdpbuffer.h \
+ ${GST_INC_DIR}/gst/vdpau/gstvdpbufferpool.h \
+ ${GST_INC_DIR}/gst/vdpau/gstvdpdecoder.h \
+ ${GST_INC_DIR}/gst/vdpau/gstvdpdevice.h \
+ ${GST_INC_DIR}/gst/vdpau/gstvdpoutputbuffer.h \
+ ${GST_INC_DIR}/gst/vdpau/gstvdpoutputbufferpool.h \
+ ${GST_INC_DIR}/gst/vdpau/gstvdpoutputsrcpad.h \
+ ${GST_INC_DIR}/gst/vdpau/gstvdputils.h \
+ ${GST_INC_DIR}/gst/vdpau/gstvdpvideobuffer.h \
+ ${GST_INC_DIR}/gst/vdpau/gstvdpvideobufferpool.h \
+ ${GST_INC_DIR}/gst/vdpau/gstvdpvideosrcpad.h \
+ ${GST_LIB_DIR}/libgstvdpau.la \
+ ${GST_LIB_DIR}/libgstvdpau.so \
+ lib/libgstvdp-${VERSION}.la \
+ lib/libgstvdp-${VERSION}.so \
+ lib/libgstvdp-${VERSION}.so.0
+gst_vdpau_PLIST_DIRS= ${GST_INC_DIR}/gst/vdpau
+#gst_vdpau_DIST= bad
+
+# vorbis
+gst_vorbis_USE_GSTREAMER1+= ogg
+gst_vorbis_LIB_DEPENDS+= vorbis:${PORTSDIR}/audio/libvorbis
+#gst_vorbis_EXTRA_LIBS+= -lgsttag-${VERSION} -lgstaudio-${VERSION}
+gst_vorbis_PLIST_FILES= ${GST_LIB_DIR}/libgstvorbis.la \
+ ${GST_LIB_DIR}/libgstvorbis.so
+#gst_vorbis_DIST= base
+
+# vp8
+gst_vp8_LIB_DEPENDS+= vpx:${PORTSDIR}/multimedia/libvpx
+gst_vp8_PLIST_FILES= ${GST_LIB_DIR}/libgstvp8.la \
+ ${GST_LIB_DIR}/libgstvp8.a \
+ ${GST_LIB_DIR}/libgstvp8.so
+#gst_vp8_DIST= bad
+
+# X
+gst_x_USE_XORG+= x11 xv xext
+# xxx videoproto xextproto, xshm?
+gst_x_CONFIGURE_ARGS+= --enable-xvideo
+gst_x_GST_PLUGIN_DIR= sys/ximage sys/xvimage
+gst_x_PLIST_FILES= ${GST_LIB_DIR}/libgstximagesink.la \
+ ${GST_LIB_DIR}/libgstximagesink.so \
+ ${GST_LIB_DIR}/libgstxvimagesink.la \
+ ${GST_LIB_DIR}/libgstxvimagesink.so
+DIST= base
+
+# x264
+gst_x264_LIB_DEPENDS+= x264:${PORTSDIR}/multimedia/x264
+gst_x264_PLIST_FILES= ${GST_LIB_DIR}/libgstx264.la \
+ ${GST_LIB_DIR}/libgstx264.so \
+ share/gstreamer-${VERSION}/presets/GstX264Enc.prs
+gst_x264_PLIST_DIRS= share/gstreamer-${VERSION}/presets \
+ share/gstreamer-${VERSION}
+#gst_x264_DIST= ugly
+
+# xvid
+gst_xvid_LIB_DEPENDS+= xvidcore:${PORTSDIR}/multimedia/xvid
+gst_xvid_PLIST_FILES= ${GST_LIB_DIR}/libgstxvid.la \
+ ${GST_LIB_DIR}/libgstxvid.so
+#gst_xvid_DIST= bad
+
+# wavpack
+gst_wavpack_LIB_DEPENDS+= wavpack:${PORTSDIR}/audio/wavpack
+gst_wavpack_PLIST_FILES= ${GST_LIB_DIR}/libgstwavpack.la \
+ ${GST_LIB_DIR}/libgstwavpack.so
+
+.endif # NO_GSTREAMER_COMMON
+
+# xxx regel hier onder weg halen en bij elke plugin vermelden.
+# en BROKEN regel toevoegen.
+# dit moet mischien in de plugin Makefiles gezet worden.. we zitten hier met
+# chicken/egg issues. gst_foo_dist wordt hierboven gezet maar wordt gebruikt
+# in de main Makefile voor deze file wordt geinclude.
+##gst_${GST_PLUGIN}_DIST?= good
+# xxx deze hier boven toevoegen aangezien ik die in plugins --enable/--disable
+# wordt gebruikt.
+##DIST?= ${gst_${GST_PLUGIN}_DIST}
+# Dus GST_PLUGIN= naam plugin in alle plugins doen zoals al in de -good/-ugly
+# ports wordt gedaan.
+
+.if !defined(NO_GSTREAMER_COMMON)
+gst_${GST_PLUGIN}_BUILD_DEPENDS?=
+gst_${GST_PLUGIN}_LIB_DEPENDS?=
+gst_${GST_PLUGIN}_RUN_DEPENDS?=
+gst_${GST_PLUGIN}_USE_XORG?=
+gst_${GST_PLUGIN}_PLIST_FILES?= \
+ ${GST_LIB_DIR}/libgst${GST_PLUGIN}${GST_PLIST_SUFFIX}.la \
+ ${GST_LIB_DIR}/libgst${GST_PLUGIN}${GST_PLIST_SUFFIX}.so
+gst_${GST_PLUGIN}_EXTRA_LIBS?=
+gst_${GST_PLUGIN}_PREBUILD_DIR?=
+gst_${GST_PLUGIN}_GST_PLUGIN_DIR?= ext/${GST_PLUGIN}
+gst_${GST_PLUGIN}_POSTBUILD_DIR?=
+gst_${GST_PLUGIN}_USE_GNOME?=
+gst_${GST_PLUGIN}_CONFIGURE_ENV?=
+gst_${GST_PLUGIN}_GCONF_SCHEMAS?=
+gst_${GST_PLUGIN}_GLIB_SCHEMAS?=
+gst_${GST_PLUGIN}_CONFIGURE_ARGS?=
+gst_${GST_PLUGIN}_USE_SDL?=
+gst_${GST_PLUGIN}_USE_GSTREAMER1?=
+
+BUILD_DEPENDS+= ${gst_${GST_PLUGIN}_BUILD_DEPENDS}
+LIB_DEPENDS+= ${gst_${GST_PLUGIN}_LIB_DEPENDS}
+RUN_DEPENDS+= ${gst_${GST_PLUGIN}_RUN_DEPENDS}
+PLIST_FILES= ${gst_${GST_PLUGIN}_PLIST_FILES}
+PLIST_DIRS= ${gst_${GST_PLUGIN}_PLIST_DIRS}
+EXTRA_LIBS+= ${gst_${GST_PLUGIN}_EXTRA_LIBS}
+USE_XORG+= ${GST_${GST_PLUGIN}_USE_XORG}
+USE_GNOME+= ${gst_${GST_PLUGIN}_USE_GNOME}
+CONFIGURE_ENV+= ${gst_${GST_PLUGIN}_CONFIGURE_ENV}
+
+.if ${gst_${GST_PLUGIN}_GCONF_SCHEMAS}!=""
+GCONF_SCHEMAS= ${gst_${GST_PLUGIN}_GCONF_SCHEMAS}
+.endif
+
+.if ${gst_${GST_PLUGIN}_GLIB_SCHEMAS}!=""
+GLIB_SCHEMAS= ${gst_${GST_PLUGIN}_GLIB_SCHEMAS}
+.endif
+
+CONFIGURE_ARGS+= ${gst_${GST_PLUGIN}_CONFIGURE_ARGS}
+
+.if ${gst_${GST_PLUGIN}_USE_SDL}!=""
+USE_SDL= ${gst_${GST_PLUGIN}_USE_SDL}
+.endif
+
+USE_GSTREAMER1+= ${gst_${GST_PLUGIN}_USE_GSTREAMER1} ${DIST:S/base/yes/}
+GST_PREBUILD_DIR= ${gst_${GST_PLUGIN}_GST_PREBUILD_DIR}
+GST_PLUGIN_DIR= ${gst_${GST_PLUGIN}_GST_PLUGIN_DIR}
+GST_POSTBUILD_DIR= ${gst_${GST_PLUGIN}_GST_POSTBUILD_DIR}
+
+.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/gstreamer1-plugins/distinfo b/multimedia/gstreamer1-plugins/distinfo
new file mode 100644
index 000000000..6a4c29998
--- /dev/null
+++ b/multimedia/gstreamer1-plugins/distinfo
@@ -0,0 +1,8 @@
+SHA256 (gst-plugins-base-1.0.0.tar.xz) = 4b98a74712e31d5426dd1cf2de883b6af59fd37997b0ffaed53914eb6df45053
+SIZE (gst-plugins-base-1.0.0.tar.xz) = 2333452
+SHA256 (gst-plugins-bad-1.0.0.tar.xz) = 9af78a20a535687bfbb58128713376f3f5ae670af8afb3be4285713557c2381b
+SIZE (gst-plugins-bad-1.0.0.tar.xz) = 3069540
+SHA256 (gst-plugins-ugly-1.0.0.tar.xz) = d0d21777d16afae3064e0d660cbe46eaabf889fa7f60b065ead8b3d1108a905d
+SIZE (gst-plugins-ugly-1.0.0.tar.xz) = 823292
+SHA256 (gst-plugins-good-1.0.0.tar.xz) = f4684edb098d0d60b4a3d5a1fce846a4ba351f80adac4ba6e8199bd059f87886
+SIZE (gst-plugins-good-1.0.0.tar.xz) = 2696192
diff --git a/multimedia/gstreamer1-plugins/files/patch-Makefile.in b/multimedia/gstreamer1-plugins/files/patch-Makefile.in
new file mode 100644
index 000000000..62746310e
--- /dev/null
+++ b/multimedia/gstreamer1-plugins/files/patch-Makefile.in
@@ -0,0 +1,22 @@
+--- Makefile.in.orig 2011-08-03 12:37:02.000000000 +0200
++++ Makefile.in 2011-08-03 12:37:15.000000000 +0200
+@@ -438,19 +438,15 @@
+ gst-libs \
+ gst sys $(SUBDIRS_EXT) \
+ tools \
+- tests \
+- docs \
+ po \
+ common \
+ m4
+
+ DIST_SUBDIRS = \
+ pkgconfig \
+- docs \
+ gst-libs \
+ gst sys ext \
+ tools \
+- tests \
+ po \
+ common \
+ m4
diff --git a/multimedia/gstreamer1-plugins/files/patch-ext_cdparanoia_gstcdparanoiasrc.c b/multimedia/gstreamer1-plugins/files/patch-ext_cdparanoia_gstcdparanoiasrc.c
new file mode 100644
index 000000000..6d0fa67b9
--- /dev/null
+++ b/multimedia/gstreamer1-plugins/files/patch-ext_cdparanoia_gstcdparanoiasrc.c
@@ -0,0 +1,18 @@
+--- ext/cdparanoia/gstcdparanoiasrc.c.orig 2009-08-09 17:16:48.000000000 -0400
++++ ext/cdparanoia/gstcdparanoiasrc.c 2009-08-09 17:17:38.000000000 -0400
+@@ -264,6 +264,7 @@ gst_cd_paranoia_src_open (GstCddaBaseSrc
+ GST_INFO_OBJECT (src, "search overlap set to %u", src->search_overlap);
+ }
+
++#ifdef PARANOIA_CB_CACHEERR
+ cache_size = src->cache_size;
+ if (cache_size == -1) {
+ /* if paranoia mode is low (the default), assume we're doing playback */
+@@ -274,6 +275,7 @@ gst_cd_paranoia_src_open (GstCddaBaseSrc
+ }
+ paranoia_cachemodel_size (src->p, cache_size);
+ GST_INFO_OBJECT (src, "set cachemodel size to %u", cache_size);
++#endif
+
+ src->next_sector = -1;
+
diff --git a/multimedia/gstreamer1-plugins/files/patch-gst_tcp_gstmultihandlesink.c b/multimedia/gstreamer1-plugins/files/patch-gst_tcp_gstmultihandlesink.c
new file mode 100644
index 000000000..af5e3a043
--- /dev/null
+++ b/multimedia/gstreamer1-plugins/files/patch-gst_tcp_gstmultihandlesink.c
@@ -0,0 +1,11 @@
+--- gst/tcp/gstmultihandlesink.c.orig 2012-06-06 10:25:28.000000000 +0200
++++ gst/tcp/gstmultihandlesink.c 2012-06-06 10:26:43.000000000 +0200
+@@ -104,6 +104,8 @@
+ #include "config.h"
+ #endif
+
++#include <sys/socket.h>
++
+ #include <gst/gst-i18n-plugin.h>
+
+ #include "gstmultihandlesink.h"
diff --git a/multimedia/gstreamer1-plugins/pkg-descr b/multimedia/gstreamer1-plugins/pkg-descr
new file mode 100644
index 000000000..80300084c
--- /dev/null
+++ b/multimedia/gstreamer1-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/gstreamer1-plugins/pkg-plist b/multimedia/gstreamer1-plugins/pkg-plist
new file mode 100644
index 000000000..40502983e
--- /dev/null
+++ b/multimedia/gstreamer1-plugins/pkg-plist
@@ -0,0 +1,234 @@
+bin/gst-discoverer-%%VERSION%%
+include/gstreamer-%%VERSION%%/gst/app/gstappsink.h
+include/gstreamer-%%VERSION%%/gst/app/gstappsrc.h
+include/gstreamer-%%VERSION%%/gst/audio/audio-channels.h
+include/gstreamer-%%VERSION%%/gst/audio/audio-enumtypes.h
+include/gstreamer-%%VERSION%%/gst/audio/audio-format.h
+include/gstreamer-%%VERSION%%/gst/audio/audio-info.h
+include/gstreamer-%%VERSION%%/gst/audio/audio.h
+include/gstreamer-%%VERSION%%/gst/audio/gstaudiobasesink.h
+include/gstreamer-%%VERSION%%/gst/audio/gstaudiobasesrc.h
+include/gstreamer-%%VERSION%%/gst/audio/gstaudiocdsrc.h
+include/gstreamer-%%VERSION%%/gst/audio/gstaudioclock.h
+include/gstreamer-%%VERSION%%/gst/audio/gstaudiodecoder.h
+include/gstreamer-%%VERSION%%/gst/audio/gstaudioencoder.h
+include/gstreamer-%%VERSION%%/gst/audio/gstaudiofilter.h
+include/gstreamer-%%VERSION%%/gst/audio/gstaudioiec61937.h
+include/gstreamer-%%VERSION%%/gst/audio/gstaudiometa.h
+include/gstreamer-%%VERSION%%/gst/audio/gstaudioringbuffer.h
+include/gstreamer-%%VERSION%%/gst/audio/gstaudiosink.h
+include/gstreamer-%%VERSION%%/gst/audio/gstaudiosrc.h
+include/gstreamer-%%VERSION%%/gst/audio/streamvolume.h
+include/gstreamer-%%VERSION%%/gst/fft/gstfft.h
+include/gstreamer-%%VERSION%%/gst/fft/gstfftf32.h
+include/gstreamer-%%VERSION%%/gst/fft/gstfftf64.h
+include/gstreamer-%%VERSION%%/gst/fft/gstffts16.h
+include/gstreamer-%%VERSION%%/gst/fft/gstffts32.h
+include/gstreamer-%%VERSION%%/gst/pbutils/codec-utils.h
+include/gstreamer-%%VERSION%%/gst/pbutils/descriptions.h
+include/gstreamer-%%VERSION%%/gst/pbutils/encoding-profile.h
+include/gstreamer-%%VERSION%%/gst/pbutils/encoding-target.h
+include/gstreamer-%%VERSION%%/gst/pbutils/gstdiscoverer.h
+include/gstreamer-%%VERSION%%/gst/pbutils/gstpluginsbaseversion.h
+include/gstreamer-%%VERSION%%/gst/pbutils/install-plugins.h
+include/gstreamer-%%VERSION%%/gst/pbutils/missing-plugins.h
+include/gstreamer-%%VERSION%%/gst/pbutils/pbutils-enumtypes.h
+include/gstreamer-%%VERSION%%/gst/pbutils/pbutils.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/gstrtcpbuffer.h
+include/gstreamer-%%VERSION%%/gst/rtp/gstrtpbaseaudiopayload.h
+include/gstreamer-%%VERSION%%/gst/rtp/gstrtpbasedepayload.h
+include/gstreamer-%%VERSION%%/gst/rtp/gstrtpbasepayload.h
+include/gstreamer-%%VERSION%%/gst/rtp/gstrtpbuffer.h
+include/gstreamer-%%VERSION%%/gst/rtp/gstrtppayloads.h
+include/gstreamer-%%VERSION%%/gst/rtsp/gstrtsp-enumtypes.h
+include/gstreamer-%%VERSION%%/gst/rtsp/gstrtspconnection.h
+include/gstreamer-%%VERSION%%/gst/rtsp/gstrtspdefs.h
+include/gstreamer-%%VERSION%%/gst/rtsp/gstrtspextension.h
+include/gstreamer-%%VERSION%%/gst/rtsp/gstrtspmessage.h
+include/gstreamer-%%VERSION%%/gst/rtsp/gstrtsprange.h
+include/gstreamer-%%VERSION%%/gst/rtsp/gstrtsptransport.h
+include/gstreamer-%%VERSION%%/gst/rtsp/gstrtspurl.h
+include/gstreamer-%%VERSION%%/gst/sdp/gstsdp.h
+include/gstreamer-%%VERSION%%/gst/sdp/gstsdpmessage.h
+include/gstreamer-%%VERSION%%/gst/tag/gsttagdemux.h
+include/gstreamer-%%VERSION%%/gst/tag/gsttagmux.h
+include/gstreamer-%%VERSION%%/gst/tag/tag.h
+include/gstreamer-%%VERSION%%/gst/tag/xmpwriter.h
+include/gstreamer-%%VERSION%%/gst/video/colorbalance.h
+include/gstreamer-%%VERSION%%/gst/video/colorbalancechannel.h
+include/gstreamer-%%VERSION%%/gst/video/gstvideodecoder.h
+include/gstreamer-%%VERSION%%/gst/video/gstvideoencoder.h
+include/gstreamer-%%VERSION%%/gst/video/gstvideofilter.h
+include/gstreamer-%%VERSION%%/gst/video/gstvideometa.h
+include/gstreamer-%%VERSION%%/gst/video/gstvideopool.h
+include/gstreamer-%%VERSION%%/gst/video/gstvideosink.h
+include/gstreamer-%%VERSION%%/gst/video/gstvideoutils.h
+include/gstreamer-%%VERSION%%/gst/video/navigation.h
+include/gstreamer-%%VERSION%%/gst/video/video-blend.h
+include/gstreamer-%%VERSION%%/gst/video/video-color.h
+include/gstreamer-%%VERSION%%/gst/video/video-enumtypes.h
+include/gstreamer-%%VERSION%%/gst/video/video-event.h
+include/gstreamer-%%VERSION%%/gst/video/video-format.h
+include/gstreamer-%%VERSION%%/gst/video/video-frame.h
+include/gstreamer-%%VERSION%%/gst/video/video-info.h
+include/gstreamer-%%VERSION%%/gst/video/video-overlay-composition.h
+include/gstreamer-%%VERSION%%/gst/video/video.h
+include/gstreamer-%%VERSION%%/gst/video/videoorientation.h
+include/gstreamer-%%VERSION%%/gst/video/videooverlay.h
+lib/girepository-1.0/GstApp-%%VERSION%%.typelib
+lib/girepository-1.0/GstAudio-%%VERSION%%.typelib
+lib/girepository-1.0/GstFft-%%VERSION%%.typelib
+lib/girepository-1.0/GstPbutils-%%VERSION%%.typelib
+lib/girepository-1.0/GstRiff-%%VERSION%%.typelib
+lib/girepository-1.0/GstRtp-%%VERSION%%.typelib
+lib/girepository-1.0/GstRtsp-%%VERSION%%.typelib
+lib/girepository-1.0/GstSdp-%%VERSION%%.typelib
+lib/girepository-1.0/GstTag-%%VERSION%%.typelib
+lib/girepository-1.0/GstVideo-%%VERSION%%.typelib
+lib/gstreamer-%%VERSION%%/libgstadder.la
+lib/gstreamer-%%VERSION%%/libgstadder.so
+lib/gstreamer-%%VERSION%%/libgstapp.la
+lib/gstreamer-%%VERSION%%/libgstapp.so
+lib/gstreamer-%%VERSION%%/libgstaudioconvert.la
+lib/gstreamer-%%VERSION%%/libgstaudioconvert.so
+lib/gstreamer-%%VERSION%%/libgstaudiorate.la
+lib/gstreamer-%%VERSION%%/libgstaudiorate.so
+lib/gstreamer-%%VERSION%%/libgstaudioresample.la
+lib/gstreamer-%%VERSION%%/libgstaudioresample.so
+lib/gstreamer-%%VERSION%%/libgstaudiotestsrc.la
+lib/gstreamer-%%VERSION%%/libgstaudiotestsrc.so
+lib/gstreamer-%%VERSION%%/libgstencodebin.la
+lib/gstreamer-%%VERSION%%/libgstencodebin.so
+lib/gstreamer-%%VERSION%%/libgstgio.la
+lib/gstreamer-%%VERSION%%/libgstgio.so
+lib/gstreamer-%%VERSION%%/libgstplayback.la
+lib/gstreamer-%%VERSION%%/libgstplayback.so
+lib/gstreamer-%%VERSION%%/libgstsubparse.la
+lib/gstreamer-%%VERSION%%/libgstsubparse.so
+lib/gstreamer-%%VERSION%%/libgsttcp.la
+lib/gstreamer-%%VERSION%%/libgsttcp.so
+lib/gstreamer-%%VERSION%%/libgsttypefindfunctions.la
+lib/gstreamer-%%VERSION%%/libgsttypefindfunctions.so
+lib/gstreamer-%%VERSION%%/libgstvideoconvert.la
+lib/gstreamer-%%VERSION%%/libgstvideoconvert.so
+lib/gstreamer-%%VERSION%%/libgstvideorate.la
+lib/gstreamer-%%VERSION%%/libgstvideorate.so
+lib/gstreamer-%%VERSION%%/libgstvideoscale.la
+lib/gstreamer-%%VERSION%%/libgstvideoscale.so
+lib/gstreamer-%%VERSION%%/libgstvideotestsrc.la
+lib/gstreamer-%%VERSION%%/libgstvideotestsrc.so
+lib/gstreamer-%%VERSION%%/libgstvolume.la
+lib/gstreamer-%%VERSION%%/libgstvolume.so
+lib/libgstapp-%%VERSION%%.la
+lib/libgstapp-%%VERSION%%.so
+lib/libgstapp-%%VERSION%%.so.0
+lib/libgstaudio-%%VERSION%%.a
+lib/libgstaudio-%%VERSION%%.la
+lib/libgstaudio-%%VERSION%%.so
+lib/libgstaudio-%%VERSION%%.so.0
+lib/libgstfft-%%VERSION%%.a
+lib/libgstfft-%%VERSION%%.la
+lib/libgstfft-%%VERSION%%.so
+lib/libgstfft-%%VERSION%%.so.0
+lib/libgstpbutils-%%VERSION%%.a
+lib/libgstpbutils-%%VERSION%%.la
+lib/libgstpbutils-%%VERSION%%.so
+lib/libgstpbutils-%%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/libgstrtsp-%%VERSION%%.a
+lib/libgstrtsp-%%VERSION%%.la
+lib/libgstrtsp-%%VERSION%%.so
+lib/libgstrtsp-%%VERSION%%.so.0
+lib/libgstsdp-%%VERSION%%.a
+lib/libgstsdp-%%VERSION%%.la
+lib/libgstsdp-%%VERSION%%.so
+lib/libgstsdp-%%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-app-%%VERSION%%.pc
+libdata/pkgconfig/gstreamer-audio-%%VERSION%%.pc
+libdata/pkgconfig/gstreamer-fft-%%VERSION%%.pc
+libdata/pkgconfig/gstreamer-pbutils-%%VERSION%%.pc
+libdata/pkgconfig/gstreamer-plugins-base-%%VERSION%%.pc
+libdata/pkgconfig/gstreamer-riff-%%VERSION%%.pc
+libdata/pkgconfig/gstreamer-rtp-%%VERSION%%.pc
+libdata/pkgconfig/gstreamer-rtsp-%%VERSION%%.pc
+libdata/pkgconfig/gstreamer-sdp-%%VERSION%%.pc
+libdata/pkgconfig/gstreamer-tag-%%VERSION%%.pc
+libdata/pkgconfig/gstreamer-video-%%VERSION%%.pc
+share/gir-1.0/GstApp-%%VERSION%%.gir
+share/gir-1.0/GstAudio-%%VERSION%%.gir
+share/gir-1.0/GstFft-%%VERSION%%.gir
+share/gir-1.0/GstPbutils-%%VERSION%%.gir
+share/gir-1.0/GstRiff-%%VERSION%%.gir
+share/gir-1.0/GstRtp-%%VERSION%%.gir
+share/gir-1.0/GstRtsp-%%VERSION%%.gir
+share/gir-1.0/GstSdp-%%VERSION%%.gir
+share/gir-1.0/GstTag-%%VERSION%%.gir
+share/gir-1.0/GstVideo-%%VERSION%%.gir
+share/gst-plugins-base/1.0/license-translations.dict
+share/locale/af/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/az/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/bg/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/ca/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/cs/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/da/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/de/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/el/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/en_GB/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/eo/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/es/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/eu/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/fi/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/fr/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/gl/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/hu/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/id/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/it/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/ja/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/lt/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/lv/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/pl/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/pt_BR/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/ro/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/ru/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/sk/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+share/locale/sl/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/tr/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
+share/locale/zh_CN/LC_MESSAGES/gst-plugins-base-%%VERSION%%.mo
+@dirrm share/gst-plugins-base/1.0
+@dirrmtry share/gst-plugins-base
+@dirrm include/gstreamer-%%VERSION%%/gst/video
+@dirrm include/gstreamer-%%VERSION%%/gst/tag
+@dirrm include/gstreamer-%%VERSION%%/gst/sdp
+@dirrm include/gstreamer-%%VERSION%%/gst/rtsp
+@dirrm include/gstreamer-%%VERSION%%/gst/rtp
+@dirrm include/gstreamer-%%VERSION%%/gst/riff
+@dirrm include/gstreamer-%%VERSION%%/gst/pbutils
+@dirrm include/gstreamer-%%VERSION%%/gst/fft
+@dirrm include/gstreamer-%%VERSION%%/gst/audio
+@dirrm include/gstreamer-%%VERSION%%/gst/app
diff --git a/multimedia/gstreamer1/Makefile b/multimedia/gstreamer1/Makefile
new file mode 100644
index 000000000..924c5c304
--- /dev/null
+++ b/multimedia/gstreamer1/Makefile
@@ -0,0 +1,63 @@
+# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
+# $FreeBSD$
+# $MCom$
+
+PORTNAME= gstreamer1
+PORTVERSION= 1.0.0
+CATEGORIES= multimedia
+MASTER_SITES= http://gstreamer.freedesktop.org/src/gstreamer/
+DISTNAME= ${PORTNAME:S/1//}-${PORTVERSION}
+
+MAINTAINER= multimedia@FreeBSD.org
+COMMENT= Media applications framework
+
+LICENSE= LGPL20
+
+BUILD_DEPENDS= ${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex \
+ gobject-introspection>=1.31.1:${PORTSDIR}/devel/gobject-introspection
+RUN_DEPENDS= ${LOCALBASE}/share/gir-1.0/GLib-2.0.gir:${PORTSDIR}/devel/gobject-introspection
+
+CFLAGS:= ${CFLAGS} -O2 -Wno-format
+USE_BISON= build
+USE_XZ= yes
+USE_GMAKE= yes
+MAKE_JOBS_SAVE= yes
+USE_GNOME= gnomehack glib20 ltverhack:0 ltasneededhack
+USE_PKGCONFIG= build
+USE_GETTEXT= yes
+USE_AUTOTOOLS= libtool
+CONFIGURE_ARGS= --disable-tests \
+ --disable-examples \
+ --disable-failing-tests \
+ --disable-fatal-warnings \
+ --disable-gtk-doc
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+CONFIGURE_ENV= ac_cv_func_register_printf_function="no" \
+ FLEX_PATH="${LOCALBASE}/bin/flex"
+PLIST_SUB= VERSION="${GST10_VERSION}"
+USE_LDCONFIG= yes
+GST10_VERSION= 1.0
+
+MAN1= gst-inspect-${GST10_VERSION}.1 gst-launch-${GST10_VERSION}.1 \
+ gst-typefind-${GST10_VERSION}.1
+
+OPTIONS_DEFINE= CHECK
+CHECK_DESC= Support unit tests
+
+.include <bsd.port.pre.mk>
+
+.if ${PORT_OPTIONS:MCHECK}
+LIB_DEPENDS+= check:${PORTSDIR}/devel/libcheck
+CONFIGURE_ARGS+=--enable-check
+PLIST_SUB+= CHECK=""
+.else
+CONFIGURE_ARGS+=--disable-check
+PLIST_SUB+= CHECK="@comment "
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|-Wmissing-include-dirs||g' \
+ ${WRKSRC}/configure
+
+.include <bsd.port.post.mk>
diff --git a/multimedia/gstreamer1/distinfo b/multimedia/gstreamer1/distinfo
new file mode 100644
index 000000000..ed46b993c
--- /dev/null
+++ b/multimedia/gstreamer1/distinfo
@@ -0,0 +1,2 @@
+SHA256 (gstreamer-1.0.0.tar.xz) = d0f9887ff1c81a33220add2e6d3eb84d869c485c83523a8da0ce1f0cb2463f58
+SIZE (gstreamer-1.0.0.tar.xz) = 3073056
diff --git a/multimedia/gstreamer1/files/patch-Makefile.in b/multimedia/gstreamer1/files/patch-Makefile.in
new file mode 100644
index 000000000..7731518e8
--- /dev/null
+++ b/multimedia/gstreamer1/files/patch-Makefile.in
@@ -0,0 +1,17 @@
+--- Makefile.in.orig 2012-08-08 18:41:42.000000000 +0200
++++ Makefile.in 2012-08-08 18:42:15.000000000 +0200
+@@ -495,13 +495,12 @@
+ DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-docbook
+ aclocaldir = $(datadir)/aclocal
+ aclocal_DATA = gst-element-check-@GST_API_VERSION@.m4
+-SUBDIRS = pkgconfig gst libs plugins tests docs po m4 common \
++SUBDIRS = pkgconfig gst libs plugins tests po m4 common \
+ $(am__append_1)
+
+ # These are all the possible subdirs
+ DIST_SUBDIRS = pkgconfig \
+ gst libs plugins tools tests \
+- docs \
+ po \
+ m4 \
+ common
diff --git a/multimedia/gstreamer1/pkg-descr b/multimedia/gstreamer1/pkg-descr
new file mode 100644
index 000000000..3e7e98b0e
--- /dev/null
+++ b/multimedia/gstreamer1/pkg-descr
@@ -0,0 +1,24 @@
+[ excerpt from developer's site ]
+- What is GStreamer?
+GStreamer allows the construction of graphs of media-handling
+components, ranging from simple mp3 playback to complex audio
+(mixing) and video (non-linear editing) processing. Applications
+can take advantage of advances in codec and filter technology
+transparently. Developers can add new codecs and filters by writing
+a simple plugin with a clean, generic interface. GStreamer is
+released under the LGPL, with many of the included plugins retaining
+the license of the code they were derived from, usually GPL or BSD.
+
+- Features:
+* Comprehensive Core Library
+* Intelligent Plugin Architecture
+* Extensive Development Tools
+
+- Is GStreamer a media player?
+No, GStreamer is a development framework for creating applications
+like media players, video editors, streaming media broadcasters and
+so on. That said, very good media players can easily be built on
+top of GStreamer and we even include a simple yet functional
+mediaplayer with GStreamer called Gst-Player
+
+WWW: http://gstreamer.sourceforge.net/
diff --git a/multimedia/gstreamer1/pkg-plist b/multimedia/gstreamer1/pkg-plist
new file mode 100644
index 000000000..fc52c8e05
--- /dev/null
+++ b/multimedia/gstreamer1/pkg-plist
@@ -0,0 +1,178 @@
+bin/gst-inspect-%%VERSION%%
+bin/gst-launch-%%VERSION%%
+bin/gst-typefind-%%VERSION%%
+include/gstreamer-%%VERSION%%/gst/base/gstadapter.h
+include/gstreamer-%%VERSION%%/gst/base/gstbaseparse.h
+include/gstreamer-%%VERSION%%/gst/base/gstbasesink.h
+include/gstreamer-%%VERSION%%/gst/base/gstbasesrc.h
+include/gstreamer-%%VERSION%%/gst/base/gstbasetransform.h
+include/gstreamer-%%VERSION%%/gst/base/gstbitreader.h
+include/gstreamer-%%VERSION%%/gst/base/gstbytereader.h
+include/gstreamer-%%VERSION%%/gst/base/gstbytewriter.h
+include/gstreamer-%%VERSION%%/gst/base/gstcollectpads.h
+include/gstreamer-%%VERSION%%/gst/base/gstpushsrc.h
+include/gstreamer-%%VERSION%%/gst/base/gsttypefindhelper.h
+%%CHECK%%include/gstreamer-%%VERSION%%/gst/check/gstbufferstraw.h
+%%CHECK%%include/gstreamer-%%VERSION%%/gst/check/gstcheck.h
+%%CHECK%%include/gstreamer-%%VERSION%%/gst/check/gstconsistencychecker.h
+%%CHECK%%include/gstreamer-%%VERSION%%/gst/check/internal-check.h
+include/gstreamer-%%VERSION%%/gst/controller/gstargbcontrolbinding.h
+include/gstreamer-%%VERSION%%/gst/controller/gstdirectcontrolbinding.h
+include/gstreamer-%%VERSION%%/gst/controller/gsttimedvaluecontrolsource.h
+include/gstreamer-%%VERSION%%/gst/controller/gstinterpolationcontrolsource.h
+include/gstreamer-%%VERSION%%/gst/controller/gstlfocontrolsource.h
+include/gstreamer-%%VERSION%%/gst/controller/gsttriggercontrolsource.h
+include/gstreamer-%%VERSION%%/gst/glib-compat.h
+include/gstreamer-%%VERSION%%/gst/gst.h
+include/gstreamer-%%VERSION%%/gst/gstallocator.h
+include/gstreamer-%%VERSION%%/gst/gstatomicqueue.h
+include/gstreamer-%%VERSION%%/gst/gstbin.h
+include/gstreamer-%%VERSION%%/gst/gstbuffer.h
+include/gstreamer-%%VERSION%%/gst/gstbufferlist.h
+include/gstreamer-%%VERSION%%/gst/gstbufferpool.h
+include/gstreamer-%%VERSION%%/gst/gstbus.h
+include/gstreamer-%%VERSION%%/gst/gstcaps.h
+include/gstreamer-%%VERSION%%/gst/gstchildproxy.h
+include/gstreamer-%%VERSION%%/gst/gstclock.h
+include/gstreamer-%%VERSION%%/gst/gstcompat.h
+include/gstreamer-%%VERSION%%/gst/gstconfig.h
+include/gstreamer-%%VERSION%%/gst/gstcontrolbinding.h
+include/gstreamer-%%VERSION%%/gst/gstcontrolsource.h
+include/gstreamer-%%VERSION%%/gst/gstdatetime.h
+include/gstreamer-%%VERSION%%/gst/gstdebugutils.h
+include/gstreamer-%%VERSION%%/gst/gstelement.h
+include/gstreamer-%%VERSION%%/gst/gstelementfactory.h
+include/gstreamer-%%VERSION%%/gst/gstelementmetadata.h
+include/gstreamer-%%VERSION%%/gst/gstenumtypes.h
+include/gstreamer-%%VERSION%%/gst/gsterror.h
+include/gstreamer-%%VERSION%%/gst/gstevent.h
+include/gstreamer-%%VERSION%%/gst/gstformat.h
+include/gstreamer-%%VERSION%%/gst/gstghostpad.h
+include/gstreamer-%%VERSION%%/gst/gstinfo.h
+include/gstreamer-%%VERSION%%/gst/gstiterator.h
+include/gstreamer-%%VERSION%%/gst/gstmacros.h
+include/gstreamer-%%VERSION%%/gst/gstmemory.h
+include/gstreamer-%%VERSION%%/gst/gstmessage.h
+include/gstreamer-%%VERSION%%/gst/gstmeta.h
+include/gstreamer-%%VERSION%%/gst/gstminiobject.h
+include/gstreamer-%%VERSION%%/gst/gstobject.h
+include/gstreamer-%%VERSION%%/gst/gstpad.h
+include/gstreamer-%%VERSION%%/gst/gstpadtemplate.h
+include/gstreamer-%%VERSION%%/gst/gstparamspecs.h
+include/gstreamer-%%VERSION%%/gst/gstparse.h
+include/gstreamer-%%VERSION%%/gst/gstpipeline.h
+include/gstreamer-%%VERSION%%/gst/gstplugin.h
+include/gstreamer-%%VERSION%%/gst/gstpluginfeature.h
+include/gstreamer-%%VERSION%%/gst/gstpoll.h
+include/gstreamer-%%VERSION%%/gst/gstpreset.h
+include/gstreamer-%%VERSION%%/gst/gstquery.h
+include/gstreamer-%%VERSION%%/gst/gstregistry.h
+include/gstreamer-%%VERSION%%/gst/gstsample.h
+include/gstreamer-%%VERSION%%/gst/gstsegment.h
+include/gstreamer-%%VERSION%%/gst/gststructure.h
+include/gstreamer-%%VERSION%%/gst/gstsystemclock.h
+include/gstreamer-%%VERSION%%/gst/gsttaglist.h
+include/gstreamer-%%VERSION%%/gst/gsttagsetter.h
+include/gstreamer-%%VERSION%%/gst/gsttask.h
+include/gstreamer-%%VERSION%%/gst/gsttaskpool.h
+include/gstreamer-%%VERSION%%/gst/gsttoc.h
+include/gstreamer-%%VERSION%%/gst/gsttocsetter.h
+include/gstreamer-%%VERSION%%/gst/gsttypefind.h
+include/gstreamer-%%VERSION%%/gst/gsttypefindfactory.h
+include/gstreamer-%%VERSION%%/gst/gsturi.h
+include/gstreamer-%%VERSION%%/gst/gstutils.h
+include/gstreamer-%%VERSION%%/gst/gstvalue.h
+include/gstreamer-%%VERSION%%/gst/gstversion.h
+include/gstreamer-%%VERSION%%/gst/math-compat.h
+include/gstreamer-%%VERSION%%/gst/net/gstnet.h
+include/gstreamer-%%VERSION%%/gst/net/gstnetaddressmeta.h
+include/gstreamer-%%VERSION%%/gst/net/gstnetclientclock.h
+include/gstreamer-%%VERSION%%/gst/net/gstnettimepacket.h
+include/gstreamer-%%VERSION%%/gst/net/gstnettimeprovider.h
+lib/girepository-1.0/Gst-%%VERSION%%.typelib
+lib/girepository-1.0/GstBase-%%VERSION%%.typelib
+%%CHECK%%lib/girepository-1.0/GstCheck-%%VERSION%%.typelib
+lib/girepository-1.0/GstController-%%VERSION%%.typelib
+lib/girepository-1.0/GstNet-%%VERSION%%.typelib
+lib/gstreamer-%%VERSION%%/libgstcoreelements.la
+lib/gstreamer-%%VERSION%%/libgstcoreelements.so
+lib/libgstbase-%%VERSION%%.a
+lib/libgstbase-%%VERSION%%.la
+lib/libgstbase-%%VERSION%%.so
+lib/libgstbase-%%VERSION%%.so.0
+%%CHECK%%lib/libgstcheck-%%VERSION%%.a
+%%CHECK%%lib/libgstcheck-%%VERSION%%.la
+%%CHECK%%lib/libgstcheck-%%VERSION%%.so
+%%CHECK%%lib/libgstcheck-%%VERSION%%.so.0
+lib/libgstcontroller-%%VERSION%%.a
+lib/libgstcontroller-%%VERSION%%.la
+lib/libgstcontroller-%%VERSION%%.so
+lib/libgstcontroller-%%VERSION%%.so.0
+lib/libgstnet-%%VERSION%%.a
+lib/libgstnet-%%VERSION%%.la
+lib/libgstnet-%%VERSION%%.so
+lib/libgstnet-%%VERSION%%.so.0
+lib/libgstreamer-%%VERSION%%.a
+lib/libgstreamer-%%VERSION%%.la
+lib/libgstreamer-%%VERSION%%.so
+lib/libgstreamer-%%VERSION%%.so.0
+libdata/pkgconfig/gstreamer-%%VERSION%%.pc
+libdata/pkgconfig/gstreamer-base-%%VERSION%%.pc
+%%CHECK%%libdata/pkgconfig/gstreamer-check-%%VERSION%%.pc
+libdata/pkgconfig/gstreamer-controller-%%VERSION%%.pc
+libdata/pkgconfig/gstreamer-net-%%VERSION%%.pc
+libexec/gstreamer-%%VERSION%%/gst-plugin-scanner
+share/aclocal/gst-element-check-%%VERSION%%.m4
+share/gir-1.0/Gst-%%VERSION%%.gir
+share/gir-1.0/GstBase-%%VERSION%%.gir
+%%CHECK%%share/gir-1.0/GstCheck-%%VERSION%%.gir
+share/gir-1.0/GstController-%%VERSION%%.gir
+share/gir-1.0/GstNet-%%VERSION%%.gir
+share/locale/af/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/az/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/be/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/bg/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/ca/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/cs/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/da/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/de/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/el/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/en_GB/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/eo/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/eu/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/es/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/fi/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/fr/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/gl/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/hu/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/id/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/it/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/ja/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/lt/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/nb/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/nl/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/pl/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/pt_BR/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/ro/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/ru/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/rw/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/sk/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/sl/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/sq/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/sr/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/sv/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/tr/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/uk/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/vi/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/zh_CN/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+share/locale/zh_TW/LC_MESSAGES/gstreamer-%%VERSION%%.mo
+@dirrmtry share/locale/rw/LC_MESSAGES
+@dirrmtry share/locale/rw
+@dirrm libexec/gstreamer-%%VERSION%%
+@dirrm lib/gstreamer-%%VERSION%%
+@dirrm include/gstreamer-%%VERSION%%/gst/net
+@dirrm include/gstreamer-%%VERSION%%/gst/controller
+%%CHECK%%@dirrm include/gstreamer-%%VERSION%%/gst/check
+@dirrm include/gstreamer-%%VERSION%%/gst/base
+@dirrm include/gstreamer-%%VERSION%%/gst
+@dirrm include/gstreamer-%%VERSION%%