wok-current view warmux/receipt @ rev 10491

extrema: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 25 13:20:56 2011 +0200 (2011-05-25)
parents 1cbcb9c1afb9
children 6c1acca69dd8
line source
1 # SliTaz package receipt.
3 PACKAGE="warmux"
4 VERSION="11.04.1"
5 CATEGORY="games"
6 SHORT_DESC="Warmux game."
7 MAINTAINER="slaxemulator@gmail.com"
8 SUGGESTED="warmux-music"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.wormux.org/"
11 WGET_URL="http://download.gna.org/warmux/$TARBALL"
12 PROVIDE="wormux"
14 DEPENDS="libsdl-gfx libsdl-image libsdl-mixer libsdl-net libsdl-ttf \
15 curl freetype libxml2 libxml++ gcc-lib-base gettext"
16 BUILD_DEPENDS="libsdl-dev libsdl-gfx-dev libsdl-image-dev libsdl-mixer \
17 libsdl-net-dev libsdl-ttf-dev curl-dev freetype-dev libxml2-dev libxml++-dev pkg-config"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 #sed -i s:"INSTALL = /usr/bin/install -c":"INSTALL = /usr/bin/install -c -d":\
24 # Makefile
25 sed -i 's/test -z "$(pkgdatadir)"/test -d "$(pkgdatadir)"/'\
26 data/Makefile.in
27 sed -i 's|if USE_X11|if SKIP_USE_X11|' src/tool/copynpaste.cpp
28 sed -i "s|test -d \"\\\$(pkgdatadir|test -d \"\\\$(DESTDIR)\\\$(pkgdatadir|" data/Makefile*
29 mkdir -p $DESTDIR/usr/share/warmux
30 ./configure \
31 --bindir=/usr/games \
32 --with-font-path=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf \
33 $CONFIGURE_ARGS &&
34 make &&
35 make -j1 install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/share
42 cp -a $_pkg/usr/games $fs/usr
43 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
44 cp -a $_pkg/usr/share/warmux $fs/usr/share
45 # Remove unecessary files
46 rm -rf $fs/usr/share/warmux/font
47 rm -rf $fs/usr/share/warmux/music
48 #rm -rf $fs/usr/share/warmux/sound
49 }