aboutsummaryrefslogtreecommitdiff
path: root/network/madwifi-tools/madwifi-tools.SlackBuild
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2010-05-13 00:37:08 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:37:08 +0200
commit65331254f1de2c8394b7ca9e9d5e7c0e08efae0d (patch)
tree47d4407d5166e3179de4c27960bd5ca06c642b94 /network/madwifi-tools/madwifi-tools.SlackBuild
parent92dbd5ad20f95de419c78f31c0979766cd821f0e (diff)
network/madwifi-tools: Updated for version 0.9.4
Diffstat (limited to 'network/madwifi-tools/madwifi-tools.SlackBuild')
-rw-r--r--network/madwifi-tools/madwifi-tools.SlackBuild14
1 files changed, 11 insertions, 3 deletions
diff --git a/network/madwifi-tools/madwifi-tools.SlackBuild b/network/madwifi-tools/madwifi-tools.SlackBuild
index 4866c85150c33..7d0813ba6e087 100644
--- a/network/madwifi-tools/madwifi-tools.SlackBuild
+++ b/network/madwifi-tools/madwifi-tools.SlackBuild
@@ -3,7 +3,7 @@
## Slackware build script for madwifi-tools
## Written by hollywoodb (hollywoodb@fastmail.fm)
-## Modified by Larry Hajali <larryhaja[at]gmail[dot]com>
+## Maintained by Larry Hajali <larryhaja[at]gmail[dot]com> 9/25/09
PRGNAM=madwifi
VERSION=0.9.4
@@ -18,6 +18,14 @@ TMP=${TMP:-/tmp/SBo}
PKG=${PKG:-$TMP/package-$PKG_NAME}
OUTPUT=${OUTPUT:-/tmp}
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+fi
+
set -e
rm -rf $PKG
@@ -30,7 +38,7 @@ chown -R root:root .
chmod -R u+w,go+r-w,a-s .
sed -i 's|/usr/local|/usr|g' tools/Makefile
-make tools
+make CFLAGS="$SLKCFLAGS" tools
make install-tools DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | \
@@ -48,4 +56,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n -p $OUTPUT/$PKG_NAME-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n -p $OUTPUT/$PKG_NAME-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}