summaryrefslogtreecommitdiffstats
path: root/development/chicken
diff options
context:
space:
mode:
author dsomero2011-03-30 07:16:19 +0200
committer Robby Workman2011-03-31 05:52:10 +0200
commit1dbd40888b90d8210e8a12d8f88d6d3a442ae10b (patch)
tree68fc80e5264554f6a5c8bf538c9e1e839e05b334 /development/chicken
parentb04c8a7ad90f2293d4edbe40dbefa3cf0c7619a9 (diff)
downloadslackbuilds-1dbd40888b90d8210e8a12d8f88d6d3a442ae10b.tar.gz
development/chicken: Don't let chicken use $ARCH as a variable.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'development/chicken')
-rw-r--r--development/chicken/chicken.SlackBuild18
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 \