diff options
Diffstat (limited to 'network/madwifi-tools/madwifi-tools.SlackBuild')
-rw-r--r-- | network/madwifi-tools/madwifi-tools.SlackBuild | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/network/madwifi-tools/madwifi-tools.SlackBuild b/network/madwifi-tools/madwifi-tools.SlackBuild index 4866c85150..7d0813ba6e 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} |