diff options
author | garga <garga@FreeBSD.org> | 2005-10-18 17:24:01 +0800 |
---|---|---|
committer | garga <garga@FreeBSD.org> | 2005-10-18 17:24:01 +0800 |
commit | f24440945a3fad1885fc0f93ca3305d4d25371e4 (patch) | |
tree | 662a41edb98363220a78361d57d5d41cd6725c72 /audio | |
parent | 62b211640280ac3ebca629e1d46120c6a64c3525 (diff) | |
download | freebsd-ports-gnome-f24440945a3fad1885fc0f93ca3305d4d25371e4.tar.gz freebsd-ports-gnome-f24440945a3fad1885fc0f93ca3305d4d25371e4.tar.zst freebsd-ports-gnome-f24440945a3fad1885fc0f93ca3305d4d25371e4.zip |
- Respect PREFIX/X11BASE
Submitted by: maintainer
Reported by: krismail
Diffstat (limited to 'audio')
-rw-r--r-- | audio/py-openal/Makefile | 5 | ||||
-rw-r--r-- | audio/py-openal/files/patch-setup.py | 15 |
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"], + ) + ] |