From d782810517438d930d4f9fa65617ab8f21c2feb8 Mon Sep 17 00:00:00 2001 From: Chess Griffin Date: Tue, 11 May 2010 22:23:06 +0200 Subject: games/openttd: Updated for version 0.6.3 --- games/openttd/openttd.SlackBuild | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'games/openttd/openttd.SlackBuild') diff --git a/games/openttd/openttd.SlackBuild b/games/openttd/openttd.SlackBuild index 15323f40c1..d6496e8e5c 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 -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 -- cgit v1.2.3