summaryrefslogtreecommitdiff
path: root/games/garden/garden.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/garden/garden.SlackBuild')
-rw-r--r--games/garden/garden.SlackBuild18
1 files changed, 10 insertions, 8 deletions
diff --git a/games/garden/garden.SlackBuild b/games/garden/garden.SlackBuild
index 72afd9d19a..b2fcbcf6fa 100644
--- a/games/garden/garden.SlackBuild
+++ b/games/garden/garden.SlackBuild
@@ -43,14 +43,14 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "${ARCH}" == "i486" ];then
- SLKCFLAGS='-march=i486 -mtune=i686'
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
-elif [ "$ARCH" == "i686" ]; then
- SLKCFLAGS="-march=i686 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
-elif [ "${ARCH}" == "x86_64" ];then
- SLKCFLAGS='-fPIC'
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
@@ -59,10 +59,10 @@ fi
set -e
-rm -Rf $PKG
+rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -Rf $PRGNAM
+rm -rf $PRGNAM
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
@@ -72,6 +72,8 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+CFLAGS="$SLKCFLAGS -fgnu89-inline" \
+CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--bindir=/usr/games