mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
Add Edinburgh Speech Tools port
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
Centre for Speech Technology Research
|
||||
University of Edinburgh, UK
|
||||
Copyright (c) 1994-2014
|
||||
All Rights Reserved.
|
||||
|
||||
Permission is hereby granted, free of charge, to use and distribute
|
||||
this software and its documentation without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of this work, and to
|
||||
permit persons to whom this work is furnished to do so, subject to
|
||||
the following conditions:
|
||||
1. The code must retain the above copyright notice, this list of
|
||||
conditions and the following disclaimer.
|
||||
2. Any modifications must be clearly marked as such.
|
||||
3. Original authors' names are not deleted.
|
||||
4. The authors' names are not used to endorse or promote products
|
||||
derived from this software without specific prior written
|
||||
permission.
|
||||
|
||||
THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK
|
||||
DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
|
||||
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT
|
||||
SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE
|
||||
FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
|
||||
AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
||||
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
||||
THIS SOFTWARE.
|
||||
|
||||
COPYING
|
||||
------------------------------------------------------------------------
|
||||
|
||||
Some files in the distribution do not fall under the above copyright.
|
||||
However none have any commercial restrictions, and no files fall under
|
||||
the GPL. Specifically files that have different licences are as
|
||||
follows:
|
||||
|
||||
grammar/wfst/wfst_train.cc
|
||||
Copyright Carnegie Mellon University (under the same
|
||||
open licences as much of the rest of the code).
|
||||
siod/
|
||||
include/siod*.h
|
||||
lib/siod/siod.scm
|
||||
Apart from some new functionality under our licence the SIOD
|
||||
files fall under the licence given in siod/slib.cc copyright
|
||||
Paradigm Associates. This code has been substantially modified
|
||||
by us though our changes are under that licence.
|
||||
|
||||
editline.c editline.h el_complete.c el_sysunix.c el_unix.h
|
||||
are copyright 1992 Simmule Turner and Rich Salz under the
|
||||
"BSD like" licence in siod/editline.c Again substantial
|
||||
changes have been made by us which continue to be under that
|
||||
licence
|
||||
|
||||
rxp/
|
||||
include/rxp/
|
||||
Is Copyright Richard Tobin. We have a specific version of RXP
|
||||
which allows free (including non-commercial) use.
|
||||
|
||||
base_class/raveconv.cc
|
||||
Is copyright 1992, 1995 by Markus Mummert
|
||||
|
||||
base_class/string/reg*.{c,cc}
|
||||
Copyright (c) 1986 by University of Toronto.
|
||||
|
||||
base_class/string/EST_strcasecmp.c
|
||||
Copyright (c) 1987, 1993
|
||||
The Regents of the University of California. All rights reserved.
|
||||
|
||||
The 3-clause BSD licence
|
||||
2977
app-accessibility/speech_tools/patches/speech_tools-2.4.patchset
Normal file
2977
app-accessibility/speech_tools/patches/speech_tools-2.4.patchset
Normal file
File diff suppressed because it is too large
Load Diff
150
app-accessibility/speech_tools/speech_tools-2.4.recipe
Normal file
150
app-accessibility/speech_tools/speech_tools-2.4.recipe
Normal file
@@ -0,0 +1,150 @@
|
||||
SUMMARY="Edinburgh speech tools library"
|
||||
SUMMARY_tools="Edinburgh Speech Tools"
|
||||
|
||||
DESCRIPTION="The Edinburgh speech tools library is a collection of C++ classes \
|
||||
that aide in developing machine-synthesized voices. Developed by the University \
|
||||
of Edinburgh, it is used in Festival, a text-to-speech engine developed by \
|
||||
the University of Edinburgh as well.
|
||||
"
|
||||
HOMEPAGE="http://www.cstr.ed.ac.uk/projects/speech_tools/"
|
||||
SRC_URI="http://www.festvox.org/packed/festival/${portVersion}/speech_tools-${portVersion}-release.tar.gz"
|
||||
CHECKSUM_SHA256="fbc2482c443919aa79d2e599d6a5faee4e793df55a79ef377f1dc7e8ba237010"
|
||||
SOURCE_DIR="speech_tools"
|
||||
REVISION="1"
|
||||
|
||||
# Although individually many files have different licenses, as a whole this
|
||||
# license covers all the files.
|
||||
LICENSE="
|
||||
Edinburgh Speech Tools
|
||||
"
|
||||
COPYRIGHT="
|
||||
1986 University of Toronto
|
||||
1987, 1993 The Regents of the University of California
|
||||
1992, 1995 Markus Mummert
|
||||
1992 Rich Salz
|
||||
1992 Simmule Turner
|
||||
1994-2014 University of Edinburgh, UK
|
||||
1997-1998 Richard Tobin
|
||||
1999-2003 Language Technologies Institute, Carnegie Mellon University
|
||||
"
|
||||
|
||||
ARCHITECTURES="x86 x86_64"
|
||||
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
|
||||
# x86_gcc2 is fine as primary target architecture as long as we're building
|
||||
# for a different secondary architecture.
|
||||
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
|
||||
else
|
||||
ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
|
||||
fi
|
||||
SECONDARY_ARCHITECTURES="x86 !x86_gcc2"
|
||||
|
||||
PROVIDES="
|
||||
speech_tools$secondaryArchSuffix = $portVersion
|
||||
lib:libestbase$secondaryArchSuffix = $portVersion compat >= 2
|
||||
lib:libestools$secondaryArchSuffix = $portVersion compat >= 2
|
||||
lib:libeststring$secondaryArchSuffix = $portVersion compat >= 2
|
||||
"
|
||||
PROVIDES_devel="
|
||||
flite${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libestbase$secondaryArchSuffix = $portVersion compat >= 2
|
||||
devel:libestools$secondaryArchSuffix = $portVersion compat >= 2
|
||||
devel:libeststring$secondaryArchSuffix = $portVersion compat >= 2
|
||||
"
|
||||
PROGS=" bcat ch_lab ch_track ch_utt ch_wave design_filter dp \
|
||||
na_play na_record ngram_build ngram_test ols \
|
||||
ols_test pda pitchmark scfg_make \
|
||||
scfg_parse scfg_test scfg_train sig2fv sigfilter spectgen \
|
||||
tilt_analysis tilt_synthesis viterbi wagon wagon_test \
|
||||
wfst_build wfst_run wfst_train xml_parser
|
||||
"
|
||||
SCRIPTS="
|
||||
make_wagon_desc
|
||||
raw_to_xgraph
|
||||
resynth
|
||||
"
|
||||
PROVIDES_tools="
|
||||
speech_tools_tools = $portVersion
|
||||
cmd:simple_pitchmark = $portVersion
|
||||
"
|
||||
for p in $PROGS $SCRIPTS; do
|
||||
PROVIDES_tools="
|
||||
$PROVIDES_tools
|
||||
cmd:$p = $portVersion
|
||||
"
|
||||
done
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
gcc${secondaryArchSuffix}_syslibs
|
||||
lib:libncurses$secondaryArchSuffix
|
||||
"
|
||||
REQUIRES_devel="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
speech_tools$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
REQUIRES_tools="
|
||||
haiku$secondaryArchSuffix
|
||||
gcc${secondaryArchSuffix}_syslibs
|
||||
speech_tools$secondaryArchSuffix == $portVersion base
|
||||
cmd:perl
|
||||
lib:libncurses$secondaryArchSuffix
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libncurses$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
makefile_engine
|
||||
cmd:awk
|
||||
cmd:find
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:mkdepend
|
||||
"
|
||||
|
||||
PATCHES="speech_tools-${portVersion}.patchset"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
runConfigure ./configure
|
||||
# There are some problems with concurrency.
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cmdBinDir=$prefix/bin
|
||||
mkdir -p $cmdBinDir
|
||||
(cd main && cp $PROGS $cmdBinDir)
|
||||
for s in $SCRIPTS; do
|
||||
sed 's,__PERL__,/bin/perl,g' <scripts/${s}.* >$cmdBinDir/$s
|
||||
chmod +x $cmdBinDir/$s
|
||||
done
|
||||
sed 's,__PERL__,/bin/perl,g' \
|
||||
<scripts/pm.prl \
|
||||
>$cmdBinDir/simple-pitchmark
|
||||
chmod +x $cmdBinDir/simple-pitchmark
|
||||
|
||||
mkdir -p $libDir
|
||||
# Install everything to lib/ and let prepareInstalledDevelLibs handle
|
||||
# devel libs, etc.
|
||||
cp lib/*.a lib/*.so lib/*.so.* $libDir
|
||||
|
||||
# Installs possibly internal headers as well, as debian installs them
|
||||
mkdir -p $includeDir/
|
||||
cp -a include/* $includeDir/
|
||||
rm -rf $includeDir/Makefile \
|
||||
$includeDir/*/Makefile \
|
||||
$includeDir/win32
|
||||
cp -a base_class/*.h $includeDir/
|
||||
mkdir -p $includeDir/base_class/
|
||||
cp -a base_class/*.cc $includeDir/base_class/
|
||||
|
||||
prepareInstalledDevelLibs \
|
||||
libestbase \
|
||||
libestools \
|
||||
libeststring
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
packageEntries tools \
|
||||
$cmdBinDir
|
||||
}
|
||||
Reference in New Issue
Block a user