summaryrefslogtreecommitdiff
path: root/games/openttd/patches
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2012-04-28 06:56:42 +0000
committeradam <adam@pkgsrc.org>2012-04-28 06:56:42 +0000
commit839c2b436baaf6b6f441b606aa645515027eef3f (patch)
tree7c3f6bfdfde525f0e1ca37d4cee0be7b1aebdf6b /games/openttd/patches
parentf8cfae2d2986048f3900e5b45137588b0cee19d8 (diff)
downloadpkgsrc-839c2b436baaf6b6f441b606aa645515027eef3f.tar.gz
Changes 1.2.0:
* Fix: When starting GS or AI, always use the settings of the game, not the new-game settings * Fix: Provide translated comments in the desktop file without language name postfix * Fix: Cloning orders of aircraft with limited range failed
Diffstat (limited to 'games/openttd/patches')
-rw-r--r--games/openttd/patches/patch-Makefile.setting.in23
-rw-r--r--games/openttd/patches/patch-Makefile.src.in20
-rw-r--r--games/openttd/patches/patch-aa39
-rw-r--r--games/openttd/patches/patch-ab4
-rw-r--r--games/openttd/patches/patch-src_string.cpp16
5 files changed, 87 insertions, 15 deletions
diff --git a/games/openttd/patches/patch-Makefile.setting.in b/games/openttd/patches/patch-Makefile.setting.in
new file mode 100644
index 00000000000..beeecb24c16
--- /dev/null
+++ b/games/openttd/patches/patch-Makefile.setting.in
@@ -0,0 +1,23 @@
+$NetBSD: patch-Makefile.setting.in,v 1.1 2012/04/28 06:56:43 adam Exp $
+
+--- Makefile.setting.in.orig 2012-04-15 11:55:05.000000000 +0000
++++ Makefile.setting.in
+@@ -9,13 +9,16 @@ SETTINGSGEN = !!SETTINGSGEN!!
+ ENDIAN_CHECK = !!ENDIAN_CHECK!!
+ SRC_DIR = !!SRC_DIR!!
+ CXX_BUILD = !!CXX_BUILD!!
+-CFLAGS_BUILD = !!CFLAGS_BUILD!!
+-LDFLAGS_BUILD = !!LDFLAGS_BUILD!!
++CFLAGS_BUILD = !!CFLAGS!! !!CFLAGS_BUILD!!
++LDFLAGS_BUILD = !!LDFLAGS!! !!LDFLAGS_BUILD!! !!LIBS!!
+ STAGE = !!STAGE!!
+ SETTING_OBJS_DIR = !!SETTING_OBJS_DIR!!
+
+ ENDIAN_TARGETS := endian_host.h endian_target.h $(ENDIAN_CHECK)
+
++# Make sure endian_host.h is reachable as if it was in the src/ dir
++CFLAGS_BUILD += -I $(SETTING_OBJS_DIR)
++
+ # Check if we want to show what we are doing
+ ifdef VERBOSE
+ Q =
diff --git a/games/openttd/patches/patch-Makefile.src.in b/games/openttd/patches/patch-Makefile.src.in
new file mode 100644
index 00000000000..65862ecb865
--- /dev/null
+++ b/games/openttd/patches/patch-Makefile.src.in
@@ -0,0 +1,20 @@
+$NetBSD: patch-Makefile.src.in,v 1.1 2012/04/28 06:56:43 adam Exp $
+
+--- Makefile.src.in.orig 2012-04-27 16:50:24.000000000 +0000
++++ Makefile.src.in
+@@ -12,12 +12,12 @@ CXX_BUILD = !!CXX_BUILD!!
+ WINDRES = !!WINDRES!!
+ STRIP = !!STRIP!!
+ CFLAGS = !!CFLAGS!!
+-CFLAGS_BUILD = !!CFLAGS_BUILD!!
++CFLAGS_BUILD = !!CFLAGS!! !!CFLAGS_BUILD!!
+ CXXFLAGS = !!CXXFLAGS!!
+-CXXFLAGS_BUILD = !!CXXFLAGS_BUILD!!
++CXXFLAGS_BUILD = !!CXXFLAGS!! !!CXXFLAGS_BUILD!!
+ LIBS = !!LIBS!!
+ LDFLAGS = !!LDFLAGS!!
+-LDFLAGS_BUILD = !!LDFLAGS_BUILD!!
++LDFLAGS_BUILD = !!LDFLAGS!! !!LDFLAGS_BUILD!! !!LIBS!!
+ ROOT_DIR = !!ROOT_DIR!!
+ BIN_DIR = !!BIN_DIR!!
+ LANG_DIR = !!LANG_DIR!!
diff --git a/games/openttd/patches/patch-aa b/games/openttd/patches/patch-aa
index 5a22289373d..593a69223cf 100644
--- a/games/openttd/patches/patch-aa
+++ b/games/openttd/patches/patch-aa
@@ -1,22 +1,35 @@
-$NetBSD: patch-aa,v 1.9 2010/12/08 17:47:50 adam Exp $
+$NetBSD: patch-aa,v 1.10 2012/04/28 06:56:43 adam Exp $
---- config.lib.orig 2010-11-20 20:25:53.000000000 +0000
+Compile 'strip' test with CFLAGS, so -isysroot can be passed on OSX.
+Correct library detection on NetBSD.
+Fix version checking of ICU 49 and above.
+
+--- config.lib.orig 2012-04-15 11:55:05.000000000 +0000
+++ config.lib
-@@ -1241,7 +1241,7 @@ make_cflags_and_ldflags() {
- OBJS_SUBDIR="release"
- if [ "$os" = "OSX" ]; then
- # these compilerflags makes the app run as fast as possible without making the app unstable. It works on G3 or newer
-- CFLAGS="-O3 -funroll-loops -fsched-interblock -falign-loops=16 -falign-jumps=16 -falign-functions=16 -falign-jumps-max-skip=15 -falign-loops-max-skip=15 -mdynamic-no-pic $CFLAGS"
-+ CFLAGS="-mdynamic-no-pic $CFLAGS"
- else
- if [ "$os" = "MORPHOS" ]; then
- CFLAGS="-I/gg/os-include -noixemul -fstrict-aliasing -fexpensive-optimizations -mcpu=604 -fno-inline -mstring -mmultiple $CFLAGS"
-@@ -2304,7 +2304,7 @@ detect_library() {
+@@ -2001,7 +2001,7 @@ check_strip() {
+ elif [ "$os" = "OSX" ]; then
+ # Most targets have -V in strip, to see if they exists... OSX doesn't.. so execute something
+ echo "int main(int argc, char *argv[]) { }" > strip.test.c
+- $cxx_host strip.test.c -o strip.test
++ $cc_host $CFLAGS strip.test.c -o strip.test
+ check_compiler "host strip" "strip" "$host" "$strip" "$STRIP" "strip" "strip" "3" "strip.test"
+ rm -f strip.test.c strip.test
+ else
+@@ -2533,7 +2533,7 @@ detect_library() {
if [ -z "$res" ]; then
- log 2 " trying /usr/local/include/$4$5... no"
+ log 2 " trying /opt/local/include/$4$5... no"
fi
- if [ -z "$res" ] && [ "$os" = "NETBSD" ]; then
+ if [ -z "$res" ]; then
eval "$2=`ls -1 /usr/pkg/include/$4*.h 2>/dev/null | egrep \"\/$5\$\"`"
eval "res=\$$2"
if [ -z "$res" ]; then
+@@ -2864,7 +2864,7 @@ detect_icu() {
+
+ version=`$icu_config --version 2>/dev/null`
+ ret=$?
+- shortversion=`echo $version | cut -c 1,3`
++ shortversion=`echo $version | cut -c 1,2`
+ log 2 "executing $icu_config --version"
+ log 2 " returned $version"
+ log 2 " exit code $ret"
diff --git a/games/openttd/patches/patch-ab b/games/openttd/patches/patch-ab
index eea31faa707..3e4c235ff6c 100644
--- a/games/openttd/patches/patch-ab
+++ b/games/openttd/patches/patch-ab
@@ -1,4 +1,4 @@
-$NetBSD: patch-ab,v 1.6 2010/12/08 17:47:50 adam Exp $
+$NetBSD: patch-ab,v 1.7 2012/04/28 06:56:43 adam Exp $
--- Makefile.lang.in.orig 2010-02-05 16:20:04.000000000 +0000
+++ Makefile.lang.in
@@ -9,7 +9,7 @@ $NetBSD: patch-ab,v 1.6 2010/12/08 17:47:50 adam Exp $
-CFLAGS_BUILD = !!CFLAGS_BUILD!!
-LDFLAGS_BUILD = !!LDFLAGS_BUILD!!
+CFLAGS_BUILD = !!CFLAGS!! !!CFLAGS_BUILD!!
-+LDFLAGS_BUILD = !!LDFLAGS!! !!LDFLAGS_BUILD!!
++LDFLAGS_BUILD = !!LDFLAGS!! !!LDFLAGS_BUILD!! !!LIBS!!
STRGEN_FLAGS = !!STRGEN_FLAGS!!
STAGE = !!STAGE!!
LANG_SUPPRESS = !!LANG_SUPPRESS!!
diff --git a/games/openttd/patches/patch-src_string.cpp b/games/openttd/patches/patch-src_string.cpp
new file mode 100644
index 00000000000..dc3d2f3055b
--- /dev/null
+++ b/games/openttd/patches/patch-src_string.cpp
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_string.cpp,v 1.1 2012/04/28 06:56:43 adam Exp $
+
+Define Collator when building strgen.
+
+--- src/string.cpp.orig 2012-04-27 16:01:34.000000000 +0000
++++ src/string.cpp
+@@ -29,6 +29,9 @@
+ #include <unicode/ustring.h>
+ #include "language.h"
+ #include "gfx_func.h"
++#if defined(STRGEN) || defined(SETTINGSGEN)
++Collator *_current_collator = NULL;
++#endif
+ #endif /* WITH_ICU */
+
+ /**