0c3fb3e2d5
Suggested by and ok jasper@
32 lines
1.4 KiB
Plaintext
32 lines
1.4 KiB
Plaintext
$OpenBSD: patch-SConstruct,v 1.4 2012/04/23 08:57:46 bentley Exp $
|
|
--- SConstruct.orig Tue Dec 5 05:31:42 2006
|
|
+++ SConstruct Fri Apr 20 23:45:24 2012
|
|
@@ -8,7 +8,7 @@ version="0.1.2"
|
|
#######################################
|
|
# OPTIONS
|
|
#######################################
|
|
-opts = Options(ARGUMENTS)
|
|
+opts = Options(args = ARGUMENTS)
|
|
# conditionally build parts of gaia
|
|
#opts.Add(BoolOption('gaia', 'Compile gaia OpenGL client', 1));
|
|
|
|
@@ -39,11 +39,15 @@ if not env.GetOption('clean'):
|
|
print "Compiling for FreeBSD"
|
|
env.Append(CPPPATH = [ '/usr/local/include', '/usr/X11R6/include' ])
|
|
env.Append(LIBPATH = [ '/usr/local/lib', '/usr/X11R6/lib' ])
|
|
- elif sys.platform == 'openbsd':
|
|
+ elif sys.platform.startswith('openbsd'):
|
|
# TODO: confirm that sys.platform == 'openbsd' for OpenBSD (feedback welcome)
|
|
print "Compiling for OpenBSD"
|
|
- env.Append(CPPPATH = [ '/usr/local/include', '/usr/X11R6/include' ])
|
|
- env.Append(LIBPATH = [ '/usr/local/lib', '/usr/X11R6/lib' ])
|
|
+ env.Append(CPPPATH = [ '${LOCALBASE}/include', '${X11BASE}/include' ])
|
|
+ env.Append(LIBPATH = [ '${LOCALBASE}/lib', '${X11BASE}/lib' ])
|
|
+ env.Append(CCFLAGS = [ Split("${CFLAGS}") ])
|
|
+ env.Append(CXXFLAGS = [ Split("${CXXFLAGS}") ])
|
|
+ env['CC'] = "${CC}"
|
|
+ env['CXX'] = "${CXX}"
|
|
elif sys.platform == 'darwin':
|
|
print "Compiling for MacOSX"
|
|
env.Append(CPPPATH = [ '/usr/local/include', '/usr/X11R6/include', '/opt/local/include', '/sw/include' ])
|