wok-current view speech-dispatcher/receipt @ rev 16375

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