aboutsummaryrefslogtreecommitdiff
path: root/audio/faust/faust.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2017-03-20 23:11:05 -0400
committerDavid Spencer <idlemoor@slackbuilds.org>2017-03-25 13:27:56 +0000
commit6dd18a37a4576aee652c182eb50ce66f9df0e1b9 (patch)
tree3e305cd46abd67e939528565375b83d54d48a41c /audio/faust/faust.SlackBuild
parent625a8b4f76cb9fca061094e5f628325e26e55ac0 (diff)
audio/faust: Add ARCH support to script, fix .info.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'audio/faust/faust.SlackBuild')
-rw-r--r--audio/faust/faust.SlackBuild22
1 files changed, 22 insertions, 0 deletions
diff --git a/audio/faust/faust.SlackBuild b/audio/faust/faust.SlackBuild
index a74e0c8afec45..52f7608e0b761 100644
--- a/audio/faust/faust.SlackBuild
+++ b/audio/faust/faust.SlackBuild
@@ -27,11 +27,33 @@ VERSION=${VERSION:-0.9.58}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
set -e
rm -rf $PKG