summaryrefslogtreecommitdiffstats
path: root/network/clive/clive.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/clive/clive.SlackBuild')
-rw-r--r--network/clive/clive.SlackBuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/network/clive/clive.SlackBuild b/network/clive/clive.SlackBuild
index 8e3bd7e1d5..ba27d9623d 100644
--- a/network/clive/clive.SlackBuild
+++ b/network/clive/clive.SlackBuild
@@ -36,10 +36,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
@@ -61,9 +64,10 @@ CFLAGS=${SLKCFLAGS} \
CXXFLAGS=${SLKCFLAGS} \
./configure \
--prefix=/usr \
- --libdir=/usr/lib \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
+ --build=$ARCH-slackware-linux \
--mandir=/usr/man
make
@@ -86,4 +90,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
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}