wok-current annotate gcompris/receipt @ rev 12105

Up: gcompris 11.12 (bugfixes)
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sun Mar 11 23:19:56 2012 +0100 (2012-03-11)
parents 4abc5e94a070
children 1ae5963f23df
rev   line source
pankso@8838 1 # SliTaz package receipt.
pankso@8838 2
pankso@8838 3 PACKAGE="gcompris"
gokhlayeh@12105 4 VERSION="11.12"
pankso@8838 5 CATEGORY="games"
pankso@8838 6 SHORT_DESC="Education games."
pankso@8838 7 MAINTAINER="pankso@slitaz.org"
pankso@8838 8 DEPENDS="pygtk libsdl-mixer librsvg libxml2 gnuchess gnet sqlite \
pankso@8838 9 libcroco"
pankso@8888 10 BUILD_DEPENDS="pygtk-dev libsdl-mixer-dev librsvg-dev libxml2-dev gnuchess \
devl547@11240 11 gnet-dev sqlite-dev libcroco-dev intltool perl perl-texi2html optipng"
pankso@8838 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@8838 13 WEB_SITE="http://www.gcompris.net/"
devl547@11240 14 WGET_URL="$SF_MIRROR/project/$PACKAGE/$VERSION/$TARBALL"
pankso@8838 15
pankso@8838 16 # Rules to configure and make the package.
pankso@8838 17 compile_rules()
pankso@8838 18 {
pankso@8838 19 cd $src
pankso@8838 20 ./configure \
pankso@8838 21 --enable-sdlmixer &&
pascal@11322 22 make CFLAGS="-DG_CONST_RETURN=const" && make install &&
pascal@11322 23 find | grep .png | xargs optipng -o7 > /dev/null
pankso@8838 24 }
pankso@8838 25
pankso@8838 26 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@8838 27 genpkg_rules()
pankso@8838 28 {
pankso@8838 29 mkdir -p $fs/usr/lib/gcompris $fs/usr/share
pankso@8838 30 cp -a $_pkg/usr/bin $fs/usr
pankso@8838 31 cp -a $_pkg/usr/lib/gcompris/*.so* \
pankso@8838 32 $fs/usr/lib/gcompris
pankso@8838 33 cp -a $_pkg/usr/share/gcompris $fs/usr/share
pankso@8838 34 # Music and voices are splited (gcompris-music, gcompris-fr, etc)
pankso@8838 35 rm -rf $fs/usr/share/gcompris/boards/music
pankso@8838 36 rm -rf $fs/usr/share/gcompris/boards/voices
pankso@8838 37 }