aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--audio/Makefile1
-rw-r--r--audio/py-xmms/Makefile34
-rw-r--r--audio/py-xmms/distinfo1
-rw-r--r--audio/py-xmms/files/patch-setup.py37
-rw-r--r--audio/py-xmms/pkg-comment1
-rw-r--r--audio/py-xmms/pkg-descr7
-rw-r--r--audio/py-xmms/pkg-plist4
7 files changed, 85 insertions, 0 deletions
diff --git a/audio/Makefile b/audio/Makefile
index 571a880da022..e19772107e2f 100644
--- a/audio/Makefile
+++ b/audio/Makefile
@@ -172,6 +172,7 @@
SUBDIR += pimp3
SUBDIR += play
SUBDIR += playmidi
+ SUBDIR += py-xmms
SUBDIR += pysol-sound-server
SUBDIR += quelcom
SUBDIR += radio
diff --git a/audio/py-xmms/Makefile b/audio/py-xmms/Makefile
new file mode 100644
index 000000000000..f722500e7563
--- /dev/null
+++ b/audio/py-xmms/Makefile
@@ -0,0 +1,34 @@
+# New ports collection makefile for: py-xmms
+# Date created: 19 March 2002
+# Whom: Hye-Shik Chang <perky@fallin.lv>
+#
+# $FreeBSD$
+#
+
+PORTNAME= xmms
+PORTVERSION= 1.02
+CATEGORIES= audio python
+MASTER_SITES= http://www.via.ecp.fr/~flo/2002/PyXMMS/dist/ \
+ http://www3.kr.freebsd.org/~perky/distfiles/
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= PyXMMS-${PORTVERSION}
+
+MAINTAINER= perky@fallin.lv
+
+BUILD_DEPENDS= ${XMMS_CONFIG}:${PORTSDIR}/audio/xmms
+LIB_DEPENDS= xmms.3:${PORTSDIR}/audio/xmms
+
+USE_PYTHON= yes
+USE_GLIB= yes
+PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S,^${LOCALBASE}/,,g}
+XMMS_CONFIG?= ${X11BASE}/bin/xmms-config
+MAKE_ENV= GLIB_CONFIG="${GLIB_CONFIG}" XMMS_CONFIG="${XMMS_CONFIG}"
+SETUP_CMD= cd ${WRKSRC} && ${MAKE_ENV} ${PYTHON_CMD} setup.py
+
+do-build:
+ ${SETUP_CMD} build
+
+do-install:
+ ${SETUP_CMD} install -c -O1 --prefix=${PREFIX}
+
+.include <bsd.port.mk>
diff --git a/audio/py-xmms/distinfo b/audio/py-xmms/distinfo
new file mode 100644
index 000000000000..7b6acd475560
--- /dev/null
+++ b/audio/py-xmms/distinfo
@@ -0,0 +1 @@
+MD5 (PyXMMS-1.02.tar.gz) = 9f9ed8afc0583446c8b3440457fabbb3
diff --git a/audio/py-xmms/files/patch-setup.py b/audio/py-xmms/files/patch-setup.py
new file mode 100644
index 000000000000..9a090a909752
--- /dev/null
+++ b/audio/py-xmms/files/patch-setup.py
@@ -0,0 +1,37 @@
+--- setup.py.orig Mon Mar 18 01:08:13 2002
++++ setup.py Tue Mar 19 09:42:54 2002
+@@ -34,9 +34,12 @@
+ # end of the gcc command, which is useless in this case. So, I use
+ # "include_dirs" instead.
+
++import os, re
++
+ PACKAGE = "PyXMMS"
+ VERSION = "1.02"
+-GLIB_CONFIG = "glib-config"
++GLIB_CONFIG = os.environ['GLIB_CONFIG']
++XMMS_CONFIG = os.environ['XMMS_CONFIG']
+
+ def main():
+ glib_opts = {}
+@@ -51,6 +54,9 @@
+ # Suppress the -I in each -Idir output by glib-config --cflags (ugly)
+ glib_include_dirs = map(lambda s: s[2:],
+ string.split(glib_opts["cflags"], ' '))
++
++ XMMSINCDIR = re.findall('-I([^ ]+)', os.popen(XMMS_CONFIG+" --cflags").read())
++ XMMSLIBDIR = re.findall('-L([^ ]+)', os.popen(XMMS_CONFIG+" --libs").read())
+
+ setup(name=PACKAGE,
+ version=VERSION,
+@@ -69,8 +75,9 @@
+ keywords=["xmms"],
+ py_modules=["xmms"],
+ ext_modules=[Extension("_xmms", ["_xmmsmodule.c"],
+- include_dirs=glib_include_dirs,
++ include_dirs=glib_include_dirs+XMMSINCDIR,
+ libraries=["xmms"],
++ library_dirs=XMMSLIBDIR,
+ extra_link_args=[glib_opts["libs"]])])
+
+ if __name__ == "__main__": main()
diff --git a/audio/py-xmms/pkg-comment b/audio/py-xmms/pkg-comment
new file mode 100644
index 000000000000..b177326031ee
--- /dev/null
+++ b/audio/py-xmms/pkg-comment
@@ -0,0 +1 @@
+XMMS Remote Control Library for Python
diff --git a/audio/py-xmms/pkg-descr b/audio/py-xmms/pkg-descr
new file mode 100644
index 000000000000..045a06779f1c
--- /dev/null
+++ b/audio/py-xmms/pkg-descr
@@ -0,0 +1,7 @@
+PyXMMS is a set of Python bindings for the xmms_remote* functions
+of the libxmms library, plus some higher-level functions. In other
+words, it is a set of functions callable from Python code that can
+be used to control XMMS, a free multimedia (audio and video) player
+for X-Window.
+
+WWW: http://www.via.ecp.fr/~flo/index.en.html#PyXMMS_and_PyXMMS-remote
diff --git a/audio/py-xmms/pkg-plist b/audio/py-xmms/pkg-plist
new file mode 100644
index 000000000000..46934e826124
--- /dev/null
+++ b/audio/py-xmms/pkg-plist
@@ -0,0 +1,4 @@
+lib/%%PYTHON_VERSION%%/site-packages/_xmms.so
+lib/%%PYTHON_VERSION%%/site-packages/xmms.py
+lib/%%PYTHON_VERSION%%/site-packages/xmms.pyc
+lib/%%PYTHON_VERSION%%/site-packages/xmms.pyo