From 65331254f1de2c8394b7ca9e9d5e7c0e08efae0d Mon Sep 17 00:00:00 2001 From: Larry Hajali Date: Thu, 13 May 2010 00:37:08 +0200 Subject: network/madwifi-tools: Updated for version 0.9.4 --- network/madwifi-tools/madwifi-tools.SlackBuild | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'network/madwifi-tools/madwifi-tools.SlackBuild') 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 +## Maintained by Larry Hajali 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} -- cgit v1.2.3