summaryrefslogtreecommitdiff
path: root/games/monkey-bubble/monkey-bubble.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/monkey-bubble/monkey-bubble.SlackBuild')
-rw-r--r--games/monkey-bubble/monkey-bubble.SlackBuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/games/monkey-bubble/monkey-bubble.SlackBuild b/games/monkey-bubble/monkey-bubble.SlackBuild
index d8943d7aad..dccf40c0ce 100644
--- a/games/monkey-bubble/monkey-bubble.SlackBuild
+++ b/games/monkey-bubble/monkey-bubble.SlackBuild
@@ -15,10 +15,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
set -e
@@ -40,15 +43,16 @@ patch -p1 < $CWD/monkey-bubble-0.4.0-gnome-doc.patch
# This is if you want to enable scrollkeeper.
if [ "${HAVE_RARIAN:-no}" != "yes" ]; then
- USE_RARIAN="disable-scrollkeeper"
+ USE_RARIAN="disable-scrollkeeper"
else
- USE_RARIAN="enable-scrollkeeper"
+ USE_RARIAN="enable-scrollkeeper"
fi
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--${USE_RARIAN} \
--build=$ARCH-slackware-linux
@@ -87,4 +91,4 @@ done
echo "unset GCONF_CONFIG_SOURCE" >> $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}