ef6eb88bce
ok maintainer
32 lines
1.4 KiB
Plaintext
32 lines
1.4 KiB
Plaintext
$OpenBSD: patch-SConstruct,v 1.2 2008/10/07 04:11:56 brad Exp $
|
|
--- SConstruct.orig Tue Dec 5 07:31:42 2006
|
|
+++ SConstruct Tue Oct 7 00:07:28 2008
|
|
@@ -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!!', '!!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' ])
|