wok-current annotate gcompris/receipt @ rev 15110
Add some LDFLAGS
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Aug 14 18:02:00 2013 +0000 (2013-08-14) |
parents | c19eefb2e37a |
children | 00bc986f2661 |
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 { |
pascal@15110 | 19 cd $src |
pascal@15110 | 20 export LDFLAGS="-Wl,--copy-dt-needed-entries -lgmodule" |
pascal@15110 | 21 ./configure \ |
pascal@15110 | 22 --enable-sdlmixer && |
pascal@15110 | 23 make CFLAGS="-DG_CONST_RETURN=const" && make install && |
pascal@15110 | 24 find | grep .png | xargs optipng -o7 > /dev/null |
pankso@8838 | 25 } |
pankso@8838 | 26 |
pankso@8838 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@8838 | 28 genpkg_rules() |
pankso@8838 | 29 { |
pankso@8838 | 30 mkdir -p $fs/usr/lib/gcompris $fs/usr/share |
pascal@15110 | 31 cp -a $install/usr/bin $fs/usr |
pascal@15110 | 32 cp -a $install/usr/lib/gcompris/*.so* \ |
pankso@8838 | 33 $fs/usr/lib/gcompris |
pascal@15110 | 34 cp -a $install/usr/share/gcompris $fs/usr/share |
pankso@8838 | 35 # Music and voices are splited (gcompris-music, gcompris-fr, etc) |
pankso@8838 | 36 rm -rf $fs/usr/share/gcompris/boards/music |
pankso@8838 | 37 rm -rf $fs/usr/share/gcompris/boards/voices |
pankso@8838 | 38 } |