diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-board/pouetchess/files/pouetchess-0.2.0-sconstruct-sandbox.patch |
reinit the tree, so we can have metadata
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.patch | 29 |
1 files changed, 29 insertions, 0 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 new file mode 100644 index 000000000000..8378a1d7223d --- /dev/null +++ b/games-board/pouetchess/files/pouetchess-0.2.0-sconstruct-sandbox.patch @@ -0,0 +1,29 @@ +--- a/SConstruct ++++ b/SConstruct +@@ -22,14 +22,24 @@ + + + +-import os,glob ++import os,glob,SCons.Util + + ++# https://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['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') |