aboutsummaryrefslogtreecommitdiff
path: root/games/openttd/openttd.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/openttd/openttd.SlackBuild')
-rw-r--r--games/openttd/openttd.SlackBuild40
1 files changed, 20 insertions, 20 deletions
diff --git a/games/openttd/openttd.SlackBuild b/games/openttd/openttd.SlackBuild
index 15323f40c1a2..d6496e8e5c15 100644
--- a/games/openttd/openttd.SlackBuild
+++ b/games/openttd/openttd.SlackBuild
@@ -1,26 +1,28 @@
#!/bin/sh
-# Slackware build script for OpenTTD
+# Slackware build script for OpenTTD
# Written by Chess Griffin <chess@chessgriffin.com>
-PRGNAM=openttd
-VERSION=0.5.3
-ARCH=${ARCH:-i486}
+PRGNAM=openttd
+VERSION=0.6.3
+ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
-TAG=${TAG:-_SBo}
+TAG=${TAG:-_SBo}
CWD=$(pwd)
-TMP=${TMP:-/tmp/SBo}
+TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
-OUTPUT=${OUTPUT:-/tmp}
+OUTPUT=${OUTPUT:-/tmp}
-DOCS="BUGS COPYING changelog.txt known-bugs.txt readme.txt docs/*"
+DOCS="COPYING changelog.txt known-bugs.txt readme.txt docs/*"
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
fi
set -e # Exit on most errors
@@ -40,18 +42,16 @@ find . \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
-make INSTALL=1 \
- PREFIX=/usr \
- BINARY_DIR=/games \
- DATA_DIR=/share/games/openttd \
- ICON_DIR=/share/pixmaps \
- PERSONAL_DIR=.openttd \
- USE_HOMEDIR=1 \
- WITH_ZLIB=1 \
- UNIX=1 \
- VERBOSE=1
-
-make install INSTALL:=1 DEST_DIR=$PKG
+./configure \
+ --prefix-dir=/usr \
+ --binary-dir=/games \
+ --data-dir=/share/games/openttd \
+ --icon-dir=/share/pixmaps \
+ --personal-dir=.openttd \
+ --install-dir=$PKG
+
+make
+make install DEST_DIR=$PKG
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true