diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-02-05 12:26:57 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-02-05 12:26:57 +0000 |
commit | cb174c2d285f87604bc43b7027efa65db510eec0 (patch) | |
tree | 57ef5d93998fbbdc13659c645352e72375190669 /games-simulation/openttd/files | |
parent | ebc4b7d0a2f22cd4a5f7d656468dd3aa44399c75 (diff) |
take over maintanership of openttd for now, till we stabilise newer dev-libs/icu
Diffstat (limited to 'games-simulation/openttd/files')
-rw-r--r-- | games-simulation/openttd/files/openttd-1.6.0-cflags.patch | 42 | ||||
-rw-r--r-- | games-simulation/openttd/files/openttd.initd | 20 |
2 files changed, 62 insertions, 0 deletions
diff --git a/games-simulation/openttd/files/openttd-1.6.0-cflags.patch b/games-simulation/openttd/files/openttd-1.6.0-cflags.patch new file mode 100644 index 00000000..bb7f768b --- /dev/null +++ b/games-simulation/openttd/files/openttd-1.6.0-cflags.patch @@ -0,0 +1,42 @@ +--- openttd-1.4.4/config.lib ++++ openttd-1.4.4/config.lib +@@ -1450,12 +1450,6 @@ + CFLAGS="-I/gg/os-include -noixemul -fstrict-aliasing -fexpensive-optimizations -mcpu=604 -fno-inline -mstring -mmultiple $CFLAGS" + LDFLAGS="$LDFLAGS -noixemul" + fi +- +- if [ "$enable_profiling" = "0" ]; then +- # -fomit-frame-pointer and -pg do not go well together (gcc errors they are incompatible) +- CFLAGS="-fomit-frame-pointer $CFLAGS" +- fi +- CFLAGS="-O2 $CFLAGS" + else + OBJS_SUBDIR="debug" + +@@ -1466,14 +1460,6 @@ + CFLAGS="$CFLAGS -G0" + fi + fi +- if [ $enable_debug -ge 2 ]; then +- CFLAGS="$CFLAGS -fno-inline" +- fi +- if [ $enable_debug -ge 3 ]; then +- CFLAGS="$CFLAGS -O0" +- else +- CFLAGS="$CFLAGS -O2" +- fi + fi + + if [ $enable_debug -le 2 ]; then +@@ -1498,11 +1484,6 @@ + CFLAGS="$CFLAGS -fno-expensive-optimizations" + fi + +- if [ "$enable_profiling" != "0" ]; then +- CFLAGS="$CFLAGS -pg" +- LDFLAGS="$LDFLAGS -pg" +- fi +- + if [ "$with_threads" = "0" ]; then + CFLAGS="$CFLAGS -DNO_THREADS" + fi diff --git a/games-simulation/openttd/files/openttd.initd b/games-simulation/openttd/files/openttd.initd new file mode 100644 index 00000000..a14cf6d2 --- /dev/null +++ b/games-simulation/openttd/files/openttd.initd @@ -0,0 +1,20 @@ +#!/sbin/openrc-run +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Id$ + +depend() { + need net +} + +start() { + ebegin "Starting OpenTTD dedicated server" + start-stop-daemon --start -q --exec /usr/games/bin/openttd -- -D -f > /dev/null + eend $? +} + +stop() { + ebegin "Stopping OpenTTD dedicated server" + start-stop-daemon --stop -q -n openttd + eend $? +} |