diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:05:36 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:05:36 -0400 |
commit | c1967e3fda5c28e0eb7180a5f559e214ef3463a0 (patch) | |
tree | e9ccfd6d9318fc8b968148b708464887380de603 /graphics/resynthesizer | |
parent | f539d0d13e83a9b8f79c5074368f17a890a7509b (diff) |
graphics/resynthesizer: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'graphics/resynthesizer')
-rw-r--r-- | graphics/resynthesizer/resynthesizer.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/graphics/resynthesizer/resynthesizer.SlackBuild b/graphics/resynthesizer/resynthesizer.SlackBuild index 5b34109c4e39..2ff0bdba91f8 100644 --- a/graphics/resynthesizer/resynthesizer.SlackBuild +++ b/graphics/resynthesizer/resynthesizer.SlackBuild @@ -24,10 +24,19 @@ PRGNAM=resynthesizer VERSION=${VERSION:-0.16} -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 @@ -42,6 +51,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e |