freebsd-ports/games/netpanzer/files/patch-SConstruct
Guido Falsi 00372c127c - Update netpaanzer to 0.8.7
- Fix build with clang 6
- Convert to PLIST_FILES
- Regenerate patches
2018-01-19 12:25:34 +00:00

19 lines
881 B
Text

--- SConstruct.orig 2016-04-09 13:14:00 UTC
+++ SConstruct
@@ -95,7 +95,7 @@ opts.AddVariables(
('compilerprefix', 'sets the prefix for the cross linux compiler, example: i686-pc-linux-gnu-', ''),
)
-env = Environment(ENV = os.environ, options = opts)
+env = Environment(ENV = os.environ, options = opts, CC = os.environ['CC'], CXX = os.environ['CXX'])
Help(opts.GenerateHelpText(env))
env.Append( CCFLAGS = [ '-DPACKAGE_VERSION=\\"' + NPVERSION + '\\"' ] )
@@ -202,6 +202,7 @@ elif thisplatform == 'win32':
else:
networkenv.ParseConfig(env['sdlconfig'] + ' --cflags --libs')
env.ParseConfig(env['sdlconfig'] + ' --cflags --libs')
+ env.Append( _LIBFLAGS = [ '-L%%LOCALBASE%%/lib' ] )
# note: for some magic reason, now doesn't need to put the full path for
# SDL_mixer when using mingw crosscompilation
env.Append( LIBS = ['SDL_mixer' ] )