summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-strategy/boswars/files/boswars-2.4-gentoo.patch')
-rw-r--r--games-strategy/boswars/files/boswars-2.4-gentoo.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/games-strategy/boswars/files/boswars-2.4-gentoo.patch b/games-strategy/boswars/files/boswars-2.4-gentoo.patch
new file mode 100644
index 000000000000..1c7f35da0760
--- /dev/null
+++ b/games-strategy/boswars/files/boswars-2.4-gentoo.patch
@@ -0,0 +1,29 @@
+--- engine/include/stratagus.h.old 2007-08-04 21:54:17.000000000 +0200
++++ engine/include/stratagus.h 2007-08-04 21:55:20.000000000 +0200
+@@ -188,7 +188,7 @@
+ extern char NameLine[];
+
+ #ifndef STRATAGUS_LIB_PATH
+-#define STRATAGUS_LIB_PATH "." /// Where to find the data files
++#define STRATAGUS_LIB_PATH "@GENTOO_DATADIR@" /// Where to find the data files
+ #endif
+
+ #ifndef STRATAGUS_HOME_PATH
+--- SConstruct.orig 2007-08-10 20:00:53.000000000 -0400
++++ SConstruct 2007-08-10 20:11:07.000000000 -0400
+@@ -183,14 +183,8 @@
+ return 0
+
+ lualibfound = 0
+- if conf.CheckFunc('luaopen_base'):
++ if conf.CheckLibWithHeader('lua', 'lualib.h', 'c'):
+ return 1
+- if conf.CheckLibWithHeader('lualib', 'lualib.h', 'c'):
+- lualibfound = 1
+- elif conf.CheckLibWithHeader('lualib50', 'lualib.h', 'c'):
+- lualibfound = 1
+- elif conf.CheckLibWithHeader('lualib5.0', 'lualib.h', 'c'):
+- lualibfound = 1
+ # the lua library should be after lualib
+ env["LIBS"].remove(found)
+ env.Append(LIBS = found)