wok-6.x view warmux/receipt @ rev 13761
xfce4-taskmanager: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jan 03 11:18:18 2013 +0100 (2013-01-03) |
parents | 3008f9f44cb0 |
children | 2a21689b0af7 |
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-dev \
17 libsdl-net-dev libsdl-ttf-dev curl-dev freetype-dev libxml2-dev libxml++-dev \
18 pkg-config"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src
24 #sed -i s:"INSTALL = /usr/bin/install -c":"INSTALL = /usr/bin/install -c -d":\
25 # Makefile
26 sed -i 's/test -z "$(pkgdatadir)"/test -d "$(pkgdatadir)"/'\
27 data/Makefile.in
28 sed -i 's|if USE_X11|if SKIP_USE_X11|' src/tool/copynpaste.cpp
29 sed -i "s|test -d \"\\\$(pkgdatadir|test -d \"\\\$(DESTDIR)\\\$(pkgdatadir|" data/Makefile*
30 mkdir -p $DESTDIR/usr/share/warmux
31 ./configure \
32 --bindir=/usr/games \
33 --with-font-path=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf \
34 $CONFIGURE_ARGS &&
35 make &&
36 make -j1 install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/share
43 cp -a $_pkg/usr/games $fs/usr
44 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
45 cp -a $_pkg/usr/share/warmux $fs/usr/share
46 # Remove unecessary files
47 rm -rf $fs/usr/share/warmux/font
48 rm -rf $fs/usr/share/warmux/music
49 #rm -rf $fs/usr/share/warmux/sound
50 }