# Description: Text to speech engine. # URL: http://www.cstr.ed.ac.uk/projects/festival/ # Packager: Falcony, falcony at users dot sourceforge dot net # Depends on: ncurses perl python name=festival version=1.96 release=4 source=(http://www.festvox.org/packed/festival/$version/festival-$version-beta.tar.gz \ http://www.festvox.org/packed/festival/$version/festlex_{CMU,OALD,POSLEX}.tar.gz \ http://www.festvox.org/packed/festival/$version/festvox_{kallpc16k,kedlpc8k,kedlpc16k}.tar.gz \ http://www.festvox.org/packed/festival/$version/festvox_us{1,2,3}.tar.gz \ http://download.berlios.de/festlang/msu_ru_nsh_clunits-0.4.tar.gz \ http://www.festvox.org/packed/festival/$version/speech_tools-1.2.${version##*.}-beta.tar.gz \ festival.sh ) build() { export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$(pwd)/lib" install -d \ $PKG/usr/bin \ $PKG/usr/lib \ $PKG/usr/man/man1 \ $PKG/usr/include/{festival,EST} \ $PKG/usr/share/{festival,speech_tools} # configure & compile speech_tools cd speech_tools ./configure --prefix=/usr make -j1 # install speech_tools install -d \ $PKG/usr/share/speech_tools/bin \ $PKG/usr/share/speech_tools/siod \ $PKG/usr/share/speech_tools/stats/wagon \ $PKG/usr/share/speech_tools/grammar/scfg \ $PKG/usr/share/speech_tools/grammar/wfst cp -a include/* $PKG/usr/include/EST cp -a config $PKG/usr/share/speech_tools install siod/siod.mak $PKG/usr/share/speech_tools/siod install lib/siod/*.scm $PKG/usr/share/speech_tools/siod install stats/ols.mak $PKG/usr/share/speech_tools/stats install stats/wagon/wagon.mak $PKG/usr/share/speech_tools/stats/wagon install grammar/scfg/scfg.mak $PKG/usr/share/speech_tools/grammar/scfg install grammar/wfst/wfst.mak $PKG/usr/share/speech_tools/grammar/wfst install -m 0755 lib/lib* $PKG/usr/lib install `find bin -type f -perm +1` $PKG/usr/share/speech_tools/bin for file in $(find $PKG/usr/include/EST -type f); do sed -i -e 's/\"\(.*h\)\"/\/g' $file done sed -i -e 's/\