Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master games grimoire by Florian Franzmann (e7ae2876b53b694091e36d96bf1eb2c28ddf8bc6)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Florian Franzmann <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master games grimoire by Florian Franzmann (e7ae2876b53b694091e36d96bf1eb2c28ddf8bc6)
  • Date: Sat, 2 Apr 2016 10:59:20 +0000

GIT changes to master games grimoire by Florian Franzmann
<siflfran AT hawo.stw.uni-erlangen.de>:

ChangeLog | 8
games-data/simutrans-pak128-german/BUILD | 1
games-data/simutrans-pak128-german/DEPENDS | 1
games-data/simutrans-pak128-german/DETAILS | 17
+
games-data/simutrans-pak128-german/HISTORY | 3
games-data/simutrans-pak128-german/INSTALL | 2
games-data/simutrans-pak128-german/PRE_BUILD | 3
games-data/simutrans-pak128/BUILD | 1
games-data/simutrans-pak128/DEPENDS | 1
games-data/simutrans-pak128/DETAILS | 16
+
games-data/simutrans-pak128/HISTORY | 3
games-data/simutrans-pak128/INSTALL | 2
games-data/simutrans-pak128/PRE_BUILD | 1
games-data/simutrans-pak64/BUILD | 1
games-data/simutrans-pak64/DEPENDS | 1
games-data/simutrans-pak64/DETAILS | 15
+
games-data/simutrans-pak64/HISTORY | 3
games-data/simutrans-pak64/INSTALL | 2
games-data/simutrans-pak64/PRE_BUILD | 1
games-simulation/simutrans/0001-store-state-in-hidden-directory.patch | 25
++
games-simulation/simutrans/0001-use-game-data-directory.patch | 26
++
games-simulation/simutrans/BUILD | 4
games-simulation/simutrans/DEPENDS | 8
games-simulation/simutrans/DETAILS | 21
++
games-simulation/simutrans/HISTORY | 6
games-simulation/simutrans/INSTALL | 10
+
games-simulation/simutrans/Makefile.patch | 89
++++++++++
games-simulation/simutrans/PRE_BUILD | 26
++
28 files changed, 297 insertions(+)

New commits:
commit e7ae2876b53b694091e36d96bf1eb2c28ddf8bc6
Author: Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
Commit: Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>

games-data/simutrans-pak128-german: new spell, german 128x128 graphics
for simutrans

commit fb8925561776980d4aa6db8d97c968de74d591bd
Author: Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
Commit: Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>

games-data/simutrans-pak128: new spell, 128x128 graphics for simutrans

commit ce23b68e1b93b9e768ae05643fb7c407a4c57fce
Author: Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
Commit: Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>

games-data/simutrans-pak64: new spell, 64x64 graphics for simutrans

commit fb6e7fcd21828491913b8d5a6db5ca6b5d28780b
Author: Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
Commit: Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>

games-simulation/simutrans: new spell, a transportation and economy
simulator

diff --git a/ChangeLog b/ChangeLog
index 6ad55b8..57b49a0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2016-04-02 Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
+ * games-simulation/simutrans: new spell, a transportion and economy
+ simulator
+ * games-data/simutrans-pak64: new spell, 64x64 graphics for simutrans
+ * games-data/simutrans-pak128: new spell, 128x128 graphics for
simutrans
+ * games-data/simutrans-pak128-german: new spell, german 128x128
graphics
+ for simutrans
+
2016-01-02 Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
* games-emulators/fs-uae: new spell, an Amiga emulator

