wok-current view speech-dispatcher/receipt @ rev 7063
Removed libfox, libfox-dev, libfox-dec and libfox-utils. Slitaz uses fox, fox-dev and fox-doc so we don't need libfox.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon Nov 01 21:25:33 2010 +0000 (2010-11-01) |
parents | febcdac4b846 |
children | e2cc0a6e47fe |
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 DEPENDS="glib alsa-lib espeak dotconf python libsndfile"
9 BUILD_DEPENDS="glib-dev pkg-config alsa-lib-dev dotconf-dev python
10 python-dev espeak-dev sed espeak dotconf"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WEB_SITE="http://www.freebsoft.org/speechd"
13 WGET_URL="http://www.freebsoft.org/pub/projects/speechd/$TARBALL"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
19 # tiny patches and fixes
20 cd $src/src/python/speechd_config
21 sed -i 's/wavfile = paths.SPD_SOUND_DATA_PATH + "test.wav"/wavfile = os.path.join(paths.SPD_SOUND_DATA_PATH,"test.wav")/' config.py
22 sed -i 's/6561/6560/g' config.py
23 cd ../
24 sed -i '/speechd_config\/test.wav/d' Makefile.in
25 sed -i 's|--prefix=${prefix}|--root=`pwd`/_pkg|' Makefile.in
26 cd ../../
28 ./configure \
29 --prefix=/usr \
30 --infodir=/usr/share/info \
31 --mandir=/usr/share/man \
32 --sysconfdir=/etc \
33 --with-espeak \
34 $CONFIGURE_ARGS &&
35 make && make DESTDIR=$PWD/_pkg install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/share/sounds/speech-dispatcher
42 cp -a $_pkg/usr/bin $fs/usr
43 cp -a $_pkg/etc $fs
44 cp -a $_pkg/usr/lib $fs/usr
45 cp -a $_pkg/usr/share $fs/usr
47 # copy python stuff
48 cp -a $src/src/python/_pkg/usr $fs
49 cp $src/src/python/speechd_config/test.wav $fs/usr/share/sounds/speech-dispatcher
51 # remove unneeded libs
52 rm -rf $fs/usr/share/info
53 rm -rf $fs/usr/lib/*.*a
54 rm -rf $fs/usr/lib/speech-dispatcher/*.*a
55 }