wok-current view wormux/receipt @ rev 2811
libQtSvg update to 4.5.0
author | Allan Pinto <allan316@gmail.com> |
---|---|
date | Wed Apr 29 10:19:31 2009 +0000 (2009-04-29) |
parents | 0feff7f97d63 |
children | dd1933864dcc |
line source
1 # SliTaz package receipt.
3 PACKAGE="wormux"
4 VERSION="0.8.2"
5 CATEGORY="games"
6 SHORT_DESC="Wormux game."
7 DEPENDS="xorg libsdl-gfx libsdl-image libsdl-mixer
8 libsdl-net libsdl-ttf curl libiconv freetype libxml2"
9 BUILD_DEPENDS="xorg-dev libsdl-gfx-dev libsdl-image-dev
10 libsdl-mixer-dev libsdl-net-dev libsdl-ttf libsdl-ttf-dev curl-dev"
11 MAINTAINER="pankso@slitaz.org"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WEB_SITE="http://www.wormux.org/"
14 WGET_URL="http://download.gna.org/wormux/$TARBALL"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 sed -i s:"INSTALL = /usr/bin/install -c":"INSTALL = /usr/bin/install -c -d":\
21 Makefile
22 sed -i 's/test -z "$(pkgdatadir)"/test -d "$(pkgdatadir)"/'\
23 data/Makefile.in
24 sed -i 's|if USE_X11|if SKIP_USE_X11|' src/tool/copynpaste.cpp
25 sed -i "s|test -d \"\\\$(pkgdatadir|test -d \"\\\$(DESTDIR)\\\$(pkgdatadir|" data/Makefile*
26 mkdir -p _pkg/usr/share/wormux
27 ./configure \
28 --prefix=/usr \
29 --bindir=/usr/games \
30 --with-font-path=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf \
31 $CONFIGURE_ARGS &&
32 make &&
33 make DESTDIR=$PWD/_pkg install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/share
40 cp -a $_pkg/usr/games $fs/usr
41 cp -a $_pkg/usr/share/wormux $fs/usr/share
42 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
43 # Remove unecessary files
44 rm -rf $fs/usr/share/wormux/font
45 }