diff options
Diffstat (limited to 'games/gnubg/gnubg.SlackBuild')
-rw-r--r-- | games/gnubg/gnubg.SlackBuild | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/games/gnubg/gnubg.SlackBuild b/games/gnubg/gnubg.SlackBuild index cc9a603e43..c7536f953e 100644 --- a/games/gnubg/gnubg.SlackBuild +++ b/games/gnubg/gnubg.SlackBuild @@ -2,7 +2,7 @@ # # Slackware build script for GNU Backgammon # -# Copyright 2009 Erik W. Hanson, Minneapolis, MN, USA +# Copyright 2009-2010 Erik W. Hanson, Minneapolis, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,8 +24,7 @@ PRGNAM=gnubg VERSION=0.90.0 -SRCVER=20091120 -ARCH=${ARCH:-i486} +SRCVER=20100521 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -34,12 +33,22 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) export ARCH=i486 ;; + arm*) export ARCH=arm ;; + *) export ARCH=$( uname -m ) ;; + esac +fi + 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" +else + SLKCFLAGS="-O2" fi set -eu |