summaryrefslogtreecommitdiff
path: root/network/bsflite/bsflite.SlackBuild
diff options
context:
space:
mode:
authorPeter Drauden <pjdraud@ilstu.edu>2010-05-13 00:35:51 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:35:51 +0200
commitb70ca631c5910a6a6994d7cc01c3afa5016af7d2 (patch)
tree81aad882cef0b0b3b6b5e9b02cb560178961f80c /network/bsflite/bsflite.SlackBuild
parenta1523de5b6bb28741a246e76484e022a5ef9e955 (diff)
downloadslackbuilds-b70ca631c5910a6a6994d7cc01c3afa5016af7d2.tar.gz
network/bsflite: Updated for version 0.82
Diffstat (limited to 'network/bsflite/bsflite.SlackBuild')
-rw-r--r--network/bsflite/bsflite.SlackBuild12
1 files changed, 9 insertions, 3 deletions
diff --git a/network/bsflite/bsflite.SlackBuild b/network/bsflite/bsflite.SlackBuild
index bdb36ad5d4..ee79889377 100644
--- a/network/bsflite/bsflite.SlackBuild
+++ b/network/bsflite/bsflite.SlackBuild
@@ -3,13 +3,12 @@
# Slackware build script for bsflite
# Written by Peter Drauden (pjdraud@ilstu.edu)
-set -e
-
PRGNAM=bsflite
VERSION=0.82
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -17,10 +16,17 @@ 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
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
@@ -46,4 +52,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}