From 456abf8065358fbb3900340d5488e97a23a62e1d Mon Sep 17 00:00:00 2001 From: Andre Barboza Date: Thu, 13 May 2010 00:40:23 +0200 Subject: system/fxload: Updated for version 2008_10_13 --- system/fxload/fxload.SlackBuild | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'system/fxload/fxload.SlackBuild') diff --git a/system/fxload/fxload.SlackBuild b/system/fxload/fxload.SlackBuild index 22a085a8d0..0a3db22479 100644 --- a/system/fxload/fxload.SlackBuild +++ b/system/fxload/fxload.SlackBuild @@ -2,9 +2,8 @@ # Slackware build script for fxload -# Copyright 2009 Andre Barboza -# All rights reserved. -# +# Written by Andre Barboza + # Redistribution and use of this script, with or without modification, is # permitted provided that the following conditions are met: # @@ -22,7 +21,6 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# Written by Andre Barboza PRGNAM=fxload VERSION=${VERSION:-2008_10_13} @@ -37,10 +35,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 @@ -58,9 +59,7 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -patch Makefile $CWD/Makefile.patch - -CFLAGS="$SLKCFLAGS" make +RPM_OPT_FLAGS="$SLKCFLAGS" make make install prefix=$PKG ( cd $PKG @@ -84,4 +83,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} -- cgit v1.2.3