diff options
author | Erik Hanson <erik@slackbuilds.org> | 2010-05-21 14:48:46 -0500 |
---|---|---|
committer | erik@slackbuilds.org <erik@slackbuilds.org> | 2010-05-23 23:16:56 -0500 |
commit | ad636befefd27cff7be761a27b0a6a7b580b59ee (patch) | |
tree | 75a17ef77095f2f3c5fdc7a65163af60623dc6ee /games/gnubg/gnubg.SlackBuild | |
parent | 5ce2f052276fbfcad5db32e4d9a43fadef33a988 (diff) | |
download | slackbuilds-ad636befefd27cff7be761a27b0a6a7b580b59ee.tar.gz |
games/gnubg: Updated version, various cleanups.
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 |