wok annotate tuxmath/receipt @ rev 15361

tuxmath: add -lt4k_common
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 02 10:41:05 2013 +0000 (2013-10-02)
parents 6ed98834e3eb
children ac2ee8823dfa
rev   line source
claudinei@3314 1 # SliTaz package receipt.
claudinei@3314 2
claudinei@3314 3 PACKAGE="tuxmath"
claudinei@3314 4 SOURCE="tuxmath_w_fonts"
samuel_trassare@11758 5 VERSION="2.0.3"
claudinei@3314 6 CATEGORY="games"
claudinei@3314 7 SHORT_DESC="Arcade game that helps kids practice their math facts."
claudinei@3314 8 MAINTAINER="claudinei@slitaz.org"
pascal@15360 9 LICENSE="GPL3"
claudinei@3314 10 TARBALL="$SOURCE-$VERSION.tar.gz"
claudinei@3314 11 WEB_SITE="http://tux4kids.alioth.debian.org"
samuel_trassare@11758 12 WGET_URL="https://alioth.debian.org/frs/download.php/3571/$TARBALL"
samuel_trassare@11758 13 DEPENDS="libt4k_common libsdl librsvg libsdl-image libsdl-mixer libsdl-ttf \
samuel_trassare@11758 14 libsdl-net libsdl-pango"
samuel_trassare@11758 15 BUILD_DEPENDS="libt4k_common-dev libsdl-dev librsvg-dev libsdl-image-dev \
gokhlayeh@12072 16 libsdl-mixer-dev libsdl-ttf-dev libsdl-net-dev libsdl-pango-dev wget"
jozee@4973 17 TAGS="education"
claudinei@3314 18
claudinei@3314 19
claudinei@3314 20 # Rules to configure and make the package.
claudinei@3314 21 compile_rules()
claudinei@3314 22 {
claudinei@3314 23 cd $src
samuel_trassare@11758 24 #patch -p1 -i $stuff/SDL_extras.c.patch
pascal@15361 25 ./configure LIBS="-lt4k_common" \
claudinei@3314 26 --prefix=/usr \
claudinei@3314 27 $CONFIGURE_ARGS &&
claudinei@3314 28 make &&
pascal@15360 29 make DESTDIR=$DESTDIR install
claudinei@3314 30 }
claudinei@3314 31
claudinei@3314 32 # Rules to gen a SliTaz package suitable for Tazpkg.
claudinei@3314 33 genpkg_rules()
claudinei@3314 34 {
claudinei@3314 35 mkdir -p $fs/usr $fs/usr/share
pascal@15360 36 cp -a $install/usr/bin $fs/usr
pascal@15360 37 cp -a $install/usr/share/tuxmath $fs/usr/share
claudinei@3314 38
claudinei@3314 39 for lang in de es fr pt_BR zh_CN; do
claudinei@3314 40 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES
pascal@15360 41 cp -a $install/usr/share/locale/$lang/LC_MESSAGES/tuxmath.mo \
claudinei@3314 42 $fs/usr/share/locale/$lang/LC_MESSAGES
claudinei@3314 43 done
claudinei@3314 44 }
claudinei@3314 45