Commit 17abb9c1 authored by Adrian Chaves Fernandez (Gallaecio)'s avatar Adrian Chaves Fernandez (Gallaecio)
Browse files

Wesnoth upgraded to 1.8.6 version, latest stable.

parent e659e447
......@@ -7,29 +7,30 @@
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=wesnoth
pkgver=1.8.5
pkgrel=2
pkgver=1.8.6
pkgrel=1
pkgdesc="A turn-based strategy game on a fantasy world."
arch=('i686' 'x86_64')
license=('GPL')
license=('GPL2')
url="http://www.wesnoth.org/"
depends=('freetype2' 'fribidi' 'gcc-libs' 'icu' 'libvorbis' 'lua' 'pango' 'sdl_image' 'sdl_mixer' 'sdl_net' 'sdl_ttf')
makedepends=('boost')
install=wesnoth.install
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2
wesnoth-libpng-1.4.0.patch)
md5sums=('a800285d1406690755dd0ea22b98b6df'
'ca7412ffc4682ef55ddf82d56b0e2f08')
depends=('boost' 'freetype2' 'fribidi' 'gcc-libs' 'icu' 'libvorbis' 'lua' 'pango' 'sdl_image' 'sdl_mixer' 'sdl_net' 'sdl_ttf')
makedepends=('cmake')
conflicts=('wesnoth-dev' 'wesnoth-svn')
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2)
md5sums=('f1c3179869b01b61e253e74aeb241034')
build() {
cd $srcdir/$pkgname-$pkgver
patch -Np1 -i ../wesnoth-libpng-1.4.0.patch || return 1
./autogen.sh || return 1
./configure --prefix=/usr --localstatedir=/var --enable-tools --enable-editor --enable-server
make || return 1
mkdir build && cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
..
make
}
package() {
cd $srcdir/$pkgname-$pkgver
cd $srcdir/$pkgname-$pkgver/build
make DESTDIR=$pkgdir install
}
diff -Nur wesnoth-1.8.orig/src/tools/exploder_utils.cpp wesnoth-1.8/src/tools/exploder_utils.cpp
--- wesnoth-1.8.orig/src/tools/exploder_utils.cpp 2010-01-01 15:16:49.000000000 +0200
+++ wesnoth-1.8/src/tools/exploder_utils.cpp 2010-04-08 17:38:03.066201123 +0300
@@ -174,8 +174,8 @@
//TODO: review whether providing NULL error handlers is something
//sensible
png_struct* png_ptr = png_create_write_struct
- (PNG_LIBPNG_VER_STRING, reinterpret_cast<png_voidp>(png_voidp_NULL),
- png_error_ptr_NULL, png_error_ptr_NULL);
+ (PNG_LIBPNG_VER_STRING, reinterpret_cast<png_voidp>(NULL),
+ NULL, NULL);
if(!png_ptr)
throw exploder_failure("Unable to initialize the png write structure");
# arg 1: the new package version
post_install() {
cat << EOF
Note:
==> If you experience sound problems try setting your SDL_AUDIODRIVER environment variable to "dma"
==> eg. export SDL_AUDIODRIVER="dma" ; wesnoth
==> If "dma" doesn't work,other options are: dsp,alsa,artsc,esd,nas try to find the right output.
EOF
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
post_install $1
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment