summaryrefslogtreecommitdiff
path: root/games/xbill/xbill.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/xbill/xbill.SlackBuild')
-rw-r--r--games/xbill/xbill.SlackBuild9
1 files changed, 7 insertions, 2 deletions
diff --git a/games/xbill/xbill.SlackBuild b/games/xbill/xbill.SlackBuild
index 3994de1e14..e54fc18196 100644
--- a/games/xbill/xbill.SlackBuild
+++ b/games/xbill/xbill.SlackBuild
@@ -27,10 +27,13 @@ FCAPS=${FCAPS:-true}
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 # Exit on most errors
@@ -52,12 +55,14 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--localstatedir=/var/games \
--mandir=/usr/man \
--with-x \
--enable-motif \
--enable-athena \
- --enable-gtk
+ --enable-gtk \
+ --build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
@@ -104,4 +109,4 @@ else
fi
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}