1
0
forked from ports/contrib

45 lines
1.1 KiB
Plaintext
Raw Normal View History

2008-03-04 00:15:20 +11:00
# Description: The Battle for Wesnoth is a turn-based strategy game with a fantasy theme.
# URL: http://www.wesnoth.org/
2008-03-26 13:45:31 +11:00
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
# Packager: Danny Rawlins, monster dot romster at gmail dot com
2008-03-18 20:46:43 +11:00
# Depends on: xorg-libx11 sdl_image sdl_mixer sdl_net freetype boost
2008-03-04 00:15:20 +11:00
name=wesnoth
version=1.4
release=1
source=(http://dl.sourceforge.net/sourceforge/wesnoth/wesnoth-$version.tar.bz2)
build() {
cd wesnoth-$version
if pkginfo -i |grep '^kdebase ' > /dev/null; then
local configure='--with-kde'
fi
if pkginfo -i |grep '^kdebase3 ' > /dev/null; then
local configure='--with-kde'
fi
if pkginfo -i |grep '^gnome ' > /dev/null; then
local configure='--with-gnome'
fi
./configure \
--prefix=/usr \
--mandir=/usr/man \
--disable-nls \
--enable-python \
$configure
make
make DESTDIR=$PKG install
find $PKG/usr/man -maxdepth 0 -type d ! -regex 'man?' -exec rm -r {} \;
2008-03-14 22:37:40 +11:00
find $PKG/usr/share/wesnoth -type f -name 'README' -delete
2008-03-04 00:15:20 +11:00
rm \
$PKG/usr/share/wesnoth/data/COPYING.txt \
$PKG/usr/share/wesnoth/fonts/COPYING
}