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>
This commit is contained in:
B. Watson 2017-03-20 23:11:05 -04:00 committed by David Spencer
parent 625a8b4f76
commit 6dd18a37a4
2 changed files with 23 additions and 1 deletions

View file

@ -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

View file

@ -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"