wok-6.x view tuxmath/receipt @ rev 3425

Update deps /libSDL/libsdl/
author Christophe Lincoln <pankso@slitaz.org>
date Sat Jun 13 12:19:10 2009 +0200 (2009-06-13)
parents 98e87512d34d
children 866fa2493b1b
line source
1 # SliTaz package receipt.
3 PACKAGE="tuxmath"
4 SOURCE="tuxmath_w_fonts"
5 VERSION="1.7.2"
6 CATEGORY="games"
7 SHORT_DESC="Arcade game that helps kids practice their math facts."
8 MAINTAINER="claudinei@slitaz.org"
9 TARBALL="$SOURCE-$VERSION.tar.gz"
10 WEB_SITE="http://tux4kids.alioth.debian.org"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 DEPENDS="libsdl libsdl-image libsdl-mixer libsdl-ttf"
13 BUILD_DEPENDS="libsdl libsdl-dev libsdl-image libsdl-image-dev \
14 libsdl-mixer libsdl-mixer-dev libsdl-ttf libsdl-ttf-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 patch -p1 -i ../stuff/SDL_extras.c.patch
22 ./configure \
23 --prefix=/usr \
24 --without-sdlpango \
25 $CONFIGURE_ARGS &&
26 make &&
27 make DESTDIR=$PWD/_pkg install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr $fs/usr/share
34 cp -a $_pkg/usr/bin $fs/usr
35 cp -a $_pkg/usr/share/tuxmath $fs/usr/share
37 for lang in de es fr pt_BR zh_CN; do
38 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES
39 cp -a $_pkg/usr/share/locale/$lang/LC_MESSAGES/tuxmath.mo \
40 $fs/usr/share/locale/$lang/LC_MESSAGES
41 done
42 }