diff options
Diffstat (limited to 'games/gnubg/gnubg.SlackBuild')
-rw-r--r-- | games/gnubg/gnubg.SlackBuild | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/games/gnubg/gnubg.SlackBuild b/games/gnubg/gnubg.SlackBuild index 88d879cb4e..b3f4b5f48a 100644 --- a/games/gnubg/gnubg.SlackBuild +++ b/games/gnubg/gnubg.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh -# + # Slackware build script for GNU Backgammon -# + # Copyright 2009-2010 Erik W. Hanson, Minneapolis, MN, USA # All rights reserved. # @@ -24,7 +24,7 @@ PRGNAM=gnubg VERSION=0.90.0 -SRCVER=20100521 +SRCVER=20100722 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -43,12 +43,16 @@ fi 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" else SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -eu @@ -65,6 +69,7 @@ chmod -R u+w,go+r-w,a-s . ./autogen.sh CFLAGS="$SLKCFLAGS" \ +LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \ ./configure \ --prefix=/usr \ --sysconfdir=/etc \ @@ -79,7 +84,7 @@ make install-strip DESTDIR=$PKG gzip -9 $PKG/usr/man/man?/*.? mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a ABOUT-NLS AUTHORS CODING COPYING ChangeLog INSTALL NEWS README TODO \ +cp -a AUTHORS CODING COPYING ChangeLog INSTALL NEWS README TODO \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |