mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
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:
parent
625a8b4f76
commit
6dd18a37a4
2 changed files with 23 additions and 1 deletions
|
@ -27,11 +27,33 @@ VERSION=${VERSION:-0.9.58}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
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)
|
CWD=$(pwd)
|
||||||
TMP=${TMP:-/tmp/SBo}
|
TMP=${TMP:-/tmp/SBo}
|
||||||
PKG=$TMP/package-$PRGNAM
|
PKG=$TMP/package-$PRGNAM
|
||||||
OUTPUT=${OUTPUT:-/tmp}
|
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
|
set -e
|
||||||
|
|
||||||
rm -rf $PKG
|
rm -rf $PKG
|
||||||
|
|
|
@ -2,8 +2,8 @@ PRGNAM="faust"
|
||||||
VERSION="0.9.58"
|
VERSION="0.9.58"
|
||||||
HOMEPAGE="http://faust.grame.fr/"
|
HOMEPAGE="http://faust.grame.fr/"
|
||||||
DOWNLOAD="http://downloads.sourceforge.net/project/faudiostream/faust-0.9.58.zip"
|
DOWNLOAD="http://downloads.sourceforge.net/project/faudiostream/faust-0.9.58.zip"
|
||||||
DOWNLOAD_x86_64=""
|
|
||||||
MD5SUM="1cc6c7a94da6209ed1b345c126219a85"
|
MD5SUM="1cc6c7a94da6209ed1b345c126219a85"
|
||||||
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES=""
|
REQUIRES=""
|
||||||
MAINTAINER="Felix Pfeifer"
|
MAINTAINER="Felix Pfeifer"
|
||||||
|
|
Loading…
Reference in a new issue