diff options
-rw-r--r-- | development/chicken/chicken.SlackBuild | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/development/chicken/chicken.SlackBuild b/development/chicken/chicken.SlackBuild index 795ba34fa1..02a153c2ba 100644 --- a/development/chicken/chicken.SlackBuild +++ b/development/chicken/chicken.SlackBuild @@ -4,10 +4,10 @@ # Written by Patrick Pippen (dabittweiler@gmail.com) -PRGNAM=chicken -VERSION=${VERSION:-4.6.0} -BUILD=${BUILD:-1} -TAG=${TAG:-_SBo} +PRGNAM=chicken +VERSION=${VERSION:-4.6.0} +BUILD=${BUILD:-2} +TAG=${TAG:-_SBo} # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then @@ -20,9 +20,9 @@ if [ -z "$ARCH" ]; then fi CWD=$(pwd) -TMP=${TMP:-/tmp/SBo} +TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} +OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" @@ -53,6 +53,12 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# Don't let chicken use $ARCH as a variable. +for f in defaults.make Makefile.linux rules.make + do + sed "s,ARCH,zARCH," -i ${f} + done + make \ C_COMPILER_OPTIMIZATION_OPTIONS="$SLKCFLAGS" \ PLATFORM=linux \ |