freebsd-ports/games/netpanzer/files/patch-SConstruct
Guido Falsi 93e78ee1ae Update to version 0.8.4 [1]
This update also fixes the build with clang.

Reported by:	Kevin Zheng <kevinz5000@gmail.com> [1]
Approved by:	crees (mentor)
2012-04-25 23:00:28 +00:00

19 lines
724 B
Text

--- SConstruct.orig 2011-12-22 19:32:06.000000000 +0100
+++ SConstruct 2012-04-24 23:49:38.000000000 +0200
@@ -69,7 +69,7 @@
('crossmingwsdlconfig','sets the sdl-config full path for mingw cross compiler', 'sdl-config')
)
-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))
################################################################
@@ -240,6 +240,7 @@
SetupSpawn(env)
else:
env.ParseConfig(env['sdlconfig'] + ' --cflags --libs')
+ env.Append( _LIBFLAGS = [ '-L%%LOCALBASE%%/lib' ] )
env.Append( NPLIBS = [ 'SDL_mixer' ] )
# for crossmingw platform