diff --git a/games-data/simutrans-pak128-german/BUILD
b/games-data/simutrans-pak128-german/BUILD
new file mode 100755
index 0000000..27ba77d
--- /dev/null
+++ b/games-data/simutrans-pak128-german/BUILD
@@ -0,0 +1 @@
+true
diff --git a/games-data/simutrans-pak128-german/DEPENDS
b/games-data/simutrans-pak128-german/DEPENDS
new file mode 100755
index 0000000..e4dde42
--- /dev/null
+++ b/games-data/simutrans-pak128-german/DEPENDS
@@ -0,0 +1 @@
+depends simutrans
diff --git a/games-data/simutrans-pak128-german/DETAILS
b/games-data/simutrans-pak128-german/DETAILS
new file mode 100755
index 0000000..814c1b5
--- /dev/null
+++ b/games-data/simutrans-pak128-german/DETAILS
@@ -0,0 +1,17 @@
+ SPELL=simutrans-pak128-german
+ VERSION=0.8.0_120.x
+ SOURCE="PAK128.german_${VERSION}.zip"
+
SOURCE_URL[0]=$SOURCEFORGE_URL/project/simutrans/PAK128.german/PAK128.german_0.8_120.x/${SOURCE}
+
SOURCE_HASH=sha512:0d28055d7d0d4ab5610c81150f7c9243fb833633bb243331aa15457a65d7aafe855f66da33619fdcd1c685380d3baac443d5fe5e338be280769c193aa555a3ac
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/simutrans-pak128-german"
+ WEB_SITE="http://www.simutrans.com";
+ LICENSE[0]=ARTISTIC
+ ENTERED=20160402
+ SHORT="the german transportation system for simutrans"
+cat << EOF
+Brings the German transportation system embedded in typical German towns
+and industries according to the respective topographic region (coasts,
+the Alps, etc.). Trains and lorries are taller than they are in standard
+pak128. Every building and factory has four views and each type of factory
+has different aspects.
+EOF
diff --git a/games-data/simutrans-pak128-german/HISTORY
b/games-data/simutrans-pak128-german/HISTORY
new file mode 100644
index 0000000..c409387
--- /dev/null
+++ b/games-data/simutrans-pak128-german/HISTORY
@@ -0,0 +1,3 @@
+2016-04-02 Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
+ * BUILD, DEPENDS, DETAILS, INSTALL, PRE_BUILD: spell created
+
diff --git a/games-data/simutrans-pak128-german/INSTALL
b/games-data/simutrans-pak128-german/INSTALL
new file mode 100755
index 0000000..369062b
--- /dev/null
+++ b/games-data/simutrans-pak128-german/INSTALL
@@ -0,0 +1,2 @@
+cd $SOURCE_DIRECTORY/simutrans &&
+cp -Rv PAK128.german $INSTALL_ROOT/usr/share/games/simutrans/
diff --git a/games-data/simutrans-pak128-german/PRE_BUILD
b/games-data/simutrans-pak128-german/PRE_BUILD
new file mode 100755
index 0000000..913d67a
--- /dev/null
+++ b/games-data/simutrans-pak128-german/PRE_BUILD
@@ -0,0 +1,3 @@
+mk_source_dir &&
+cd ${SOURCE_DIRECTORY} &&
+unpack_file
diff --git a/games-data/simutrans-pak128/BUILD
b/games-data/simutrans-pak128/BUILD
new file mode 100755
index 0000000..27ba77d
--- /dev/null
+++ b/games-data/simutrans-pak128/BUILD
@@ -0,0 +1 @@
+true
diff --git a/games-data/simutrans-pak128/DEPENDS
b/games-data/simutrans-pak128/DEPENDS
new file mode 100755
index 0000000..e4dde42
--- /dev/null
+++ b/games-data/simutrans-pak128/DEPENDS
@@ -0,0 +1 @@
+depends simutrans
diff --git a/games-data/simutrans-pak128/DETAILS
b/games-data/simutrans-pak128/DETAILS
new file mode 100755
index 0000000..97d2ab6
--- /dev/null
+++ b/games-data/simutrans-pak128/DETAILS
@@ -0,0 +1,16 @@
+ SPELL=simutrans-pak128
+ VERSION=2.6--ST120
+ SOURCE="pak128-${VERSION}.zip"
+
SOURCE_URL[0]=$SOURCEFORGE_URL/project/simutrans/pak128/pak128%20for%20ST%20120%20%282.6%2C%20completed%20elevated%20tracks%29/${SOURCE}
+
SOURCE_HASH=sha512:a642217a5213717ae710f8d42331ae704ec45027a71052b9cd09d137a96aaf4bdf40b13e4dc1183a69e782fcc943ca0a8ad43c0f0c04db106949e7d003a503b4
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/pak128"
+ WEB_SITE="http://www.simutrans.com";
+ LICENSE[0]=ARTISTIC
+ ENTERED=20160402
+ SHORT="highly detailed graphics for simutrans"
+cat << EOF
+When Simutrans could only support 64px size graphics, pak128 already started.
+First pak to feature a complex economy and have a very wide variety of
objects.
+It contains roughly 7 times more graphic data than pak64 and thus requires
+by far the largest amount of RAM and processing power of all Simutrans sets.
+EOF
diff --git a/games-data/simutrans-pak128/HISTORY
b/games-data/simutrans-pak128/HISTORY
new file mode 100644
index 0000000..c409387
--- /dev/null
+++ b/games-data/simutrans-pak128/HISTORY
@@ -0,0 +1,3 @@
+2016-04-02 Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
+ * BUILD, DEPENDS, DETAILS, INSTALL, PRE_BUILD: spell created
+
diff --git a/games-data/simutrans-pak128/INSTALL
b/games-data/simutrans-pak128/INSTALL
new file mode 100755
index 0000000..4bb0f48
--- /dev/null
+++ b/games-data/simutrans-pak128/INSTALL
@@ -0,0 +1,2 @@
+cd $INSTALL_ROOT/usr/share/games/simutrans &&
+unpack_file
diff --git a/games-data/simutrans-pak128/PRE_BUILD
b/games-data/simutrans-pak128/PRE_BUILD
new file mode 100755
index 0000000..27ba77d
--- /dev/null
+++ b/games-data/simutrans-pak128/PRE_BUILD
@@ -0,0 +1 @@
+true
diff --git a/games-data/simutrans-pak64/BUILD
b/games-data/simutrans-pak64/BUILD
new file mode 100755
index 0000000..27ba77d
--- /dev/null
+++ b/games-data/simutrans-pak64/BUILD
@@ -0,0 +1 @@
+true
diff --git a/games-data/simutrans-pak64/DEPENDS
b/games-data/simutrans-pak64/DEPENDS
new file mode 100755
index 0000000..e4dde42
--- /dev/null
+++ b/games-data/simutrans-pak64/DEPENDS
@@ -0,0 +1 @@
+depends simutrans
diff --git a/games-data/simutrans-pak64/DETAILS
b/games-data/simutrans-pak64/DETAILS
new file mode 100755
index 0000000..5b9b246
--- /dev/null
+++ b/games-data/simutrans-pak64/DETAILS
@@ -0,0 +1,15 @@
+ SPELL=simutrans-pak64
+ VERSION=120.1.2
+ XVERSION=$(echo $VERSION | tr '.' '-')
+ SOURCE="simupak64-$XVERSION.zip"
+ SOURCE_URL[0]=$SOURCEFORGE_URL/project/simutrans/pak64/$(echo
$XVERSION|cut -f1,2 -d'-')/${SOURCE}
+
SOURCE_HASH=sha512:ddc75ad1cafa23d9a7387dc38b14de7414ea7c8bb7caa2afde6d8cdf9c3f5251719966b2274c5bc4ecc9915ec764d517e24b79d5ef199904e3d9185214cba129
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/simutrans"
+ WEB_SITE="http://www.simutrans.com";
+ LICENSE[0]=ARTISTIC
+ ENTERED=20160402
+ SHORT="the evolution of the original Simutrans pakset"
+cat << EOF
+Pak64 is the evolution of the original Simutrans pakset, which now we call
+pak.Classic. Many artists contributed to this pakset since the 8 bit age.
+EOF
diff --git a/games-data/simutrans-pak64/HISTORY
b/games-data/simutrans-pak64/HISTORY
new file mode 100644
index 0000000..c409387
--- /dev/null
+++ b/games-data/simutrans-pak64/HISTORY
@@ -0,0 +1,3 @@
+2016-04-02 Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
+ * BUILD, DEPENDS, DETAILS, INSTALL, PRE_BUILD: spell created
+
diff --git a/games-data/simutrans-pak64/INSTALL
b/games-data/simutrans-pak64/INSTALL
new file mode 100755
index 0000000..4bb0f48
--- /dev/null
+++ b/games-data/simutrans-pak64/INSTALL
@@ -0,0 +1,2 @@
+cd $INSTALL_ROOT/usr/share/games/simutrans &&
+unpack_file
diff --git a/games-data/simutrans-pak64/PRE_BUILD
b/games-data/simutrans-pak64/PRE_BUILD
new file mode 100755
index 0000000..27ba77d
--- /dev/null
+++ b/games-data/simutrans-pak64/PRE_BUILD
@@ -0,0 +1 @@
+true
diff --git
a/games-simulation/simutrans/0001-store-state-in-hidden-directory.patch
b/games-simulation/simutrans/0001-store-state-in-hidden-directory.patch
new file mode 100644
index 0000000..8614856
--- /dev/null
+++ b/games-simulation/simutrans/0001-store-state-in-hidden-directory.patch
@@ -0,0 +1,25 @@
+From fdeafa256f4631e0f87ca08611498512dedad292 Mon Sep 17 00:00:00 2001
+From: Florian Franzmann <siflfran AT hawo.net>
+Date: Sat, 2 Apr 2016 00:10:21 +0200
+Subject: [PATCH] store state in hidden directory
+
+---
+ simsys.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/simsys.cc b/simsys.cc
+index 7c9975c..e81f56b 100644
+--- a/simsys.cc
++++ b/simsys.cc
+@@ -168,7 +168,7 @@ char const* dr_query_homedir()
+ find_directory(B_USER_DIRECTORY, &userDir);
+ sprintf(buffer, "%s/simutrans", userDir.Path());
+ #else
+- sprintf(buffer, "%s/simutrans", getenv("HOME"));
++ sprintf(buffer, "%s/.simutrans", getenv("HOME"));
+ #endif
+
+ dr_mkdir(buffer);
+--
+2.8.0
+
diff --git a/games-simulation/simutrans/0001-use-game-data-directory.patch
b/games-simulation/simutrans/0001-use-game-data-directory.patch
new file mode 100644
index 0000000..b6d1d08
--- /dev/null
+++ b/games-simulation/simutrans/0001-use-game-data-directory.patch
@@ -0,0 +1,26 @@
+From c46fa9b8998366d342fbcb55e9b6ddc2fd28fb0e Mon Sep 17 00:00:00 2001
+From: Florian Franzmann <siflfran AT hawo.net>
+Date: Fri, 1 Apr 2016 23:26:48 +0200
+Subject: [PATCH] use game data directory
+
+---
+ simmain.cc | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/simmain.cc b/simmain.cc
+index 2c21a04..5081fa9 100644
+--- a/simmain.cc
++++ b/simmain.cc
+@@ -486,8 +486,7 @@ int simu_main(int argc, char** argv)
+ strcat( env_t::program_dir, path_sep );
+ }
+ else {
+- strcpy( env_t::program_dir, argv[0] );
+- *(strrchr( env_t::program_dir, path_sep[0] )+1) = 0;
++ strcpy( env_t::program_dir, "/usr/share/games/simutrans/" );
+
+ #ifdef __APPLE__
+ // change working directory from binary dir to bundle dir
+--
+2.8.0
+
diff --git a/games-simulation/simutrans/BUILD
b/games-simulation/simutrans/BUILD
new file mode 100755
index 0000000..dada42e
--- /dev/null
+++ b/games-simulation/simutrans/BUILD
@@ -0,0 +1,4 @@
+CFLAGS="$(echo $CFLAGS | sed -e 's:-O3:-Os:')" \
+ CXXFLAGS="$(echo $CXXFLAGS | sed -e 's:-O3:-Os:')" \
+ default_build &&
+make -C nettools
diff --git a/games-simulation/simutrans/DEPENDS
b/games-simulation/simutrans/DEPENDS
new file mode 100755
index 0000000..02d59ad
--- /dev/null
+++ b/games-simulation/simutrans/DEPENDS
@@ -0,0 +1,8 @@
+depends sdl &&
+depends sdl_mixer &&
+depends sdl_sound &&
+depends zlib &&
+depends bzip2 &&
+depends libpng &&
+depends unzip &&
+depends -sub CXX gcc
diff --git a/games-simulation/simutrans/DETAILS
b/games-simulation/simutrans/DETAILS
new file mode 100755
index 0000000..8c8957e
--- /dev/null
+++ b/games-simulation/simutrans/DETAILS
@@ -0,0 +1,21 @@
+ SPELL=simutrans
+ VERSION=120.1.3
+ XVERSION=$(echo $VERSION | tr '.' '-')
+ SOURCE="${SPELL}-src-$XVERSION.zip"
+
SOURCE_URL[0]=$SOURCEFORGE_URL/project/${SPELL}/${SPELL}/$XVERSION/${SOURCE}
+
SOURCE_HASH=sha512:ae31dda7bdbd057aaf9c40914eb7ec0c60b21d2790d1ca12aa8db698cd112043a291934f6f460b1d5a8a1984b7defb4a0c4bc9839c81c674834062cc1e49c8bd
+ SOURCE2=simutrans-langpack-20160402.tar.xz
+ SOURCE2_URL[0]=http://smgl.bandrate.org/$SOURCE2
+
SOURCE2_HASH=sha512:154ec3c19b2731e7475c6069e5a5b572452c174015d9e4adf5a9324b3075dd65687e51c0b6d6a131d718d07e5b7356282a208b98f1b3b6d0ef8fa0fc2d1c28d3
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/$SPELL-$VERSION"
+ WEB_SITE="http://www.simutrans.com";
+ LICENSE[0]=ARTISTIC
+ ENTERED=20160401
+ SHORT="a free and open-source transportation simulator"
+cat << EOF
+Simutrans is a freeware and open-source transportation simulator. Your
+goal is to establish a successful transport company. Transport passengers,
+mail and goods by rail, road, ship, and even air. Interconnect districts,
+cities, public buildings, industries and tourist attractions by building a
+transport network you always dreamed of.
+EOF
diff --git a/games-simulation/simutrans/HISTORY
b/games-simulation/simutrans/HISTORY
new file mode 100644
index 0000000..89f3779
--- /dev/null
+++ b/games-simulation/simutrans/HISTORY
@@ -0,0 +1,6 @@
+2016-04-01 Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
+ * BUILD, DEPENDS, DETAILS, INSTALL: spell created
+ * 0001-store-state-in-hidden-directory.patch,
+ 0001-use-game-data-directory.patch, BUILD, DEPENDS, DETAILS,
INSTALL,
+ Makefile.patch, PRE_BUILD: spell created
+
diff --git a/games-simulation/simutrans/INSTALL
b/games-simulation/simutrans/INSTALL
new file mode 100755
index 0000000..6b700a7
--- /dev/null
+++ b/games-simulation/simutrans/INSTALL
@@ -0,0 +1,10 @@
+local SHARE_DIR BIN_DIR &&
+SHARE_DIR="$INSTALL_ROOT/usr/share/games/simutrans" &&
+BIN_DIR="$INSTALL_ROOT/usr/games" &&
+
+install -m755 -o root -g games sim ${BIN_DIR}/simutrans &&
+install -m755 -o root -g games nettools/nettool \
+ ${BIN_DIR}/simutrans-nettool &&
+
+cd $SOURCE_DIRECTORY/simutrans &&
+cp -Rv * $SHARE_DIR/
diff --git a/games-simulation/simutrans/Makefile.patch
b/games-simulation/simutrans/Makefile.patch
new file mode 100644
index 0000000..d1ff41f
--- /dev/null
+++ b/games-simulation/simutrans/Makefile.patch
@@ -0,0 +1,89 @@
+--- Makefile.orig
++++ Makefile
+@@ -81,8 +81,6 @@
+ ifeq ($(findstring $(OSTYPE), amiga haiku mac),)
+ CFLAGS += -minline-all-stringops
+ endif
+-else
+- CFLAGS += -O
+ endif
+
+ ifdef DEBUG
+@@ -101,6 +99,7 @@
+ endif
+ else
+ CFLAGS += -DNDEBUG
++ CXXFLAGS += -DNDEBUG
+ endif
+
+ ifneq ($(PROFILE),)
+@@ -114,6 +113,7 @@
+ ifneq ($(MULTI_THREAD),)
+ ifeq ($(shell expr $(MULTI_THREAD) \>= 1), 1)
+ CFLAGS += -DMULTI_THREAD
++ CXXFLAGS += -DMULTI_THREAD
+ ifeq ($(OSTYPE),mingw)
+ #use lpthreadGC2d for debug alternatively
+ LDFLAGS += -lpthreadGC2
+@@ -132,11 +132,13 @@
+ endif
+ ifneq ($(REV),)
+ CFLAGS += -DREVISION="$(REV)"
++ CXXFLAGS += -DREVISION="$(REV)"
+ endif
+ endif
+ endif
+
+ CFLAGS += -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align $(FLAGS)
++CXXFLAGS += -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align $(FLAGS)
+ CCFLAGS += -Wstrict-prototypes
+
+
+@@ -492,6 +494,7 @@
+ SDL_LDFLAGS := $(shell $(SDL_CONFIG) --libs)
+ endif
+ CFLAGS += $(SDL_CFLAGS)
++ CXXFLAGS += $(SDL_CFLAGS)
+ LIBS += $(SDL_LDFLAGS)
+ endif
+
+@@ -523,6 +526,7 @@
+ SDL_LDFLAGS := $(shell $(SDL2_CONFIG) --libs)
+ endif
+ CFLAGS += $(SDL_CFLAGS)
++ CXXFLAGS += $(SDL_CFLAGS)
+ LIBS += $(SDL_LDFLAGS)
+ endif
+
+@@ -538,6 +542,7 @@
+ SDL_LDFLAGS := $(shell $(SDL_CONFIG) --libs)
+ endif
+ CFLAGS += $(SDL_CFLAGS)
++ CXXFLAGS += $(SDL_CFLAGS)
+ LIBS += $(SDL_LDFLAGS) -lSDL_mixer
+ endif
+
+@@ -564,6 +569,7 @@
+ SDL_LDFLAGS := $(shell $(SDL_CONFIG) --libs)
+ endif
+ CFLAGS += $(SDL_CFLAGS)
++ CXXFLAGS += $(SDL_CFLAGS)
+ LIBS += $(SDL_LDFLAGS) -lglew32
+ ifeq ($(OSTYPE),mingw)
+ LIBS += -lopengl32
+@@ -579,6 +585,7 @@
+ endif
+
+ CFLAGS += -DCOLOUR_DEPTH=$(COLOUR_DEPTH)
++CXXFLAGS += -DCOLOUR_DEPTH=$(COLOUR_DEPTH)
+
+ ifneq ($(findstring $(OSTYPE), cygwin mingw),)
+ SOURCES += simres.rc
+@@ -586,7 +593,6 @@
+ endif
+
+ CCFLAGS += $(CFLAGS)
+-CXXFLAGS += $(CFLAGS)
+
+ BUILDDIR ?= build/$(CFG)
+ PROGDIR ?= $(BUILDDIR)
diff --git a/games-simulation/simutrans/PRE_BUILD
b/games-simulation/simutrans/PRE_BUILD
new file mode 100755
index 0000000..a51994c
--- /dev/null
+++ b/games-simulation/simutrans/PRE_BUILD
@@ -0,0 +1,26 @@
+mk_source_dir &&
+cd $SOURCE_DIRECTORY &&
+unpack_file &&
+
+patch -Np0 < "$SPELL_DIRECTORY/Makefile.patch" &&
+patch -Np1 < "$SPELL_DIRECTORY/0001-use-game-data-directory.patch" &&
+patch -Np1 < "$SPELL_DIRECTORY/0001-store-state-in-hidden-directory.patch" &&
+
+echo "BACKEND=sdl
+COLOR_DEPTH=16
+OSTYPE=linux
+VERBOSE=1
+" >> config.default.in &&
+
+rm -f $SOURCE_DIRECTORY/simutrans/*.txt &&
+rm -f $SOURCE_DIRECTORY/simutrans/simutrans &&
+
+cd $SOURCE_DIRECTORY/simutrans &&
+unpack_file 2 &&
+rm -rf text/* &&
+mv simutrans-langpack-20160402/* text/ &&
+rmdir simutrans-langpack-20160402 &&
+
+cd $SOURCE_DIRECTORY &&
+mv configure.sh configure &&
+chmod +x configure



  • [SM-Commit] GIT changes to master games grimoire by Florian Franzmann (e7ae2876b53b694091e36d96bf1eb2c28ddf8bc6), Florian Franzmann, 04/02/2016

Archive powered by MHonArc 2.6.24.

Top of Page