1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-07-12 14:59:13 -04:00
ports/audio/py-openal/files/patch-setup.py
Jose Alonso Cardenas Marquez 0977976dde - Fix build problem, it isn't linking appropriately to openal lib.
- Add patch_py-openal.c. This port is using DEPRECATED functions of openal.

Approved by:	garga (mentor)
2006-08-21 16:07:03 +00:00

29 lines
1 KiB
Python

--- setup.py Sun Apr 30 10:23:44 2006
+++ setup.py Mon Aug 21 00:25:58 2006
@@ -1,14 +1,14 @@
import os
from distutils.core import setup, Extension
-LIBDIRS = ["/usr/lib", "/usr/local/lib"]
+LIBDIRS = ["/usr/lib", "/usr/local/lib", "/usr/local/lib"]
LIBS = ["openal", "alut"]
try:
openal_version = os.popen("openal-config --version").read()
if openal_version[0] == "0":
- LIBDIRS = ["/usr/lib", "/usr/local/lib"]
- LIBS = ["openal"]
+ LIBDIRS = ["/usr/lib", "/usr/local/lib", "/usr/local/lib"]
+ LIBS = ["openal","alut"]
except:
print "Warning: error while running 'openal-config --version', using default values..."
@@ -38,7 +38,7 @@
ext_modules = [Extension("_openal",
["py_openal.c"],
- ["/usr/include", "/usr/local/include"],
+ ["/usr/include", "/usr/local/include", "/usr/local/include"],
[("HAVE_CONFIG_H", None)],
None,
LIBDIRS,