wok-stable diff warmux/receipt @ rev 9336
lingot: update BUILD_DEPENDS
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 18 16:23:10 2011 +0100 (2011-03-18) |
parents | |
children | 1cbcb9c1afb9 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/warmux/receipt Fri Mar 18 16:23:10 2011 +0100 1.3 @@ -0,0 +1,47 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="warmux" 1.7 +VERSION="11.01" 1.8 +CATEGORY="games" 1.9 +SHORT_DESC="Warmux game." 1.10 +MAINTAINER="slaxemulator@gmail.com" 1.11 +DEPENDS="libsdl-gfx libsdl-image libsdl-mixer libsdl-net libsdl-ttf \ 1.12 +curl freetype libxml2 libxml++ gcc-lib-base gettext" 1.13 +BUILD_DEPENDS="pkg-config" 1.14 +SUGGESTED="warmux-music" 1.15 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.16 +WEB_SITE="http://www.wormux.org/" 1.17 +WGET_URL="http://download.gna.org/warmux/$TARBALL" 1.18 +PROVIDE="wormux" 1.19 + 1.20 +# Rules to configure and make the package. 1.21 +compile_rules() 1.22 +{ 1.23 + cd $src 1.24 + #sed -i s:"INSTALL = /usr/bin/install -c":"INSTALL = /usr/bin/install -c -d":\ 1.25 + # Makefile 1.26 + sed -i 's/test -z "$(pkgdatadir)"/test -d "$(pkgdatadir)"/'\ 1.27 + data/Makefile.in 1.28 + sed -i 's|if USE_X11|if SKIP_USE_X11|' src/tool/copynpaste.cpp 1.29 + sed -i "s|test -d \"\\\$(pkgdatadir|test -d \"\\\$(DESTDIR)\\\$(pkgdatadir|" data/Makefile* 1.30 + mkdir -p $DESTDIR/usr/share/warmux 1.31 + ./configure \ 1.32 + --bindir=/usr/games \ 1.33 + --with-font-path=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf && 1.34 + make && 1.35 + make -j1 install 1.36 +} 1.37 + 1.38 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.39 +genpkg_rules() 1.40 +{ 1.41 + mkdir -p $fs/usr/share 1.42 + cp -a $_pkg/usr/games $fs/usr 1.43 + cp -a $_pkg/usr/share/pixmaps $fs/usr/share 1.44 + cp -a $_pkg/usr/share/warmux $fs/usr/share 1.45 + # Remove unecessary files 1.46 + rm -rf $fs/usr/share/warmux/font 1.47 + rm -rf $fs/usr/share/warmux/music 1.48 + #rm -rf $fs/usr/share/warmux/sound 1.49 +} 1.50 +