diff options
author | B. Watson <yalhcru@gmail.com> | 2012-12-22 09:24:35 +0100 |
---|---|---|
committer | Matteo Bernardini <ponce@slackbuilds.org> | 2012-12-22 09:24:50 +0100 |
commit | 7efb8b79269ada1c85871fb34fd7278979dd2d61 (patch) | |
tree | b9bfb7b0ac55fa363e932ce0625fe0473503a190 /games/rott/rott.SlackBuild | |
parent | 0420169799711184978bf3b97b983f49e4302619 (diff) | |
download | slackbuilds-7efb8b79269ada1c85871fb34fd7278979dd2d61.tar.gz |
games/rott: Updated for version 1.1.2, cleanups.
(forced -j1 as parallel building is broken --ponce)
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'games/rott/rott.SlackBuild')
-rw-r--r-- | games/rott/rott.SlackBuild | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/games/rott/rott.SlackBuild b/games/rott/rott.SlackBuild index 48522decd8..fadbf19600 100644 --- a/games/rott/rott.SlackBuild +++ b/games/rott/rott.SlackBuild @@ -4,17 +4,17 @@ # Written by B. Watson (yalhcru@gmail.com) +# Licensed under the WTFPL. See http://sam.zoy.org/wtfpl/ for details. + PRGNAM=rott -VERSION=${VERSION:-1.1.1} +VERSION=${VERSION:-1.1.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: *) ARCH=$( uname -m ) ;; esac fi @@ -24,18 +24,15 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +# LIBDIRSUFFIX not needed 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 -e @@ -53,32 +50,33 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -patch -p1 < $CWD/patches/manpage.diff +patch -p1 < $CWD/manpage.diff + +# 1.1.2 now lets us define SHAREWARE and SUPERROTT as make options, +# no more patching rott/develop.h # The shareware/demo binary -make -C $PRGNAM \ +make -j1 -C $PRGNAM clean all \ + SHAREWARE=1 SUPERROTT=0 \ EXTRACFLAGS="$SLKCFLAGS -DDATADIR=\\\"/usr/share/games/$PRGNAM/\\\"" mkdir -p $PKG/usr/games install -s -m0755 $PRGNAM/$PRGNAM $PKG/usr/games/$PRGNAM-demo # The registered binary -make -C $PRGNAM clean -patch -p1 < $CWD/patches/registered_version.diff -make -C $PRGNAM \ +make -j1 -C $PRGNAM clean all \ + SHAREWARE=0 SUPERROTT=0 \ EXTRACFLAGS="$SLKCFLAGS -DDATADIR=\\\"/usr/share/games/$PRGNAM/\\\"" install -s -m0755 $PRGNAM/$PRGNAM $PKG/usr/games/$PRGNAM-reg # The retail/cdrom binary -make -C $PRGNAM clean -patch -p1 -R < $CWD/patches/registered_version.diff -patch -p1 < $CWD/patches/cdrom_version.diff -make -C $PRGNAM \ +make -j1 -C $PRGNAM clean all \ + SHAREWARE=0 SUPERROTT=1 \ EXTRACFLAGS="$SLKCFLAGS -DDATADIR=\\\"/usr/share/games/$PRGNAM/\\\"" install -s -m0755 $PRGNAM/$PRGNAM $PKG/usr/games/$PRGNAM-cdrom # Not going to bother with the "Site License" binary: doubt anyone # will have any use for it, since multiplayer isn't supported. If you need -# it, see rott/develop.h +# it, build with SHAREWARE=0 SUPERROTT=0 SITELICENSE=1 # Man page is modified from the original version. MANDIR=$PKG/usr/man/man6 |