wok-4.x view warmux/receipt @ rev 10024
glibc: dont build with -Os and better use default CFLAGS also need --build and --host
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu May 19 18:19:46 2011 +0200 (2011-05-19) |
parents | e8b87b9efb7d |
children | 3008f9f44cb0 |
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 make &&
34 make -j1 install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/share
41 cp -a $_pkg/usr/games $fs/usr
42 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
43 cp -a $_pkg/usr/share/warmux $fs/usr/share
44 # Remove unecessary files
45 rm -rf $fs/usr/share/warmux/font
46 rm -rf $fs/usr/share/warmux/music
47 #rm -rf $fs/usr/share/warmux/sound
48 }