aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorTobias Kortkamp <tobik@FreeBSD.org>2018-07-28 08:12:06 +0000
committerTobias Kortkamp <tobik@FreeBSD.org>2018-07-28 08:12:06 +0000
commitf3f2d94e80ac2f5ec9d9e20346469dd4f16975ab (patch)
tree066d579890f2a09f631d9819f0d390a8c885ada4 /games
parentf5fd195104f4de874a6b385221f109a36efdf028 (diff)
downloadports-f3f2d94e80ac2f5ec9d9e20346469dd4f16975ab.tar.gz
ports-f3f2d94e80ac2f5ec9d9e20346469dd4f16975ab.zip
Notes
Diffstat (limited to 'games')
-rw-r--r--games/simutrans/Makefile5
-rw-r--r--games/simutrans/files/patch-gui_loadsave__frame.h20
-rw-r--r--games/simutrans/files/patch-squirrel_sq__extensions.cc27
-rw-r--r--games/simutrans/files/patch-squirrel_squirrel_sqvm.cc24
4 files changed, 53 insertions, 23 deletions
diff --git a/games/simutrans/Makefile b/games/simutrans/Makefile
index d9d397311fa9..0982b33b6fe7 100644
--- a/games/simutrans/Makefile
+++ b/games/simutrans/Makefile
@@ -37,9 +37,12 @@ MAKE_ARGS= BACKEND=mixer_sdl \
FLAGS="-DUSE_C -DREVISION=${SIMUTRANS_REVISION}" \
VERBOSE=1
NO_WRKSUBDIR= yes
-USES= gmake zip
+USES= compiler dos2unix gmake zip
USE_SDL= sdl mixer
+CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
+CXXFLAGS_clang= -Wno-c++11-narrowing
+DOS2UNIX_GLOB= *
DESKTOP_ENTRIES=Simutrans "" "" simutrans "Game;Simulation;" false
PLIST_FILES= bin/simutrans bin/simutrans-bin
PORTDATA= *
diff --git a/games/simutrans/files/patch-gui_loadsave__frame.h b/games/simutrans/files/patch-gui_loadsave__frame.h
index 1f7b753317cd..42bd73456e0c 100644
--- a/games/simutrans/files/patch-gui_loadsave__frame.h
+++ b/games/simutrans/files/patch-gui_loadsave__frame.h
@@ -1,10 +1,10 @@
---- gui/loadsave_frame.h.orig 2017-02-17 12:53:58 UTC
-+++ gui/loadsave_frame.h
-@@ -11,6 +11,7 @@
-
- #include "savegame_frame.h"
- #include "../tpl/stringhashtable_tpl.h"
-+#include <time.h>
- #include <string>
-
- class loadsave_t;
+--- gui/loadsave_frame.h.orig 2017-02-17 12:53:58 UTC
++++ gui/loadsave_frame.h
+@@ -11,6 +11,7 @@
+
+ #include "savegame_frame.h"
+ #include "../tpl/stringhashtable_tpl.h"
++#include <time.h>
+ #include <string>
+
+ class loadsave_t;
diff --git a/games/simutrans/files/patch-squirrel_sq__extensions.cc b/games/simutrans/files/patch-squirrel_sq__extensions.cc
new file mode 100644
index 000000000000..9de20aa70d72
--- /dev/null
+++ b/games/simutrans/files/patch-squirrel_sq__extensions.cc
@@ -0,0 +1,27 @@
+In file included from squirrel/sq_extensions.cc:6:
+In file included from squirrel/../tpl/ptrhashtable_tpl.h:8:
+In file included from squirrel/../tpl/hashtable_tpl.h:4:
+In file included from squirrel/../tpl/slist_tpl.h:11:
+In file included from /usr/include/c++/v1/iterator:417:
+In file included from /usr/include/c++/v1/__functional_base:19:
+/usr/include/c++/v1/utility:488:67: error: expected an identifier or template-id
+ after '::'
+ typename __make_tuple_indices<sizeof...(_Args1)>::type(),
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
+squirrel/squirrel/sqobject.h:131:19: note: expanded from macro 'type'
+#define type(obj) ((obj)._type)
+ ^
+
+--- squirrel/sq_extensions.cc.orig 2018-07-28 07:52:43 UTC
++++ squirrel/sq_extensions.cc
+@@ -1,9 +1,9 @@
+ #include "sq_extensions.h"
+
++#include "../tpl/ptrhashtable_tpl.h"
+ #include "squirrel/sqpcheader.h" // for declarations...
+ #include "squirrel/sqvm.h" // for Raise_Error_vl
+ #include <stdarg.h>
+-#include "../tpl/ptrhashtable_tpl.h"
+
+ // store data associate to vm's here
+ struct my_vm_info_t {
diff --git a/games/simutrans/files/patch-squirrel_squirrel_sqvm.cc b/games/simutrans/files/patch-squirrel_squirrel_sqvm.cc
index 9fcd19f6a280..da22dccbdb9a 100644
--- a/games/simutrans/files/patch-squirrel_squirrel_sqvm.cc
+++ b/games/simutrans/files/patch-squirrel_squirrel_sqvm.cc
@@ -1,12 +1,12 @@
---- squirrel/squirrel/sqvm.cc.orig 2017-02-17 12:54:05 UTC
-+++ squirrel/squirrel/sqvm.cc
-@@ -1,8 +1,8 @@
- /*
- see copyright notice in squirrel.h
- */
--#include "sqpcheader.h"
- #include <math.h>
-+#include "sqpcheader.h"
- #include <stdlib.h>
- #include <limits.h>
- #include "sqopcodes.h"
+--- squirrel/squirrel/sqvm.cc.orig 2017-02-17 12:54:05 UTC
++++ squirrel/squirrel/sqvm.cc
+@@ -1,8 +1,8 @@
+ /*
+ see copyright notice in squirrel.h
+ */
+-#include "sqpcheader.h"
+ #include <math.h>
++#include "sqpcheader.h"
+ #include <stdlib.h>
+ #include <limits.h>
+ #include "sqopcodes.h"