You are not logged in.

#1 2009-07-02 19:20:31

will1911a1
Member
Registered: 2008-04-20
Posts: 59

Compiling problems with wesnoth -tinygui

Is anyone else having trouble compiling the AUR wesnoth -tinygui package?

Offline

#2 2009-07-02 20:42:36

schuay
Package Maintainer (PM)
From: Austria
Registered: 2008-08-19
Posts: 564

Re: Compiling problems with wesnoth -tinygui

Seems like the -Werror compiler flag is causing problems.

PKGBUILD (updated to 1.6.1 as a bonus smile ):

_pkgname=wesnoth
pkgname=wesnoth-tinygui
pkgver=1.6.1
pkgrel=1
pkgdesc="A turn-based strategy game on a fantasy world. Optimized for Netbooks (configure options tinygui,lowmem,lite,tools/editor/server disabled)"
arch=(i686 x86_64)
license=('GPL')
url="http://www.wesnoth.org/"
depends=('sdl_ttf' 'sdl_net' 'sdl_mixer' 'sdl_image' 'libvorbis' 'fribidi' 'freetype2' 'gcc-libs' 'boost' 'python>=2.6' 'pango')
makedepends=('imagemagick')
provides=('wesnoth')
conflicts=('wesnoth')
source=(http://downloads.sourceforge.net/sourceforge/$_pkgname/$_pkgname-$pkgver.tar.bz2)
md5sums=('6777ec9bfb44b1553a4b7dd2d12c0713')

build() {
  cd $startdir/src/$_pkgname-$pkgver

  ./configure --prefix=/usr --localstatedir=/var --disable-tools --disable-editor --disable-server --enable-tinygui --enable-lowmem || return 1

  sed -i 's/-Werror//g' po/Makefile
  sed -i 's/-Werror//g' Makefile
  sed -i 's/-Werror//g' src/Makefile
  sed -i 's/-Werror//g' icons/Makefile
  sed -i 's/-Werror//g' m4/Makefile
  sed -i 's/-Werror//g' doc/Makefile
  sed -i 's/-Werror//g' doc/manual/Makefile
  sed -i 's/-Werror//g' doc/man/Makefile

  make || return 1
  make DESTDIR=$startdir/pkg install
}

Last edited by schuay (2009-07-02 20:51:20)

Offline

#3 2009-07-03 00:19:31

will1911a1
Member
Registered: 2008-04-20
Posts: 59

Re: Compiling problems with wesnoth -tinygui

Awesome, thanks!  I'll give this another shot.

Offline

Board footer

Powered by FluxBB