diff options
Diffstat (limited to 'audio/py-openal')
-rw-r--r-- | audio/py-openal/Makefile | 2 | ||||
-rw-r--r-- | audio/py-openal/files/patch-setup.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/audio/py-openal/Makefile b/audio/py-openal/Makefile index 34e505e055c3..58158de3af57 100644 --- a/audio/py-openal/Makefile +++ b/audio/py-openal/Makefile @@ -27,7 +27,7 @@ WRKSRC= ${WRKDIR}/PyOpenAL-${PORTVERSION} EXAMPLESDIR= ${PREFIX}/share/examples/py-openal post-patch: - @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \ + @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ ${WRKSRC}/setup.py post-install: diff --git a/audio/py-openal/files/patch-setup.py b/audio/py-openal/files/patch-setup.py index 57c13f4c833e..4c19744e6b7e 100644 --- a/audio/py-openal/files/patch-setup.py +++ b/audio/py-openal/files/patch-setup.py @@ -5,7 +5,7 @@ from distutils.core import setup, Extension -LIBDIRS = ["/usr/lib", "/usr/local/lib"] -+LIBDIRS = ["/usr/lib", "/usr/local/lib", "/usr/local/lib"] ++LIBDIRS = ["/usr/lib", "/usr/local/lib", "%%LOCALBASE%%/lib"] LIBS = ["openal", "alut"] try: @@ -13,7 +13,7 @@ if openal_version[0] == "0": - LIBDIRS = ["/usr/lib", "/usr/local/lib"] - LIBS = ["openal"] -+ LIBDIRS = ["/usr/lib", "/usr/local/lib", "/usr/local/lib"] ++ LIBDIRS = ["/usr/lib", "/usr/local/lib", "%%LOCALBASE%%/lib"] + LIBS = ["openal","alut"] except: @@ -23,7 +23,7 @@ ext_modules = [Extension("_openal", ["py_openal.c"], - ["/usr/include", "/usr/local/include"], -+ ["/usr/include", "/usr/local/include", "/usr/local/include"], ++ ["/usr/include", "/usr/local/include", "%%LOCALBASE%%/include"], [("HAVE_CONFIG_H", None)], None, LIBDIRS, |