wok-next annotate speech-dispatcher/receipt @ rev 20534

Clean default configure options when site script used.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 30 19:31:50 2018 +0300 (2018-03-30)
parents d43bf7aae921
children 10df65db91ad
rev   line source
al@20534 1 # SliTaz package receipt v2.
paul@4890 2
paul@4890 3 PACKAGE="speech-dispatcher"
paul@4890 4 VERSION="0.6.7"
paul@4890 5 CATEGORY="utilities"
al@20534 6 SHORT_DESC="Common interface to speech synthesis"
paul@4890 7 MAINTAINER="paul@slitaz.org"
pascal@14996 8 LICENSE="LGPL2.1"
al@20534 9 WEB_SITE="http://www.freebsoft.org/speechd"
al@20534 10
pascal@14996 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@14996 12 WGET_URL="http://www.freebsoft.org/pub/projects/speechd/$TARBALL"
pascal@14996 13
al@20513 14 BUILD_DEPENDS="glib-dev alsa-lib-dev dotconf-dev python \
paul@4890 15 python-dev espeak-dev sed espeak dotconf"
paul@4890 16
al@20534 17 compile_rules() {
pascal@12655 18 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
pascal@17670 19 export LDFLAGS="$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 ../../
al@18086 29
paul@4890 30 ./configure \
paul@4890 31 --with-espeak \
paul@4890 32 $CONFIGURE_ARGS &&
al@20534 33 make &&
al@20534 34 make DESTDIR=$DESTDIR install
paul@4890 35 }
paul@4890 36
al@20534 37 genpkg_rules() {
paul@4890 38 mkdir -p $fs/usr/share/sounds/speech-dispatcher
pascal@14996 39 cp -a $install/usr/bin $fs/usr
pascal@14996 40 cp -a $install/etc $fs
pascal@14996 41 cp -a $install/usr/lib $fs/usr
pascal@14996 42 cp -a $install/usr/share $fs/usr
paul@4890 43
paul@4890 44 # copy python stuff
paul@4890 45 cp -a $src/src/python/_pkg/usr $fs
paul@4890 46 cp $src/src/python/speechd_config/test.wav $fs/usr/share/sounds/speech-dispatcher
paul@4890 47
paul@4890 48 # remove unneeded libs
paul@4890 49 rm -rf $fs/usr/share/info
paul@4890 50 rm -rf $fs/usr/lib/*.*a
paul@4890 51 rm -rf $fs/usr/lib/speech-dispatcher/*.*a
al@20534 52 DEPENDS="glib alsa-lib espeak dotconf python libsndfile"
paul@4890 53 }