aboutsummaryrefslogtreecommitdiff
path: root/audio/faust
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
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')
-rw-r--r--audio/faust/faust.SlackBuild22
-rw-r--r--audio/faust/faust.info2
2 files changed, 23 insertions, 1 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
diff --git a/audio/faust/faust.info b/audio/faust/faust.info
index b7b12c9145f90..da3959d11cb2a 100644
--- a/audio/faust/faust.info
+++ b/audio/faust/faust.info
@@ -2,8 +2,8 @@ PRGNAM="faust"
VERSION="0.9.58"
HOMEPAGE="http://faust.grame.fr/"
DOWNLOAD="http://downloads.sourceforge.net/project/faudiostream/faust-0.9.58.zip"
-DOWNLOAD_x86_64=""
MD5SUM="1cc6c7a94da6209ed1b345c126219a85"
+DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Felix Pfeifer"