diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2010-05-19 16:35:59 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-21 01:29:22 -0500 |
commit | ea40c4195435b74a71d553242ac399c44339c6b2 (patch) | |
tree | 0b59e8330efd571d1680a0eff4e366ab6b68e39d /academic/engauge/engauge.SlackBuild | |
parent | 13cdf3311f96ce059f14b1db0f47b8793295df13 (diff) |
academic/engauge: Miscellaneous cleanups.
Diffstat (limited to 'academic/engauge/engauge.SlackBuild')
-rw-r--r-- | academic/engauge/engauge.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/academic/engauge/engauge.SlackBuild b/academic/engauge/engauge.SlackBuild index 768ba5a8c1f15..8baf1f840a5b5 100644 --- a/academic/engauge/engauge.SlackBuild +++ b/academic/engauge/engauge.SlackBuild @@ -5,10 +5,19 @@ PRGNAM=engauge VERSION=4.1 -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 @@ -23,6 +32,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e |