wok-next view gcompris/receipt @ rev 18861
Up License
author | Leonardo Laporte <hackdorte@sapo.pt> |
---|---|
date | Wed Jan 27 06:25:30 2016 +0000 (2016-01-27) |
parents | 63230fad92f1 |
children | 39187b6b192c |
line source
1 # SliTaz package receipt.
3 PACKAGE="gcompris"
4 VERSION="11.12"
5 CATEGORY="games"
6 SHORT_DESC="Education games."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.gcompris.net/"
11 WGET_URL="$SF_MIRROR/project/$PACKAGE/$VERSION/$TARBALL"
13 DEPENDS="pygtk libsdl-mixer librsvg libxml2 gnuchess gnet sqlite \
14 libcroco"
15 BUILD_DEPENDS="pygtk-dev libsdl-mixer-dev librsvg-dev libxml2-dev gnuchess \
16 gnet-dev sqlite-dev libcroco-dev intltool perl perl-texi2html optipng"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 sed -i 's/g_memmove/memmove/' src/goocanvas/src/goocanvastable.c
22 ./configure \
23 --enable-sdlmixer &&
24 make LDFLAGS="-Wl,--copy-dt-needed-entries -lgmodule-2.0" \
25 CFLAGS="-DG_CONST_RETURN=const" && make install &&
26 find | grep .png | xargs optipng -o7 > /dev/null
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/lib/gcompris $fs/usr/share
33 cp -a $install/usr/bin $fs/usr
34 cp -a $install/usr/lib/gcompris/*.so* \
35 $fs/usr/lib/gcompris
36 cp -a $install/usr/share/gcompris $fs/usr/share
37 # Music and voices are splited (gcompris-music, gcompris-fr, etc)
38 rm -rf $fs/usr/share/gcompris/boards/music
39 rm -rf $fs/usr/share/gcompris/boards/voices
40 }