diff options
Diffstat (limited to 'office/abook/abook.SlackBuild')
-rw-r--r-- | office/abook/abook.SlackBuild | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/office/abook/abook.SlackBuild b/office/abook/abook.SlackBuild index 84a04aa07d..972d352bbb 100644 --- a/office/abook/abook.SlackBuild +++ b/office/abook/abook.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for abook # Copyright 2006 Martin Lefebvre <dadexter@gmail.com> -# Copyright 2007-2008 Michiel van Wessem, Manchester, United Kingdom +# Copyright 2007-2009 Michiel van Wessem, Manchester, United Kingdom # All rights reserved. # @@ -36,9 +36,14 @@ PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi # Exit on most errors. @@ -62,6 +67,7 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --mandir=/usr/man \ --localstatedir=/var \ @@ -83,4 +89,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} |