diff --git a/recipes/flite/build.sh b/recipes/flite/build.sh new file mode 100755 index 0000000000000..96443bec212db --- /dev/null +++ b/recipes/flite/build.sh @@ -0,0 +1,7 @@ +set -exou + +./configure --with-vox=cmu_us_kal16 --enable-shared --prefix="$(pwd)/build" + +make + +make install diff --git a/recipes/flite/install.sh b/recipes/flite/install.sh new file mode 100755 index 0000000000000..79d43f3c11f54 --- /dev/null +++ b/recipes/flite/install.sh @@ -0,0 +1,5 @@ +set -exou + +mkdir -p "${PREFIX}/lib" + +cp -P build/lib/lib*.so.* "${PREFIX}/lib/" diff --git a/recipes/flite/install_bin.sh b/recipes/flite/install_bin.sh new file mode 100755 index 0000000000000..c158c4676ac81 --- /dev/null +++ b/recipes/flite/install_bin.sh @@ -0,0 +1,6 @@ +set -exou + +mkdir -p "${PREFIX}/bin" + +cp build/bin/flite* ${PREFIX}/bin/ +cp bin/t2p ${PREFIX}/bin/ diff --git a/recipes/flite/install_devel.sh b/recipes/flite/install_devel.sh new file mode 100755 index 0000000000000..97c5c3b809b59 --- /dev/null +++ b/recipes/flite/install_devel.sh @@ -0,0 +1,7 @@ +set -exou + +mkdir -p "${PREFIX}/include/" +mkdir -p "${PREFIX}/lib" + +cp -a build/include/flite "${PREFIX}/include/" +cp -P build/lib/lib*.so "${PREFIX}/lib/" diff --git a/recipes/flite/meta.yaml b/recipes/flite/meta.yaml new file mode 100644 index 0000000000000..9155674e8e817 --- /dev/null +++ b/recipes/flite/meta.yaml @@ -0,0 +1,89 @@ +{% set name = "flite-tts" %} +{% set version = "2.3.0" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://github.com/festvox/flite/archive/6c9f20dc915b17f5619340069889db0aa007fcdc.tar.gz + sha256: 5d23a2c6248568708aff4996015baed49f02ccc2ec4de17de3b9e13b95491ce6 + +build: + skip: True # [win] + number: 0 + +requirements: + build: + - {{ compiler('c') }} + - make + +outputs: + + - name: libflite + script: install.sh + build: + skip: True # [not linux] + run_exports: + - {{ pin_subpackage('libflite', max_pin='x.x') }} + requirements: + build: + - {{ compiler('c') }} + test: + commands: + - test -f $PREFIX/lib/libflite.so.2.3 # [linux] + - test -f $PREFIX/lib/libflite_usenglish.so.2.3 # [linux] + + - name: flite-dev + script: install_devel.sh + build: + skip: True # [not linux] + run_exports: + - {{ pin_subpackage('libflite', max_pin='x.x') }} + requirements: + build: + - {{ compiler('c') }} + run: + - {{ pin_subpackage("libflite", exact=True) }} + test: + commands: + - test -f $PREFIX/include/flite/flite.h # [linux] + - test -f $PREFIX/lib/libflite.so # [linux] + - test -f $PREFIX/lib/libflite_usenglish.so # [linux] + + - name: flite + script: install_bin.sh # [not win] + requirements: + build: + - {{ compiler('c') }} + host: + - {{ pin_subpackage("libflite", exact=True) }} # [linux] + run: + - {{ pin_subpackage("libflite", exact=True) }} # [linux] + test: + commands: + - test -f $PREFIX/bin/flite # [not win] + - test -f $PREFIX/bin/flite_time # [not win] + - test -f $PREFIX/bin/t2p # [not win] + - flite -t test -o /dev/stdout # [not win] + - sh -c "flite -t test -o /dev/stdout | grep -vi error" # [not win] + +about: + home: http://cmuflite.org + summary: 'A small fast portable speech synthesis system ' + description: | + Flite is an open source small fast run-time text to speech engine. It is + the latest addition to the suite of free software synthesis tools + including University of Edinburgh's Festival Speech Synthesis System and + Carnegie Mellon University's FestVox project, tools, scripts and + documentation for building synthetic voices. However, flite itself does + not require either of these systems to compile and run. + license: BSD-4-Clause + license_family: BSD + license_file: COPYING + doc_url: http://cmuflite.org + dev_url: https://github.com/festvox/flite + +extra: + recipe-maintainers: + - peci1