wok annotate speech-dispatcher/receipt @ rev 20700

updated afio (2.5.1 -> 2.5.2)
author Hans-G?nter Theisgen
date Tue Feb 05 17:01:36 2019 +0100 (2019-02-05)
parents 17e313b5b9c1
children b8a18614ad1b
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"
pascal@14996 8 LICENSE="LGPL2.1"
pascal@14996 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@14996 10 WEB_SITE="http://www.freebsoft.org/speechd"
pascal@14996 11 WGET_URL="http://www.freebsoft.org/pub/projects/speechd/$TARBALL"
pascal@14996 12
paul@4893 13 DEPENDS="glib alsa-lib espeak dotconf python libsndfile"
al@18086 14 BUILD_DEPENDS="glib-dev pkg-config alsa-lib-dev dotconf-dev python \
paul@4890 15 python-dev espeak-dev sed espeak dotconf"
paul@4890 16
paul@4890 17 # Rules to configure and make the package.
paul@4890 18 compile_rules()
paul@4890 19 {
pascal@12655 20 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
pascal@17670 21 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
paul@4890 22
paul@4890 23 # tiny patches and fixes
paul@4890 24 cd $src/src/python/speechd_config
paul@4890 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
paul@4890 26 sed -i 's/6561/6560/g' config.py
paul@4890 27 cd ../
paul@4890 28 sed -i '/speechd_config\/test.wav/d' Makefile.in
paul@4890 29 sed -i 's|--prefix=${prefix}|--root=`pwd`/_pkg|' Makefile.in
paul@4890 30 cd ../../
al@18086 31
paul@4890 32 ./configure \
paul@4890 33 --prefix=/usr \
paul@4890 34 --infodir=/usr/share/info \
paul@4890 35 --mandir=/usr/share/man \
paul@4890 36 --sysconfdir=/etc \
paul@4890 37 --with-espeak \
paul@4890 38 $CONFIGURE_ARGS &&
pascal@14996 39 make && make DESTDIR=$DESTDIR install
paul@4890 40 }
paul@4890 41
paul@4890 42 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@4890 43 genpkg_rules()
paul@4890 44 {
paul@4890 45 mkdir -p $fs/usr/share/sounds/speech-dispatcher
pascal@14996 46 cp -a $install/usr/bin $fs/usr
pascal@14996 47 cp -a $install/etc $fs
pascal@14996 48 cp -a $install/usr/lib $fs/usr
pascal@14996 49 cp -a $install/usr/share $fs/usr
paul@4890 50
paul@4890 51 # copy python stuff
paul@4890 52 cp -a $src/src/python/_pkg/usr $fs
paul@4890 53 cp $src/src/python/speechd_config/test.wav $fs/usr/share/sounds/speech-dispatcher
paul@4890 54
paul@4890 55 # remove unneeded libs
paul@4890 56 rm -rf $fs/usr/share/info
paul@4890 57 rm -rf $fs/usr/lib/*.*a
paul@4890 58 rm -rf $fs/usr/lib/speech-dispatcher/*.*a
paul@4890 59 }