wok-next view speech-dispatcher/receipt @ rev 13684
cryptopp: fix to genpkg_rules: replaced with
author | Samuel Trassare <samuel_trassare@yahoo.com> |
---|---|
date | Sat Dec 01 08:24:37 2012 +0000 (2012-12-01) |
parents | 87cdd99cd1b0 |
children | 76b72f1ad63c |
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 {
18 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
19 export LDFLAGS="-Wl,--copy-dt-needed-entries"
21 # tiny patches and fixes
22 cd $src/src/python/speechd_config
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
24 sed -i 's/6561/6560/g' config.py
25 cd ../
26 sed -i '/speechd_config\/test.wav/d' Makefile.in
27 sed -i 's|--prefix=${prefix}|--root=`pwd`/_pkg|' Makefile.in
28 cd ../../
30 ./configure \
31 --prefix=/usr \
32 --infodir=/usr/share/info \
33 --mandir=/usr/share/man \
34 --sysconfdir=/etc \
35 --with-espeak \
36 $CONFIGURE_ARGS &&
37 make && make DESTDIR=$PWD/_pkg install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/share/sounds/speech-dispatcher
44 cp -a $_pkg/usr/bin $fs/usr
45 cp -a $_pkg/etc $fs
46 cp -a $_pkg/usr/lib $fs/usr
47 cp -a $_pkg/usr/share $fs/usr
49 # copy python stuff
50 cp -a $src/src/python/_pkg/usr $fs
51 cp $src/src/python/speechd_config/test.wav $fs/usr/share/sounds/speech-dispatcher
53 # remove unneeded libs
54 rm -rf $fs/usr/share/info
55 rm -rf $fs/usr/lib/*.*a
56 rm -rf $fs/usr/lib/speech-dispatcher/*.*a
57 }