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