summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2006-10-11 07:00:05 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2006-10-11 07:00:05 +0800
commitf0ff328c6e84ffcc03d4538972c2f4fb87c28ef2 (patch)
treea657bf4b74ba2c1860118f0cf45473044b3314fc
parente1aa74af2582f0fbbcae47459b35214d5a916403 (diff)
downloadmarcuscom-ports-f0ff328c6e84ffcc03d4538972c2f4fb87c28ef2.tar
marcuscom-ports-f0ff328c6e84ffcc03d4538972c2f4fb87c28ef2.tar.gz
marcuscom-ports-f0ff328c6e84ffcc03d4538972c2f4fb87c28ef2.tar.bz2
marcuscom-ports-f0ff328c6e84ffcc03d4538972c2f4fb87c28ef2.tar.lz
marcuscom-ports-f0ff328c6e84ffcc03d4538972c2f4fb87c28ef2.tar.xz
marcuscom-ports-f0ff328c6e84ffcc03d4538972c2f4fb87c28ef2.tar.zst
marcuscom-ports-f0ff328c6e84ffcc03d4538972c2f4fb87c28ef2.zip
Fix build with new py-gtk2.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@7704 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r--multimedia/py-gstreamer80/Makefile39
-rw-r--r--multimedia/py-gstreamer80/distinfo3
-rw-r--r--multimedia/py-gstreamer80/files/patch-gst_gstpad.override20
-rw-r--r--multimedia/py-gstreamer80/pkg-descr10
-rw-r--r--multimedia/py-gstreamer80/pkg-plist29
5 files changed, 101 insertions, 0 deletions
diff --git a/multimedia/py-gstreamer80/Makefile b/multimedia/py-gstreamer80/Makefile
new file mode 100644
index 000000000..6887c3728
--- /dev/null
+++ b/multimedia/py-gstreamer80/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: gstreamer-python
+# Date created: Fri Apr 9 16:24:13 CEST 2004
+# Whom: Koop Mast <kwm@rainbow-runner.nl>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gstreamer
+PORTVERSION= 0.8.2
+PORTREVISION= 3
+CATEGORIES= multimedia python gnome
+MASTER_SITES= http://gstreamer.freedesktop.org/src/gst-python/ \
+ ${MASTER_SITE_LOCAL}
+MASTER_SITE_SUBDIR= kwm
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+PKGNAMESUFFIX= 80
+DISTNAME= gst-python-${PORTVERSION}
+
+MAINTAINER= multimedia@FreeBSD.org
+COMMENT= A set of Python bindings for gstreamer
+
+BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/libxml2mod.so:${PORTSDIR}/textproc/py-libxml2
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/libxml2mod.so:${PORTSDIR}/textproc/py-libxml2
+
+USE_PYTHON= yes
+USE_BZIP2= yes
+USE_GMAKE= yes
+USE_GNOME= pygtk2 \
+ gnomehack \
+ pkgconfig
+USE_GSTREAMER80= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include" \
+ LDFLAGS="-L${X11BASE}"
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|DLFCN|dl|g' ${WRKSRC}/gst/__init__.py
+
+.include <bsd.port.mk>
diff --git a/multimedia/py-gstreamer80/distinfo b/multimedia/py-gstreamer80/distinfo
new file mode 100644
index 000000000..f7d5e63b2
--- /dev/null
+++ b/multimedia/py-gstreamer80/distinfo
@@ -0,0 +1,3 @@
+MD5 (gst-python-0.8.2.tar.bz2) = bfad80dda50e30aea4f6f322ea58c6c8
+SHA256 (gst-python-0.8.2.tar.bz2) = 665d156a1e14c27b1d039e6554e1d99f4d5489934048907826dc4819ffaf4b50
+SIZE (gst-python-0.8.2.tar.bz2) = 310714
diff --git a/multimedia/py-gstreamer80/files/patch-gst_gstpad.override b/multimedia/py-gstreamer80/files/patch-gst_gstpad.override
new file mode 100644
index 000000000..446af1fe5
--- /dev/null
+++ b/multimedia/py-gstreamer80/files/patch-gst_gstpad.override
@@ -0,0 +1,20 @@
+--- gst/gstpad.override.orig Tue Oct 10 18:58:35 2006
++++ gst/gstpad.override Tue Oct 10 18:58:59 2006
+@@ -443,17 +443,6 @@ _wrap_gst_pad_link_filtered(PyGObject *s
+ }
+
+ %%
+-override gst_pad_get_negotiated_caps
+-static PyObject *
+-_wrap_gst_pad_get_negotiated_caps(PyGObject *self)
+-{
+- const GstCaps *ret;
+-
+- ret = gst_pad_get_negotiated_caps(GST_PAD(self->obj));
+- /* pyg_boxed_new handles NULL checking */
+- return pyg_boxed_new(GST_TYPE_CAPS, ret, TRUE, TRUE);
+-}
+-%%
+ override gst_pad_get_negotiated_caps noargs
+ static PyObject *
+ _wrap_gst_pad_get_negotiated_caps(PyGObject *self)
diff --git a/multimedia/py-gstreamer80/pkg-descr b/multimedia/py-gstreamer80/pkg-descr
new file mode 100644
index 000000000..ec5f4dcd7
--- /dev/null
+++ b/multimedia/py-gstreamer80/pkg-descr
@@ -0,0 +1,10 @@
+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.
+
+Like the GTK library itself gst-python is licensed under the GNU LGPL, so is
+suitable for use in both free software and proprietary applications. It
+is already in use in many applications ranging from small single purpose
+scripts up to large full features applications.
+
+WWW: http://gstreamer.freedesktop.org/
diff --git a/multimedia/py-gstreamer80/pkg-plist b/multimedia/py-gstreamer80/pkg-plist
new file mode 100644
index 000000000..2accea360
--- /dev/null
+++ b/multimedia/py-gstreamer80/pkg-plist
@@ -0,0 +1,29 @@
+%%PYTHON_SITELIBDIR%%/gst/__init__.py
+%%PYTHON_SITELIBDIR%%/gst/__init__.pyc
+%%PYTHON_SITELIBDIR%%/gst/__init__.pyo
+%%PYTHON_SITELIBDIR%%/gst/_gst.la
+%%PYTHON_SITELIBDIR%%/gst/_gst.so
+%%PYTHON_SITELIBDIR%%/gst/interfaces.la
+%%PYTHON_SITELIBDIR%%/gst/interfaces.so
+%%PYTHON_SITELIBDIR%%/gst/play.la
+%%PYTHON_SITELIBDIR%%/gst/play.so
+libdata/pkgconfig/gst-python-0.8.pc
+share/gst-python/2.0/defs/gst-extrafuncs.defs
+share/gst-python/2.0/defs/gst-types.defs
+share/gst-python/examples/audioconcat.py
+share/gst-python/examples/bps.py
+share/gst-python/examples/cp.py
+share/gst-python/examples/f2f.py
+share/gst-python/examples/filesrc.py
+share/gst-python/examples/gst123
+share/gst-python/examples/gstfile.py
+share/gst-python/examples/play.py
+share/gst-python/examples/player.py
+share/gst-python/examples/videoplayer.py
+share/gst-python/examples/vorbisplay.py
+@dirrm share/gst-python/examples
+@dirrm share/gst-python/2.0/defs
+@dirrm share/gst-python/2.0
+@dirrmtry share/gst-python
+@dirrm %%DOCSDIR%%
+@dirrm %%PYTHON_SITELIBDIR%%/gst