wok annotate speech-dispatcher/receipt @ rev 12655
speech-dispatcher, xtrkcad: add LDFLAGS for Binutils 2.22
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Apr 30 10:18:35 2012 +0200 (2012-04-30) |
parents | 87cdd99cd1b0 |
children | 76b72f1ad63c |
rev | line source |
---|---|
paul@4890 | 1 # SliTaz package receipt. |
paul@4890 | 2 |
paul@4890 | 3 PACKAGE="speech-dispatcher" |
paul@4890 | 4 VERSION="0.6.7" |
paul@4890 | 5 CATEGORY="utilities" |
paul@4890 | 6 SHORT_DESC="Common interface to speech synthesis." |
paul@4890 | 7 MAINTAINER="paul@slitaz.org" |
paul@4893 | 8 DEPENDS="glib alsa-lib espeak dotconf python libsndfile" |
paul@4890 | 9 BUILD_DEPENDS="glib-dev pkg-config alsa-lib-dev dotconf-dev python |
paul@4890 | 10 python-dev espeak-dev sed espeak dotconf" |
paul@4890 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
paul@4890 | 12 WEB_SITE="http://www.freebsoft.org/speechd" |
paul@4890 | 13 WGET_URL="http://www.freebsoft.org/pub/projects/speechd/$TARBALL" |
paul@4890 | 14 |
paul@4890 | 15 # Rules to configure and make the package. |
paul@4890 | 16 compile_rules() |
paul@4890 | 17 { |
pascal@12655 | 18 # Binutils 2.22 break many packages build without LDFLAGS set correctly. |
pascal@12655 | 19 export LDFLAGS="-Wl,--copy-dt-needed-entries" |
paul@4890 | 20 |
paul@4890 | 21 # tiny patches and fixes |
paul@4890 | 22 cd $src/src/python/speechd_config |
paul@4890 | 23 sed -i 's/wavfile = paths.SPD_SOUND_DATA_PATH + "test.wav"/wavfile = os.path.join(paths.SPD_SOUND_DATA_PATH,"test.wav")/' config.py |
paul@4890 | 24 sed -i 's/6561/6560/g' config.py |
paul@4890 | 25 cd ../ |
paul@4890 | 26 sed -i '/speechd_config\/test.wav/d' Makefile.in |
paul@4890 | 27 sed -i 's|--prefix=${prefix}|--root=`pwd`/_pkg|' Makefile.in |
paul@4890 | 28 cd ../../ |
paul@4890 | 29 |
paul@4890 | 30 ./configure \ |
paul@4890 | 31 --prefix=/usr \ |
paul@4890 | 32 --infodir=/usr/share/info \ |
paul@4890 | 33 --mandir=/usr/share/man \ |
paul@4890 | 34 --sysconfdir=/etc \ |
paul@4890 | 35 --with-espeak \ |
paul@4890 | 36 $CONFIGURE_ARGS && |
paul@4890 | 37 make && make DESTDIR=$PWD/_pkg install |
paul@4890 | 38 } |
paul@4890 | 39 |
paul@4890 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@4890 | 41 genpkg_rules() |
paul@4890 | 42 { |
paul@4890 | 43 mkdir -p $fs/usr/share/sounds/speech-dispatcher |
paul@4890 | 44 cp -a $_pkg/usr/bin $fs/usr |
paul@4890 | 45 cp -a $_pkg/etc $fs |
paul@4890 | 46 cp -a $_pkg/usr/lib $fs/usr |
paul@4890 | 47 cp -a $_pkg/usr/share $fs/usr |
paul@4890 | 48 |
paul@4890 | 49 # copy python stuff |
paul@4890 | 50 cp -a $src/src/python/_pkg/usr $fs |
paul@4890 | 51 cp $src/src/python/speechd_config/test.wav $fs/usr/share/sounds/speech-dispatcher |
paul@4890 | 52 |
paul@4890 | 53 # remove unneeded libs |
paul@4890 | 54 rm -rf $fs/usr/share/info |
paul@4890 | 55 rm -rf $fs/usr/lib/*.*a |
paul@4890 | 56 rm -rf $fs/usr/lib/speech-dispatcher/*.*a |
paul@4890 | 57 } |
paul@4890 | 58 |