aboutsummaryrefslogtreecommitdiff
path: root/audio/py-openal
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2005-10-18 09:24:01 +0000
committerRenato Botelho <garga@FreeBSD.org>2005-10-18 09:24:01 +0000
commit3f0bb454162a69d47a9cc093252491f15d55a80e (patch)
treef0f41e824a85bcf2ccfbc9ef5a12daa19b590a95 /audio/py-openal
parentbb43e5f55831915297a2f8729d906f4ff5b5fc56 (diff)
downloadports-3f0bb454162a69d47a9cc093252491f15d55a80e.tar.gz
ports-3f0bb454162a69d47a9cc093252491f15d55a80e.zip
Notes
Diffstat (limited to 'audio/py-openal')
-rw-r--r--audio/py-openal/Makefile5
-rw-r--r--audio/py-openal/files/patch-setup.py15
2 files changed, 20 insertions, 0 deletions
diff --git a/audio/py-openal/Makefile b/audio/py-openal/Makefile
index 29d4c5a6c364..2280f6db21fa 100644
--- a/audio/py-openal/Makefile
+++ b/audio/py-openal/Makefile
@@ -18,12 +18,17 @@ COMMENT= PyOpenAL is a binding of OpenAL for Python
LIB_DEPENDS= openal.0:${PORTSDIR}/audio/openal
DIST_SUBDIR= python
+USE_REINPLACE= yes
USE_GZIP= yes
USE_PYTHON= yes
USE_PYDISTUTILS= yes
WRKSRC= ${WRKDIR}/PyOpenAL-${PORTVERSION}
EXAMPLESDIR= ${PREFIX}/share/examples/py-openal
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
+ ${WRKSRC}/setup.py
+
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${EXAMPLESDIR}
diff --git a/audio/py-openal/files/patch-setup.py b/audio/py-openal/files/patch-setup.py
new file mode 100644
index 000000000000..29e2a0c78c57
--- /dev/null
+++ b/audio/py-openal/files/patch-setup.py
@@ -0,0 +1,15 @@
+--- setup.py Mon Oct 17 23:22:45 2005
++++ setup.py Mon Oct 17 23:22:19 2005
+@@ -24,10 +24,10 @@
+
+ ext_modules = [Extension("_openal",
+ ["py_openal.c"],
+- ["/usr/include", "/usr/local/include"],
++ ["/usr/include", "/usr/local/include", "%%PREFIX%%/include"],
+ [("HAVE_CONFIG_H", None)],
+ None,
+- ["/usr/lib", "/usr/local/lib"],
++ ["/usr/lib", "/usr/local/lib", "%%PREFIX%%/lib"],
+ ["openal"],
+ )
+ ]