summaryrefslogtreecommitdiff
path: root/games/widelands
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@liwjatan.at>2017-01-31 00:00:36 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-02-04 06:59:30 +0700
commitbe2c17fab14ac8e8e9cf7f7b14b3447c0bac5c80 (patch)
tree726fbfe172e239fb250d5e61350e0e4c0161c58d /games/widelands
parent634606fbb570c7a50092ae3a47421a25d9dda706 (diff)
downloadslackbuilds-be2c17fab14ac8e8e9cf7f7b14b3447c0bac5c80.tar.gz
games/widelands: Updated for version build19.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/widelands')
-rw-r--r--games/widelands/widelands.SlackBuild30
-rw-r--r--games/widelands/widelands.info8
2 files changed, 15 insertions, 23 deletions
diff --git a/games/widelands/widelands.SlackBuild b/games/widelands/widelands.SlackBuild
index 86e553bc86..a9da6173f4 100644
--- a/games/widelands/widelands.SlackBuild
+++ b/games/widelands/widelands.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for widelands
-# Copyright 2008-2012 Heinz Wiesinger, Amsterdam, The Netherlands
+# Copyright 2008-2017 Heinz Wiesinger, Amsterdam, The Netherlands
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,13 +23,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=widelands
-VERSION=build17
+VERSION=build19
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -40,8 +40,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -72,17 +72,6 @@ find -L . \
# Fix compiling with gcc 4.7
patch -p0 -i $CWD/widelands-gcc47.patch
-# Don't use static boost libraries
-sed -i "s|Boost_USE_STATIC_LIBS ON|Boost_USE_STATIC_LIBS OFF|" \
- CMakeLists.txt
-
-# Fix wrong datadir declaration
-old="std::string(INSTALL_PREFIX) + '/' + INSTALL_DATADIR"
-sed -i "s|INSTALL_PREFIX \"/\" INSTALL_DATADIR|INSTALL_DATADIR|" \
- src/wlapplication.cc
-sed -i "s|$old|std::string(INSTALL_DATADIR)|" \
- src/wlapplication.cc
-
mkdir -p build1
cd build1
cmake \
@@ -92,21 +81,24 @@ cd build1
-DCMAKE_BUILD_TYPE=Release \
-DWL_INSTALL_PREFIX=/usr \
-DWL_INSTALL_DATADIR=/usr/share/widelands \
- -DWL_INSTALL_BINDIR=/usr/bin \
..
make
make install DESTDIR=$PKG
cd ..
+mkdir -p $PKG/usr/bin
+mv $PKG/usr/{widelands,wl_map_object_info,wl_render_richtext,wl_map_info} $PKG/usr/bin
+
mkdir -p $PKG/usr/share/applications
install -m 0644 $CWD/widelands.desktop \
$PKG/usr/share/applications/widelands.desktop
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a ChangeLog COPYING CREDITS WL_RELEASE $PKG/usr/doc/$PRGNAM-$VERSION/
+mv $PKG/usr/{VERSION,ChangeLog,CREDITS,COPYING} $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a WL_RELEASE $PKG/usr/doc/$PRGNAM-$VERSION/
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/games/widelands/widelands.info b/games/widelands/widelands.info
index cf253ad05d..a98f31a43a 100644
--- a/games/widelands/widelands.info
+++ b/games/widelands/widelands.info
@@ -1,10 +1,10 @@
PRGNAM="widelands"
-VERSION="build17"
+VERSION="build19"
HOMEPAGE="http://www.widelands.org"
-DOWNLOAD="https://launchpad.net/widelands/build17/build-17/+download/widelands-build17-src.tar.bz2"
-MD5SUM="bdc9bc0aa631af1aa7fb450507611a58"
+DOWNLOAD="https://launchpad.net/widelands/build19/build19/+download/widelands-build19-src.tar.bz2"
+MD5SUM="0ef7ccf021b8001056739f755500366d"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="SDL_gfx lua"
+REQUIRES="SDL2_image SDL2_mixer SDL2_net SDL2_ttf lua"
MAINTAINER="Heinz Wiesinger"
EMAIL="pprkut@liwjatan.at"