summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-board/pouetchess/files/pouetchess-0.2.0-sconstruct-sandbox.patch')
-rw-r--r--games-board/pouetchess/files/pouetchess-0.2.0-sconstruct-sandbox.patch31
1 files changed, 25 insertions, 6 deletions
diff --git a/games-board/pouetchess/files/pouetchess-0.2.0-sconstruct-sandbox.patch b/games-board/pouetchess/files/pouetchess-0.2.0-sconstruct-sandbox.patch
index 99149b7f6a7f..c33c9164787c 100644
--- a/games-board/pouetchess/files/pouetchess-0.2.0-sconstruct-sandbox.patch
+++ b/games-board/pouetchess/files/pouetchess-0.2.0-sconstruct-sandbox.patch
@@ -1,11 +1,30 @@
---- SConstruct 2006-05-27 03:44:34.000000000 +0200
-+++ SConstruct 2006-06-01 13:12:54.000000000 +0200
-@@ -28,6 +28,8 @@
+--- SConstruct
++++ SConstruct
+@@ -22,14 +22,25 @@
+
+
+
+-import os,glob
++import os,glob,SCons.Util
+
+
++# http://dev.gentoo.org/~vapier/scons-blows.txt
# create build environment
-+env = Environment()
-+env.SConsignFile()
env = Environment(tools = ['default', 'pouetChess'], toolpath = ['.'])
- env.AppendUnique(CXXFLAGS = ['-Wall'])
+-env.AppendUnique(CXXFLAGS = ['-Wall'])
++env.SConsignFile()
++
++env['CC'] = os.environ['CC']
++env['CXX'] = os.environ['CXX']
++
++if os.environ.has_key('CFLAGS'):
++ env['CCFLAGS'] = SCons.Util.CLVar(os.environ['CFLAGS'])
++if os.environ.has_key('CXXFLAGS'):
++ env['CXXFLAGS'] = SCons.Util.CLVar(os.environ['CXXFLAGS'])
++if os.environ.has_key('LDFLAGS'):
++ env['LINKFLAGS'] = SCons.Util.CLVar(os.environ['LDFLAGS'])
+ # gather a list of source files
+ SOURCES = glob.glob('src/*.cpp')