openbsd-ports/games/widelands/patches/patch-build_scons-tools_scons_configure_py
simon 283a67980c import widelands
Widelands is an economic and military simulation game.  The map is shown
in parallel perspective with 3-dimensional terrain.  Buildings and units
are animated.  The player controls a tribe.  Land is claimed and held by
military presence and then used to build an economy to support military
expansion and confrontation.  The project is a work in progress where
much remains to be done; computer players and multiplayer are in very
early stages of development.  Some features that have already been
implemented are exploration, fog of war, sound effects, background
music, adjustable simulation speed, a few tutorial campaigns,
translations to several languages, and a map editor.

feedback & ok jasper@
2007-10-01 21:37:28 +00:00

52 lines
2.4 KiB
Plaintext

$OpenBSD: patch-build_scons-tools_scons_configure_py,v 1.1.1.1 2007/10/01 21:37:28 simon Exp $
--- build/scons-tools/scons_configure.py.orig Sat Sep 8 00:53:34 2007
+++ build/scons-tools/scons_configure.py Sun Sep 23 21:19:12 2007
@@ -172,6 +172,8 @@ def do_configure(config_h_file, conf, env):
print "Your compiler does not support __attribute__((format(printf, 2, 3))) which is neccessary for widelands. Please get a decent compiler."
env.Exit(1)
+ env.Append(LIBS=['iconv'])
+
setlocalefound=0
if (conf.CheckFunc('setlocale') or conf.CheckLibWithHeader('', 'locale.h', 'C', 'setlocale("LC_ALL", "C");', autoadd=0)):
setlocalefound=1
@@ -271,23 +273,23 @@ def do_configure(config_h_file, conf, env):
conf.CheckCompilerFlag('-Wcast-qual', env)
conf.CheckCompilerFlag('-Wconversion', env)
conf.CheckCompilerFlag('-Wdisabled-optimization', env)
- conf.CheckCompilerFlag('-Wextra', env)
+ #conf.CheckCompilerFlag('-Wextra', env)
#conf.CheckCompilerFlag('-Wfloat-equal', env)
#conf.CheckCompilerFlag('-Wformat=2', env)
conf.CheckCompilerFlag('-Winline', env)
- conf.CheckCompilerFlag('-Winvalid-pch', env)
+ #conf.CheckCompilerFlag('-Winvalid-pch', env)
conf.CheckCompilerFlag('-Wmissing-format-attribute', env)
- conf.CheckCompilerFlag('-Wmissing-include-dirs', env)
+ #conf.CheckCompilerFlag('-Wmissing-include-dirs', env)
conf.CheckCompilerFlag('-Wmissing-noreturn', env)
conf.CheckCompilerFlag('-Wno-comment', env)
- conf.CheckCompilerFlag('-Wnormalized=nfc', env)
+ #conf.CheckCompilerFlag('-Wnormalized=nfc', env)
#conf.CheckCompilerFlag('-Wold-style-cast', env)
#conf.CheckCompilerFlag('-Wpadded', env)
conf.CheckCompilerFlag('-Wpointer-arith', env)
- conf.CheckCompilerFlag('-Wunsafe-loop-optimizations', env)
+ #conf.CheckCompilerFlag('-Wunsafe-loop-optimizations', env)
conf.CheckCompilerFlag('-Wshadow', env)
conf.CheckCompilerFlag('-Wstack-protector', env)
- conf.CheckCompilerFlag('-Wstrict-aliasing=2', env)
+ #conf.CheckCompilerFlag('-Wstrict-aliasing=2', env)
#conf.CheckCompilerFlag('-Wunreachable-code', env)
conf.CheckCompilerFlag('-Wwrite-strings', env)
@@ -302,7 +304,7 @@ def do_configure(config_h_file, conf, env):
conf.CheckCompilerFlag('-finline-functions', env)
conf.CheckCompilerFlag('-ffast-math', env)
conf.CheckCompilerFlag('-funroll-loops', env)
- conf.CheckCompilerFlag('-O3', env)
+ #conf.CheckCompilerFlag('-O3', env)
else:
conf.CheckCompilerFlag('-O0', env)