From 5d03017521662fa16361c7114451f9227ea62ede Mon Sep 17 00:00:00 2001 From: ajacoutot Date: Tue, 22 Jan 2008 08:53:41 +0000 Subject: [PATCH] Import py-gstreamer-0.10.9 gst-python provides a convenient wrapper for the GStreamer library for use in Python programs, and takes care of many of the boring details such as managing memory and type casting. Joint work with jasper@ ok jasper@ --- .../gstreamer-0.10/py-gstreamer/Makefile | 38 ++++++++++++ .../gstreamer-0.10/py-gstreamer/distinfo | 5 ++ .../patches/patch-gst___init___py | 19 ++++++ .../patches/patch-testsuite_test_interface_py | 12 ++++ .../gstreamer-0.10/py-gstreamer/pkg/DESCR | 3 + .../gstreamer-0.10/py-gstreamer/pkg/PLIST | 62 +++++++++++++++++++ 6 files changed, 139 insertions(+) create mode 100644 multimedia/gstreamer-0.10/py-gstreamer/Makefile create mode 100644 multimedia/gstreamer-0.10/py-gstreamer/distinfo create mode 100644 multimedia/gstreamer-0.10/py-gstreamer/patches/patch-gst___init___py create mode 100644 multimedia/gstreamer-0.10/py-gstreamer/patches/patch-testsuite_test_interface_py create mode 100644 multimedia/gstreamer-0.10/py-gstreamer/pkg/DESCR create mode 100644 multimedia/gstreamer-0.10/py-gstreamer/pkg/PLIST diff --git a/multimedia/gstreamer-0.10/py-gstreamer/Makefile b/multimedia/gstreamer-0.10/py-gstreamer/Makefile new file mode 100644 index 00000000000..8e1caef3581 --- /dev/null +++ b/multimedia/gstreamer-0.10/py-gstreamer/Makefile @@ -0,0 +1,38 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2008/01/22 08:53:41 ajacoutot Exp $ + +COMMENT= Python bindings for gstreamer + +V= 0.10.9 +DISTNAME= gst-python-$V +PKGNAME= py-gstreamer-$V + +HOMEPAGE= http://gstreamer.freedesktop.org/modules/gst-python.html + +MASTER_SITES= ${MASTER_SITE_GST:=gst-python/} + +WANTLIB= glib-2.0 gmodule-2.0 gobject-2.0 gstbase-0.10 gstcontroller-0.10 \ + gstdataprotocol-0.10 gstnet-0.10 gstreamer-0.10 gthread-2.0 \ + m pcre xml2 z + +MODULES= devel/gettext + +BUILD_DEPENDS= ::x11/py-gtk2 +RUN_DEPENDS= ::x11/py-gtk2 \ + :py-libxml-*:textproc/libxml,-python +LIB_DEPENDS= gstinterfaces-0.10::multimedia/gstreamer-0.10/plugins-base + +REGRESS_DEPENDS=::multimedia/gstreamer-0.10/plugins-good + +# don't heritate from Makefile.inc +# needed for the "regress" target +SEPARATE_BUILD= No + +CONFIGURE_STYLE=gnu +CONFIGURE_ARGS= --disable-gcov + +post-install: + @cd ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/ && \ + ${MODPY_BIN} -OOOO -c 'import pygst' && \ + ${MODPY_BIN} -c 'import pygst' + +.include diff --git a/multimedia/gstreamer-0.10/py-gstreamer/distinfo b/multimedia/gstreamer-0.10/py-gstreamer/distinfo new file mode 100644 index 00000000000..0f0962c5aa4 --- /dev/null +++ b/multimedia/gstreamer-0.10/py-gstreamer/distinfo @@ -0,0 +1,5 @@ +MD5 (gst-python-0.10.9.tar.bz2) = gH4U6NBYRFUko04Hm7gwSA== +RMD160 (gst-python-0.10.9.tar.bz2) = xYxM9eu6e/UtvIpt4dg0YFAWZlE= +SHA1 (gst-python-0.10.9.tar.bz2) = S6gDOjtNEoBCWNucTPCmM2fMlZI= +SHA256 (gst-python-0.10.9.tar.bz2) = nATHxQN0v1jFzIwwQA0nON8/tD0Fa9xEHTPUzp+z5LQ= +SIZE (gst-python-0.10.9.tar.bz2) = 447963 diff --git a/multimedia/gstreamer-0.10/py-gstreamer/patches/patch-gst___init___py b/multimedia/gstreamer-0.10/py-gstreamer/patches/patch-gst___init___py new file mode 100644 index 00000000000..b1adc9452dc --- /dev/null +++ b/multimedia/gstreamer-0.10/py-gstreamer/patches/patch-gst___init___py @@ -0,0 +1,19 @@ +$OpenBSD: patch-gst___init___py,v 1.1.1.1 2008/01/22 08:53:41 ajacoutot Exp $ +--- gst/__init__.py.orig Thu Jun 14 21:14:12 2007 ++++ gst/__init__.py Mon Jan 21 11:06:21 2008 +@@ -122,13 +122,13 @@ class Fraction(Value): + import sys + dlsave = sys.getdlopenflags() + try: +- from DLFCN import RTLD_GLOBAL, RTLD_LAZY ++ from dl import RTLD_GLOBAL, RTLD_LAZY + except ImportError: + RTLD_GLOBAL = -1 + RTLD_LAZY = -1 + import os + osname = os.uname()[0] +- if osname == 'Linux' or osname == 'SunOS' or osname == 'FreeBSD': ++ if osname == 'Linux' or osname == 'SunOS' or osname == 'FreeBSD' or osname == 'OpenBSD': + RTLD_GLOBAL = 0x100 + RTLD_LAZY = 0x1 + elif osname == 'Darwin': diff --git a/multimedia/gstreamer-0.10/py-gstreamer/patches/patch-testsuite_test_interface_py b/multimedia/gstreamer-0.10/py-gstreamer/patches/patch-testsuite_test_interface_py new file mode 100644 index 00000000000..43e83f612a7 --- /dev/null +++ b/multimedia/gstreamer-0.10/py-gstreamer/patches/patch-testsuite_test_interface_py @@ -0,0 +1,12 @@ +$OpenBSD: patch-testsuite_test_interface_py,v 1.1.1.1 2008/01/22 08:53:41 ajacoutot Exp $ +--- testsuite/test_interface.py.orig Mon Jan 21 12:13:23 2008 ++++ testsuite/test_interface.py Mon Jan 21 12:13:31 2008 +@@ -46,7 +46,7 @@ class FunctionCall(TestCase): + class MixerTest(TestCase): + def setUp(self): + TestCase.setUp(self) +- self.mixer = gst.element_factory_make('alsasrc', '') ++ self.mixer = gst.element_factory_make('osssrc', '') + assert self.mixer + + def tearDown(self): diff --git a/multimedia/gstreamer-0.10/py-gstreamer/pkg/DESCR b/multimedia/gstreamer-0.10/py-gstreamer/pkg/DESCR new file mode 100644 index 00000000000..9920bdcacb2 --- /dev/null +++ b/multimedia/gstreamer-0.10/py-gstreamer/pkg/DESCR @@ -0,0 +1,3 @@ +gst-python provides a convenient wrapper for the GStreamer library for +use in Python programs, and takes care of many of the boring details +such as managing memory and type casting. diff --git a/multimedia/gstreamer-0.10/py-gstreamer/pkg/PLIST b/multimedia/gstreamer-0.10/py-gstreamer/pkg/PLIST new file mode 100644 index 00000000000..67017e382a6 --- /dev/null +++ b/multimedia/gstreamer-0.10/py-gstreamer/pkg/PLIST @@ -0,0 +1,62 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2008/01/22 08:53:41 ajacoutot Exp $ +lib/pkgconfig/gst-python-${VERSION}.pc +lib/python${MODPY_VERSION}/site-packages/gst-${VERSION}/ +lib/python${MODPY_VERSION}/site-packages/gst-${VERSION}/gst/ +lib/python${MODPY_VERSION}/site-packages/gst-${VERSION}/gst/__init__.py +lib/python${MODPY_VERSION}/site-packages/gst-${VERSION}/gst/__init__.pyc +lib/python${MODPY_VERSION}/site-packages/gst-${VERSION}/gst/__init__.pyo +lib/python${MODPY_VERSION}/site-packages/gst-${VERSION}/gst/_gst.la +lib/python${MODPY_VERSION}/site-packages/gst-${VERSION}/gst/_gst.so +lib/python${MODPY_VERSION}/site-packages/gst-${VERSION}/gst/extend/ +lib/python${MODPY_VERSION}/site-packages/gst-${VERSION}/gst/extend/__init__.py +lib/python${MODPY_VERSION}/site-packages/gst-${VERSION}/gst/extend/__init__.pyc +lib/python${MODPY_VERSION}/site-packages/gst-${VERSION}/gst/extend/__init__.pyo +lib/python${MODPY_VERSION}/site-packages/gst-${VERSION}/gst/extend/discoverer.py +lib/python${MODPY_VERSION}/site-packages/gst-${VERSION}/gst/extend/discoverer.pyc +lib/python${MODPY_VERSION}/site-packages/gst-${VERSION}/gst/extend/discoverer.pyo +lib/python${MODPY_VERSION}/site-packages/gst-${VERSION}/gst/extend/jukebox.py +lib/python${MODPY_VERSION}/site-packages/gst-${VERSION}/gst/extend/jukebox.pyc +lib/python${MODPY_VERSION}/site-packages/gst-${VERSION}/gst/extend/jukebox.pyo +lib/python${MODPY_VERSION}/site-packages/gst-${VERSION}/gst/extend/leveller.py +lib/python${MODPY_VERSION}/site-packages/gst-${VERSION}/gst/extend/leveller.pyc +lib/python${MODPY_VERSION}/site-packages/gst-${VERSION}/gst/extend/leveller.pyo +lib/python${MODPY_VERSION}/site-packages/gst-${VERSION}/gst/extend/pygobject.py +lib/python${MODPY_VERSION}/site-packages/gst-${VERSION}/gst/extend/pygobject.pyc +lib/python${MODPY_VERSION}/site-packages/gst-${VERSION}/gst/extend/pygobject.pyo +lib/python${MODPY_VERSION}/site-packages/gst-${VERSION}/gst/extend/sources.py +lib/python${MODPY_VERSION}/site-packages/gst-${VERSION}/gst/extend/sources.pyc +lib/python${MODPY_VERSION}/site-packages/gst-${VERSION}/gst/extend/sources.pyo +lib/python${MODPY_VERSION}/site-packages/gst-${VERSION}/gst/extend/utils.py +lib/python${MODPY_VERSION}/site-packages/gst-${VERSION}/gst/extend/utils.pyc +lib/python${MODPY_VERSION}/site-packages/gst-${VERSION}/gst/extend/utils.pyo +lib/python${MODPY_VERSION}/site-packages/gst-${VERSION}/gst/interfaces.la +lib/python${MODPY_VERSION}/site-packages/gst-${VERSION}/gst/interfaces.so +lib/python${MODPY_VERSION}/site-packages/pygst.pth +lib/python${MODPY_VERSION}/site-packages/pygst.py +lib/python${MODPY_VERSION}/site-packages/pygst.pyc +lib/python${MODPY_VERSION}/site-packages/pygst.pyo +share/gst-python/ +share/gst-python/${VERSION}/ +share/gst-python/${VERSION}/defs/ +share/gst-python/${VERSION}/defs/base.defs +share/gst-python/${VERSION}/defs/gst-extrafuncs.defs +share/gst-python/${VERSION}/defs/gst-types.defs +share/gst-python/${VERSION}/defs/libs.defs +share/gst-python/${VERSION}/examples/ +share/gst-python/${VERSION}/examples/audio-controller.py +share/gst-python/${VERSION}/examples/audioconcat.py +share/gst-python/${VERSION}/examples/bps.py +share/gst-python/${VERSION}/examples/cp.py +share/gst-python/${VERSION}/examples/debugslider.py +share/gst-python/${VERSION}/examples/decodebin.py +share/gst-python/${VERSION}/examples/f2f.py +share/gst-python/${VERSION}/examples/filesrc.py +share/gst-python/${VERSION}/examples/fvumeter.py +share/gst-python/${VERSION}/examples/gst-discover +share/gst-python/${VERSION}/examples/gstfile.py +share/gst-python/${VERSION}/examples/mixer.py +share/gst-python/${VERSION}/examples/pipeline-tester +share/gst-python/${VERSION}/examples/play.py +share/gst-python/${VERSION}/examples/remuxer.py +share/gst-python/${VERSION}/examples/sinkelement.py +share/gst-python/${VERSION}/examples/vumeter.py