1
0
forked from ports/contrib

wesnoth: added upx support

This commit is contained in:
Danny Rawlins 2007-10-04 00:53:22 +10:00
parent fbc9808573
commit f73729d4a0

View File

@ -3,6 +3,7 @@
# Maintainer: Danny Rawlins, romster at shortcircuit dot net dot au
# Packager: Danny Rawlins, romster at shortcircuit dot net dot au
# Depends on: xorg sdl_image sdl_mixer sdl_net freetype python
# Nice To Have: upx
name=wesnoth
version=1.2.6
@ -12,13 +13,11 @@ source=(http://dl.sourceforge.net/sourceforge/wesnoth/wesnoth-$version.tar.bz2)
build() {
cd wesnoth-$version
if pkginfo -i |grep '^kdebase '
then
if pkginfo -i |grep '^kdebase ' > /dev/null; then
local configure='--with-kde'
fi
if pkginfo -i |grep '^gnome '
then
if pkginfo -i |grep '^gnome ' > /dev/null; then
local configure='--with-gnome'
fi
@ -31,7 +30,16 @@ build() {
make
make DESTDIR=$PKG install
find $PKG/usr/man -maxdepth 0 -type d ! -regex 'man?' -exec rm -r {} \;
rm $PKG/usr/share/wesnoth/data/COPYING.txt
# compress binary files if upx is installed to save disk space
if pkginfo -i |grep '^upx ' > /dev/null; then
(
cd $PKG/usr/bin
upx -9 wesnoth
)
fi
}