diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 00:59:44 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 00:59:44 -0400 |
commit | 159d1a94af4e5dac9a2071e5fb0ccfbc0d8f6a96 (patch) | |
tree | 543b58dc797b9cc8fa058d95e518fa1b4e6e62d1 /audio | |
parent | 712bbdb279405f2b35698c273ed015f3b2d89df0 (diff) | |
download | slackbuilds-159d1a94af4e5dac9a2071e5fb0ccfbc0d8f6a96.tar.gz |
audio/caps: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'audio')
-rw-r--r-- | audio/caps/caps.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/audio/caps/caps.SlackBuild b/audio/caps/caps.SlackBuild index 58a4aa6860..44158dcbf0 100644 --- a/audio/caps/caps.SlackBuild +++ b/audio/caps/caps.SlackBuild @@ -6,10 +6,19 @@ PRGNAM=caps VERSION=${VERSION:-0.4.4} -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 @@ -24,6 +33,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi FORCE_SLACK_CFLAGS=${FORCE_SLACK_CFLAGS:-no} |