wok-next annotate gcompris/receipt @ rev 20874

gcompris: update bdeps.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Jul 04 03:13:07 2018 +0300 (2018-07-04)
parents 9697a67223d3
children 99196848027e
rev   line source
pascal@20061 1 # SliTaz package receipt v2.
pankso@8838 2
pankso@8838 3 PACKAGE="gcompris"
al@20872 4 VERSION="17.05"
pankso@8838 5 CATEGORY="games"
al@20872 6 SHORT_DESC="Educational software suite comprising of numerous activities for \
al@20872 7 children aged 2 to 10"
pankso@8838 8 MAINTAINER="pankso@slitaz.org"
pascal@15175 9 LICENSE="GPL2"
pascal@15175 10 WEB_SITE="http://www.gcompris.net/"
al@20872 11
al@20872 12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
al@20872 13 WGET_URL="http://gcompris.net/download/gtk/src/$TARBALL"
pascal@15175 14
al@20874 15 BUILD_DEPENDS="pygtk-dev pycairo-dev libsdl-mixer-dev librsvg-dev libxml2-dev \
al@20874 16 gnuchess gnet-dev sqlite3-dev libcroco-dev intltool perl texi2html texinfo \
al@20874 17 python-dev"
al@20872 18 gv="gcompris-voices"
al@20872 19 SPLIT="gcompris-music $gv-af $gv-ar $gv-ast $gv-bg $gv-br $gv-ca $gv-cs $gv-da \
al@20872 20 $gv-de $gv-el $gv-en $gv-eo $gv-es $gv-eu $gv-fi $gv-fr $gv-gd $gv-he $gv-hi \
al@20872 21 $gv-hu $gv-id $gv-it $gv-kn $gv-lt $gv-mr $gv-nb $gv-nl $gv-nn $gv-pa $gv-pl \
al@20872 22 $gv-pt $gv-pt_BR $gv-ro $gv-ru $gv-sk $gv-sl $gv-so $gv-sr $gv-sv $gv-th \
al@20872 23 $gv-ur $gv-zh_CN $gv-zh_TW $gv gcompris"
pankso@8838 24
al@20872 25 compile_rules() {
al@20872 26 sed -i.orig 's/g_memmove/memmove/' src/goocanvas/src/goocanvastable.c
al@20872 27
pascal@15110 28 ./configure \
pascal@15110 29 --enable-sdlmixer &&
al@20872 30 fix libtool &&
pascal@15175 31 make LDFLAGS="-Wl,--copy-dt-needed-entries -lgmodule-2.0" \
al@20872 32 CFLAGS="-DG_CONST_RETURN=const" &&
al@20872 33 make install || return 1
al@20872 34
al@20872 35 chown -R root:root $install
al@20872 36 find $install -type f -perm 664 -exec chmod 644 '{}' \;
al@20872 37 find $install -type f -perm 775 -exec chmod 755 '{}' \;
pankso@8838 38 }
pankso@8838 39
al@20872 40 genpkg_rules() {
al@20872 41 mo="locale/${PACKAGE##*-}/"
al@20872 42 case ${PACKAGE##*-} in
al@20872 43 af) lang="Afrikaans";;
al@20872 44 ar) lang="Arabic";;
al@20872 45 ast) lang="Asturian";;
al@20872 46 bg) lang="Bulgarian";;
al@20872 47 br) lang="Breton";;
al@20872 48 ca) lang="Catalan";;
al@20872 49 cs) lang="Czech";;
al@20872 50 da) lang="Danish";;
al@20872 51 de) lang="German";;
al@20872 52 el) lang="Greek";;
al@20872 53 en) lang="English"; mo="locale/en*/";;
al@20872 54 eo) lang="Esperanto";;
al@20872 55 es) lang="Spanish";;
al@20872 56 eu) lang="Basque";;
al@20872 57 fi) lang="Finnish";;
al@20872 58 fr) lang="French";;
al@20872 59 gd) lang="Scots Gaelic";;
al@20872 60 he) lang="Hebrew";;
al@20872 61 hi) lang="Hindi";;
al@20872 62 hu) lang="Hungarian";;
al@20872 63 id) lang="Indonesian";;
al@20872 64 it) lang="Italian";;
al@20872 65 kn) lang="Kannada";;
al@20872 66 lt) lang="Lithuanian";;
al@20872 67 mr) lang="Marathi";;
al@20872 68 nb) lang="Norwegian";;
al@20872 69 nl) lang="Dutch";;
al@20872 70 nn) lang="Nynorsk";;
al@20872 71 pa) lang="Punjabi";;
al@20872 72 pl) lang="Polish";;
al@20872 73 pt) lang="Portuguese";;
al@20872 74 pt_BR) lang="Brasilian Portuguese";;
al@20872 75 ro) lang="Romanian";;
al@20872 76 ru) lang="Russian";;
al@20872 77 sk) lang="Slovak";;
al@20872 78 sl) lang="Slovenian";;
al@20872 79 so) lang="Somali";;
al@20872 80 sr) lang="Serbian"; mo="locale/sr*";;
al@20872 81 sv) lang="Swedish";;
al@20872 82 th) lang="Thai";;
al@20872 83 ur) lang="Urdu";;
al@20872 84 zh_CN) lang="Chinese (simplified)";;
al@20872 85 zh_TW) lang="Chinese (traditional)";;
al@20872 86 esac
al@20872 87
pascal@20061 88 case $PACKAGE in
al@20872 89 gcompris-music)
al@20872 90 copy boards/music/
al@20872 91 CAT="games|music"
al@20872 92 ;;
al@20872 93 gcompris-voices-*)
al@20872 94 copy voices/${PACKAGE##*-}/ $mo
al@20872 95 CAT="games|$lang voices and translations"
al@20872 96 ;;
al@20872 97 gcompris-voices)
al@20872 98 copy *.mo @rm # the rest of translations not belongs to any gcompris-voices-* package
al@20872 99 CAT="meta|voices in all languages"
al@20872 100 unset DEPENDS
al@20872 101 for i in $SPLIT; do
al@20872 102 case $i in
al@20872 103 gcompris-voices-*) DEPENDS="$DEPENDS $i";;
al@20872 104 esac
al@20872 105 done
al@20872 106 ;;
al@20872 107 gcompris)
al@20872 108 copy @std @rm
al@20872 109 DEPENDS="pygtk libsdl-mixer librsvg libxml2 gnuchess gnet \
pascal@20098 110 sqlite3 libcroco"
al@20872 111 ;;
pascal@20061 112 esac
pankso@8838 113 }