diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2010-05-19 22:18:58 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-21 01:40:16 -0500 |
commit | d6a9b320416ef53e66a11635a723472b5c5a630b (patch) | |
tree | 19cb0251bc0d1115d66f377907f82b1f403cbd44 /games/bsnes/bsnes.SlackBuild | |
parent | b18244f79b6720f7c9c1116935c02b0a252eafbd (diff) |
games/bsnes: Miscellaneous cleanups.
Removed pulseaudio from README comments since pa is gone.
Diffstat (limited to 'games/bsnes/bsnes.SlackBuild')
-rw-r--r-- | games/bsnes/bsnes.SlackBuild | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/games/bsnes/bsnes.SlackBuild b/games/bsnes/bsnes.SlackBuild index 4306b15aab1db..dabf64c9bde7c 100644 --- a/games/bsnes/bsnes.SlackBuild +++ b/games/bsnes/bsnes.SlackBuild @@ -7,10 +7,19 @@ PRGNAM=bsnes VERSION=${VERSION:-0.058} SRCVER=${VERSION:2} -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) export ARCH=i486 ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) export ARCH=$( uname -m ) ;; + esac +fi + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -27,6 +36,8 @@ elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" +else + SLKCFLAGS="-O2" fi set -e |