21 lines
1006 B
Plaintext
21 lines
1006 B
Plaintext
$OpenBSD: patch-setupext_py,v 1.2 2005/02/02 23:16:18 djm Exp $
|
|
--- setupext.py.orig Wed Dec 15 10:16:24 2004
|
|
+++ setupext.py Wed Feb 2 17:03:26 2005
|
|
@@ -35,6 +35,7 @@ basedir = {
|
|
'win32' : ['win32_static',],
|
|
'linux2' : ['/usr/local', '/usr',],
|
|
'linux' : ['/usr/local', '/usr',],
|
|
+ 'openbsd3' : [os.getenv('X11BASE') or '/usr/X11R6', os.getenv('LOCALBASE') or '/usr/local', '/usr',],
|
|
'darwin' : ['/usr/local', '/usr', '/sw', '/usr/X11R6'],
|
|
'freebsd4' : ['/usr/local', '/usr'],
|
|
'sunos5' : [os.getenv('MPLIB_BASE') or '/usr/local',],
|
|
@@ -83,6 +84,8 @@ def temp_copy(_from, _to):
|
|
def add_base_flags(module):
|
|
incdirs = [os.path.join(p, 'include') for p in basedir[sys.platform]
|
|
if os.path.exists(p)]
|
|
+ if os.getenv('EXTRA_INCLUDES') is not None:
|
|
+ incdirs += os.getenv('EXTRA_INCLUDES').split()
|
|
libdirs = [os.path.join(p, 'lib') for p in basedir[sys.platform]
|
|
if os.path.exists(p)]
|
|
module.include_dirs.extend(incdirs)
|