diff options
Diffstat (limited to 'games/gnubg/gnubg.SlackBuild')
-rw-r--r-- | games/gnubg/gnubg.SlackBuild | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/games/gnubg/gnubg.SlackBuild b/games/gnubg/gnubg.SlackBuild index 8a69a8879b..dd35d96bf8 100644 --- a/games/gnubg/gnubg.SlackBuild +++ b/games/gnubg/gnubg.SlackBuild @@ -5,7 +5,7 @@ PRGNAM=gnubg VERSION=0.16 -SRCVER=20080325 +SRCVER=20081013 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -19,10 +19,12 @@ 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 rm -rf $PKG -mkdir -p $TMP $PKG +mkdir -p $TMP $PKG $OUTPUT cd $TMP || exit 1 rm -rf $PRGNAM tar xvf $CWD/$PRGNAM-source-SNAPSHOT-$SRCVER.tar.gz || exit 1 @@ -30,12 +32,16 @@ cd $PRGNAM || exit 1 chown -R root:root . chmod -R u+w,go+r-w,a-s . +./autogen.sh || exit 1 + CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var/lib \ --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux \ || exit 1 make || exit 1 @@ -47,13 +53,11 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a ABOUT-NLS AUTHORS CODING COPYING ChangeLog INSTALL NEWS README TODO \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -mv $PKG/usr/share/$PRGNAM/doc $PKG/usr/doc/$PRGNAM-$VERSION/html -( cd $PKG/usr/share/$PRGNAM ; ln -s /usr/doc/$PRGNAM-$VERSION/html doc ) mkdir -p $PKG/usr/share/applications cat $CWD/gnubg.desktop > $PKG/usr/share/applications/gnubg.desktop -mkdir -p $PKG/install +mkdir -p $PKG/install cat $CWD/doinst.sh > $PKG/install/doinst.sh cat $CWD/slack-desc > $PKG/install/slack-desc |