summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
Diffstat (limited to 'audio')
-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 a74e0c8afe..52f7608e0b 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 b7b12c9145..da3959d11c 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"