aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authorkwm <kwm@FreeBSD.org>2014-08-09 04:27:39 +0800
committerkwm <kwm@FreeBSD.org>2014-08-09 04:27:39 +0800
commitaec28805d5b355d9732b51c6efc8082362340915 (patch)
tree8099c81065ea6ca5b301fe7e4020b0427fff4e8b /multimedia
parent881baa312416edbc652e35d02787b6a2bc6c2839 (diff)
downloadfreebsd-ports-gnome-aec28805d5b355d9732b51c6efc8082362340915.tar.gz
freebsd-ports-gnome-aec28805d5b355d9732b51c6efc8082362340915.tar.zst
freebsd-ports-gnome-aec28805d5b355d9732b51c6efc8082362340915.zip
Add Gstreamer python bindings for Gstreamer 1.x.
Add python2 and python3 flavors. USE_GSTREAMER1 entries will be made when I figure out how adapt bsd.gstreamer.mk to the dual python flavors. PR: ports/187647 (merged/based on) Submitted by: Olivier Duchateau
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/Makefile2
-rw-r--r--multimedia/py-gstreamer1/Makefile34
-rw-r--r--multimedia/py-gstreamer1/distinfo2
-rw-r--r--multimedia/py-gstreamer1/pkg-descr5
-rw-r--r--multimedia/py-gstreamer1/pkg-plist8
-rw-r--r--multimedia/py3-gstreamer1/Makefile36
-rw-r--r--multimedia/py3-gstreamer1/distinfo2
-rw-r--r--multimedia/py3-gstreamer1/pkg-descr5
-rw-r--r--multimedia/py3-gstreamer1/pkg-plist9
9 files changed, 103 insertions, 0 deletions
diff --git a/multimedia/Makefile b/multimedia/Makefile
index 1a1ecdee6b93..7bee1760b025 100644
--- a/multimedia/Makefile
+++ b/multimedia/Makefile
@@ -287,6 +287,7 @@
SUBDIR += py-ffmpeg
SUBDIR += py-gstreamer
SUBDIR += py-guessit
+ SUBDIR += py-gstreamer1
SUBDIR += py-kaa-base
SUBDIR += py-kaa-imlib2
SUBDIR += py-kaa-metadata
@@ -299,6 +300,7 @@
SUBDIR += py-soco
SUBDIR += py-subliminal
SUBDIR += py-tvnamer
+ SUBDIR += py3-gstreamer1
SUBDIR += pyjama
SUBDIR += pymp
SUBDIR += qmmp
diff --git a/multimedia/py-gstreamer1/Makefile b/multimedia/py-gstreamer1/Makefile
new file mode 100644
index 000000000000..2c9fb8a2414b
--- /dev/null
+++ b/multimedia/py-gstreamer1/Makefile
@@ -0,0 +1,34 @@
+# Created by: Koop Mast <kwm@rainbow-runner.nl>
+# $FreeBSD$
+
+PORTNAME= gstreamer
+PORTVERSION= 1.2.1
+CATEGORIES= multimedia python
+MASTER_SITES= http://gstreamer.freedesktop.org/src/gst-python/
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+PKGNAMESUFFIX= 1
+DISTNAME= gst-python-${PORTVERSION}
+
+MAINTAINER= multimedia@FreeBSD.org
+COMMENT= Python bindings for gstreamer
+
+LICENSE= LGPL21
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+USES= gmake pathfix pkgconfig tar:bzip2
+USE_PYTHON= 2
+USE_GNOME= pygobject3
+USE_GSTREAMER1= yes
+GNU_CONFIGURE= yes
+PLIST_SUB= VERSION="${GST_VERSION}"
+CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
+LDFLAGS+= -L${LOCALBASE} ${PTHREAD_LIBS}
+INSTALL_TARGET= install-strip
+
+post-install:
+ ${SETENV} PYTHON=${PYTHON_CMD} ${SH} ${WRKSRC}/py-compile \
+ --destdir ${STAGEDIR} \
+ --basedir ${PYTHON_SITELIBDIR} \
+ ${STAGEDIR}${PYTHON_SITELIBDIR}/pygst.py
+
+.include <bsd.port.mk>
diff --git a/multimedia/py-gstreamer1/distinfo b/multimedia/py-gstreamer1/distinfo
new file mode 100644
index 000000000000..98145607bac4
--- /dev/null
+++ b/multimedia/py-gstreamer1/distinfo
@@ -0,0 +1,2 @@
+SHA256 (gst-python-1.2.1.tar.bz2) = 8823e5a9ffc51212df412652da44dc3f2a0e23295da769de2d111c770280efd4
+SIZE (gst-python-1.2.1.tar.bz2) = 410887
diff --git a/multimedia/py-gstreamer1/pkg-descr b/multimedia/py-gstreamer1/pkg-descr
new file mode 100644
index 000000000000..b88c3a7b068e
--- /dev/null
+++ b/multimedia/py-gstreamer1/pkg-descr
@@ -0,0 +1,5 @@
+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.
+
+WWW: http://gstreamer.freedesktop.org/
diff --git a/multimedia/py-gstreamer1/pkg-plist b/multimedia/py-gstreamer1/pkg-plist
new file mode 100644
index 000000000000..fa8289362f25
--- /dev/null
+++ b/multimedia/py-gstreamer1/pkg-plist
@@ -0,0 +1,8 @@
+%%PYTHON_SITELIBDIR%%/gi/overrides/Gst.py
+%%PYTHON_SITELIBDIR%%/gi/overrides/Gst.pyc
+%%PYTHON_SITELIBDIR%%/gi/overrides/Gst.pyo
+%%PYTHON_SITELIBDIR%%/gi/overrides/GstPbutils.py
+%%PYTHON_SITELIBDIR%%/gi/overrides/GstPbutils.pyc
+%%PYTHON_SITELIBDIR%%/gi/overrides/GstPbutils.pyo
+%%PYTHON_SITELIBDIR%%/gi/overrides/_gi_gst.la
+%%PYTHON_SITELIBDIR%%/gi/overrides/_gi_gst.so
diff --git a/multimedia/py3-gstreamer1/Makefile b/multimedia/py3-gstreamer1/Makefile
new file mode 100644
index 000000000000..23a713607d02
--- /dev/null
+++ b/multimedia/py3-gstreamer1/Makefile
@@ -0,0 +1,36 @@
+# Created by: Koop Mast <kwm@rainbow-runner.nl>
+# $FreeBSD$
+
+PORTNAME= gstreamer
+PORTVERSION= 1.2.1
+CATEGORIES= multimedia python
+MASTER_SITES= http://gstreamer.freedesktop.org/src/gst-python/
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+PKGNAMESUFFIX= 1
+DISTNAME= gst-python-${PORTVERSION}
+
+MAINTAINER= multimedia@FreeBSD.org
+COMMENT= Python bindings for gstreamer
+
+LICENSE= LGPL21
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+USES= gmake pathfix pkgconfig tar:bzip2
+USE_PYTHON= 3
+USE_GNOME= py3gobject3
+USE_GSTREAMER1= yes
+GNU_CONFIGURE= yes
+PLIST_SUB= VERSION="${GST_VERSION}"
+CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
+LDFLAGS+= -L${LOCALBASE} ${PTHREAD_LIBS}
+INSTALL_TARGET= install-strip
+
+PLIST_SUB+= PVERSION=${PYTHON_VER:S/.//}
+
+post-install:
+ ${SETENV} PYTHON=${PYTHON_CMD} ${SH} ${WRKSRC}/py-compile \
+ --destdir ${STAGEDIR} \
+ --basedir ${PYTHON_SITELIBDIR} \
+ ${STAGEDIR}${PYTHON_SITELIBDIR}/pygst.py
+
+.include <bsd.port.mk>
diff --git a/multimedia/py3-gstreamer1/distinfo b/multimedia/py3-gstreamer1/distinfo
new file mode 100644
index 000000000000..98145607bac4
--- /dev/null
+++ b/multimedia/py3-gstreamer1/distinfo
@@ -0,0 +1,2 @@
+SHA256 (gst-python-1.2.1.tar.bz2) = 8823e5a9ffc51212df412652da44dc3f2a0e23295da769de2d111c770280efd4
+SIZE (gst-python-1.2.1.tar.bz2) = 410887
diff --git a/multimedia/py3-gstreamer1/pkg-descr b/multimedia/py3-gstreamer1/pkg-descr
new file mode 100644
index 000000000000..b88c3a7b068e
--- /dev/null
+++ b/multimedia/py3-gstreamer1/pkg-descr
@@ -0,0 +1,5 @@
+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.
+
+WWW: http://gstreamer.freedesktop.org/
diff --git a/multimedia/py3-gstreamer1/pkg-plist b/multimedia/py3-gstreamer1/pkg-plist
new file mode 100644
index 000000000000..e43e116eefb3
--- /dev/null
+++ b/multimedia/py3-gstreamer1/pkg-plist
@@ -0,0 +1,9 @@
+%%PYTHON_SITELIBDIR%%/gi/overrides/__pycache__/Gst.cpython-%%PVERSION%%.pyc
+%%PYTHON_SITELIBDIR%%/gi/overrides/__pycache__/Gst.cpython-%%PVERSION%%.pyo
+%%PYTHON_SITELIBDIR%%/gi/overrides/__pycache__/GstPbutils.cpython-%%PVERSION%%.pyc
+%%PYTHON_SITELIBDIR%%/gi/overrides/__pycache__/GstPbutils.cpython-%%PVERSION%%.pyo
+%%PYTHON_SITELIBDIR%%/gi/overrides/Gst.py
+%%PYTHON_SITELIBDIR%%/gi/overrides/GstPbutils.py
+%%PYTHON_SITELIBDIR%%/gi/overrides/_gi_gst.la
+%%PYTHON_SITELIBDIR%%/gi/overrides/_gi_gst.so
+@dirrmtry %%PYTHON_SITELIBDIR%%/gi/overrides/__pycache__