wok view warmux/receipt @ rev 16234

Add opensc
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Apr 01 20:04:23 2014 +0000 (2014-04-01)
parents 6c1acca69dd8
children e4fd343fd7b8
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 LICENSE="GPL2"
9 SUGGESTED="warmux-music"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.wormux.org/"
12 WGET_URL="http://download.gna.org/warmux/$TARBALL"
13 PROVIDE="wormux"
15 DEPENDS="libsdl-gfx libsdl-image libsdl-mixer libsdl-net libsdl-ttf \
16 curl freetype libxml2 libxml++ gcc-lib-base gettext"
17 BUILD_DEPENDS="libsdl-dev libsdl-gfx-dev libsdl-image-dev libsdl-mixer-dev \
18 libsdl-net-dev libsdl-ttf-dev curl-dev freetype-dev libxml2-dev libxml++-dev \
19 pkg-config"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 cd $src
25 #sed -i s:"INSTALL = /usr/bin/install -c":"INSTALL = /usr/bin/install -c -d":\
26 # Makefile
27 sed -i 's/test -z "$(pkgdatadir)"/test -d "$(pkgdatadir)"/'\
28 data/Makefile.in
29 sed -i 's|if USE_X11|if SKIP_USE_X11|' src/tool/copynpaste.cpp
30 sed -i "s|test -d \"\\\$(pkgdatadir|test -d \"\\\$(DESTDIR)\\\$(pkgdatadir|" data/Makefile*
31 mkdir -p $DESTDIR/usr/share/warmux
32 ./configure \
33 --bindir=/usr/games \
34 --with-font-path=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf \
35 $CONFIGURE_ARGS &&
36 make &&
37 make -j1 install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/share
44 cp -a $install/usr/games $fs/usr
45 cp -a $install/usr/share/pixmaps $fs/usr/share
46 cp -a $install/usr/share/warmux $fs/usr/share
47 # Remove unecessary files
48 rm -rf $fs/usr/share/warmux/font
49 rm -rf $fs/usr/share/warmux/music
50 #rm -rf $fs/usr/share/warmux/sound
51 }