summaryrefslogtreecommitdiffstats
path: root/audio/py-vorbis
diff options
context:
space:
mode:
authornbm <nbm@FreeBSD.org>2002-10-07 13:43:18 +0000
committernbm <nbm@FreeBSD.org>2002-10-07 13:43:18 +0000
commiteaf02ac4287ecf83cca20b994c7534a0d3e0cd8b (patch)
treedf0ee5217429ee0de27c563fd22b5ab6173fe398 /audio/py-vorbis
parenta19a9fb3365be44a432d594f190d873232a4cfe8 (diff)
downloadFreeBSD-ports-eaf02ac4287ecf83cca20b994c7534a0d3e0cd8b.zip
FreeBSD-ports-eaf02ac4287ecf83cca20b994c7534a0d3e0cd8b.tar.gz
Add py-vorbis 1.0, object-oriented Python bindings for the vorbis library.
Diffstat (limited to 'audio/py-vorbis')
-rw-r--r--audio/py-vorbis/Makefile27
-rw-r--r--audio/py-vorbis/distinfo1
-rw-r--r--audio/py-vorbis/files/patch-pyvorbisfile.c20
-rw-r--r--audio/py-vorbis/files/patch-setup.py11
-rw-r--r--audio/py-vorbis/pkg-comment1
-rw-r--r--audio/py-vorbis/pkg-descr3
-rw-r--r--audio/py-vorbis/pkg-plist1
7 files changed, 64 insertions, 0 deletions
diff --git a/audio/py-vorbis/Makefile b/audio/py-vorbis/Makefile
new file mode 100644
index 0000000..ce36703
--- /dev/null
+++ b/audio/py-vorbis/Makefile
@@ -0,0 +1,27 @@
+# New ports collection makefile for: pyvorbis
+# Date created: 23 Sep 2002
+# Whom: makeport.pl
+#
+# $FreeBSD$
+#
+
+PORTNAME= vorbis
+PORTVERSION= 1.0
+CATEGORIES= audio
+MASTER_SITES= http://www.andrewchatham.com/pyogg/
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= pyvorbis-${PORTVERSION}
+
+MAINTAINER= nbm@FreeBSD.org
+
+BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/ogg/_oggmodule.so:${PORTSDIR}/audio/py-ogg
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/ogg/_oggmodule.so:${PORTSDIR}/audio/py-ogg
+LIB_DEPENDS= vorbis.2:${PORTSDIR}/audio/libvorbis
+
+USE_PYTHON= yes
+USE_PYDISTUTILS= yes
+
+do-configure:
+ @cd ${WRKSRC} && ${PYTHON_CMD} config_unix.py
+
+.include <bsd.port.mk>
diff --git a/audio/py-vorbis/distinfo b/audio/py-vorbis/distinfo
new file mode 100644
index 0000000..c1dd813
--- /dev/null
+++ b/audio/py-vorbis/distinfo
@@ -0,0 +1 @@
+MD5 (pyvorbis-1.0.tar.gz) = 158e38785543f2d945e20f67f77299b9
diff --git a/audio/py-vorbis/files/patch-pyvorbisfile.c b/audio/py-vorbis/files/patch-pyvorbisfile.c
new file mode 100644
index 0000000..7a33f3d
--- /dev/null
+++ b/audio/py-vorbis/files/patch-pyvorbisfile.c
@@ -0,0 +1,20 @@
+--- src/pyvorbisfile.c.orig Mon Sep 23 16:35:18 2002
++++ src/pyvorbisfile.c Mon Sep 23 16:37:20 2002
+@@ -1,5 +1,17 @@
+ #include <stdio.h>
++
++#if (defined(__unix__) || defined(unix)) && !defined(USG)
++#include <sys/param.h>
++#endif
++
++#if (defined(BSD))
++#include <machine/endian.h>
++#define __BYTE_ORDER BYTE_ORDER
++#define __BIG_ENDIAN BIG_ENDIAN
++#else
+ #include <endian.h>
++#endif
++
+ #include <assert.h>
+
+ #include "general.h"
diff --git a/audio/py-vorbis/files/patch-setup.py b/audio/py-vorbis/files/patch-setup.py
new file mode 100644
index 0000000..0a9871e
--- /dev/null
+++ b/audio/py-vorbis/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig Mon Sep 23 16:29:24 2002
++++ setup.py Mon Sep 23 16:29:34 2002
+@@ -20,7 +20,7 @@
+
+ def get_setup():
+ data = {}
+- r = re.compile(r'(\S+)\s*?=\s*?(.+)')
++ r = re.compile(r'(\S+)\s*?=\s*(.+)')
+
+ if not os.path.isfile('Setup'):
+ print "No 'Setup' file. Perhaps you need to run the configure script."
diff --git a/audio/py-vorbis/pkg-comment b/audio/py-vorbis/pkg-comment
new file mode 100644
index 0000000..de1ec72
--- /dev/null
+++ b/audio/py-vorbis/pkg-comment
@@ -0,0 +1 @@
+Object-oriented Python bindings for the vorbis library
diff --git a/audio/py-vorbis/pkg-descr b/audio/py-vorbis/pkg-descr
new file mode 100644
index 0000000..5822cd2
--- /dev/null
+++ b/audio/py-vorbis/pkg-descr
@@ -0,0 +1,3 @@
+Object-oriented Python bindings for the vorbis library
+
+WWW: http://www.andrewchatham.com/pyogg/
diff --git a/audio/py-vorbis/pkg-plist b/audio/py-vorbis/pkg-plist
new file mode 100644
index 0000000..1f1fc72
--- /dev/null
+++ b/audio/py-vorbis/pkg-plist
@@ -0,0 +1 @@
+lib/%%PYTHON_VERSION%%/site-packages/ogg/vorbismodule.so
OpenPOWER on IntegriCloud