summaryrefslogtreecommitdiff
path: root/games/wesnoth/wesnoth.SlackBuild
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackware-id.org>2012-02-18 23:49:38 -0600
committerRobby Workman <rworkman@slackbuilds.org>2012-02-20 12:20:44 -0600
commit69618e0ae2d9a3536c40f303dccecb2eeee75953 (patch)
tree34a4322f86aa976e2d2f195fde51d5e87b02ee7f /games/wesnoth/wesnoth.SlackBuild
parent856b212e0a3e363eb7898856721c2ae4ed9a91a6 (diff)
downloadslackbuilds-69618e0ae2d9a3536c40f303dccecb2eeee75953.tar.gz
games/wesnoth: Updated for version 1.10.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'games/wesnoth/wesnoth.SlackBuild')
-rw-r--r--games/wesnoth/wesnoth.SlackBuild56
1 files changed, 18 insertions, 38 deletions
diff --git a/games/wesnoth/wesnoth.SlackBuild b/games/wesnoth/wesnoth.SlackBuild
index 53a85de209..ca347bde3c 100644
--- a/games/wesnoth/wesnoth.SlackBuild
+++ b/games/wesnoth/wesnoth.SlackBuild
@@ -3,8 +3,8 @@
# SlackBuild script for "Battle of Wesnoth".
# Copyright 2007-2010 Michiel van Wessem, Manchester, United Kingdom
-# Copyright 2010 Willy Sudiarto Raharjo (willysr@slackware-id.org)
-# All rights reserved.
+# Copyright 2010-2012 Willy Sudiarto Raharjo (willysr@slackware-id.org)
+# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
@@ -26,7 +26,7 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=wesnoth
-VERSION=${VERSION:-1.8.6}
+VERSION=${VERSION:-1.10}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -63,14 +63,9 @@ fi
if [ "$SERVER" = "yes" ]; then
BUILDSERVER="\
- --enable-campaign-server \
- --enable-bandwidth-monitor \
- --with-server-uid=${SERVER_UID:-"229"} \
- --with-server-gid=${server_GID:-"229"} "
-elif [ "$SERVER" = "no" ]; then
- BUILDSERVER="\
- --disable-campaign-server \
- --disable-bandwidth-monitor "
+ -DENABLE_CAMPAIGN_SERVER=yes \
+ -DSERVER_UID=229 \
+ -DSERVER_GID=229 "
fi
set -e # Exit on all errors.
@@ -81,7 +76,7 @@ rm -rf $TMP/$PRGNAM-$VERSION
cd $TMP
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
-patch -p1 < $CWD/wesnoth-libpng-1.4.0.patch
+
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -89,39 +84,24 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Generate configure - while wesnoth now supports scons (yuck) and cmake,
-# neither of them really works. Until the point that upstream decides
-# what they want to use, we're going to stick with autotools.
-./autogen.sh
-
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- --with-icondir=/usr/share/pixmaps \
- --enable-python \
- --enable-editor \
- --enable-tools \
- --enable-server \
- --with-kde \
- --with-gnome \
- $BUILDSERVER \
- --disable-debug \
- --build=$ARCH-slackware-linux
+cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DMANDIR=/usr/man \
+ -DENABLE_TOOLS=On \
+ $BUILDSERVER \
+.
make
-make install-strip DESTDIR=$PKG
+make install DESTDIR=$PKG
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a COPYING INSTALL README changelog copyright \
+cp -a COPYING INSTALL RELEASE_NOTES changelog copyright \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild