diff options
author | Chess Griffin <chess@chessgriffin.com> | 2010-05-11 22:23:06 +0200 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-05-11 22:23:06 +0200 |
commit | d782810517438d930d4f9fa65617ab8f21c2feb8 (patch) | |
tree | 6e6b9c556fa9d3d636536afa2d5eb8f663166aec /games/openttd/openttd.SlackBuild | |
parent | e717f84ca76ed8cc998fa0fb864c6962b3069463 (diff) |
games/openttd: Updated for version 0.6.3
Diffstat (limited to 'games/openttd/openttd.SlackBuild')
-rw-r--r-- | games/openttd/openttd.SlackBuild | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/games/openttd/openttd.SlackBuild b/games/openttd/openttd.SlackBuild index 15323f40c1a25..d6496e8e5c150 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 |