diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:04:36 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:04:36 -0400 |
commit | f56ef97965ef35faa758789509eeb750a73a4285 (patch) | |
tree | a82a7f3359ce8a9fb7a3a99e6b7a2163c9606578 /games/openttd | |
parent | 4ca46046acad6aab42d2a8219f51d15c16943f72 (diff) | |
download | slackbuilds-f56ef97965ef35faa758789509eeb750a73a4285.tar.gz |
games/openttd: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'games/openttd')
-rw-r--r-- | games/openttd/openttd.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/games/openttd/openttd.SlackBuild b/games/openttd/openttd.SlackBuild index 1697f68425..6239fd825f 100644 --- a/games/openttd/openttd.SlackBuild +++ b/games/openttd/openttd.SlackBuild @@ -24,10 +24,19 @@ PRGNAM=openttd VERSION=${VERSION:-1.0.0} -ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) ARCH=$( uname -m ) ;; + esac +fi + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -49,6 +58,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e # Exit on most errors |