2017-02-01 22:45:30 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://github.com/espeak-ng/espeak-ng
|
2015-08-19 21:26:04 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="Compact software speech synthesizer"
|
2019-01-20 22:39:59 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
2017-02-01 22:45:30 +01:00
|
|
|
# Use eSpeak NG as the original eSpeak project is dead.
|
|
|
|
# See https://github.com/espeak-ng/espeak-ng/issues/180
|
|
|
|
# about cross compilation of espeak-ng.
|
2017-10-14 22:34:58 +02:00
|
|
|
TERMUX_PKG_VERSION=1.49.2
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_REVISION=2
|
2017-10-14 22:34:58 +02:00
|
|
|
TERMUX_PKG_SHA256=cf7ed86850b99bafe819548c73a6651a74300980dd15f319ff22e2bd72ea20b4
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_BREAKS="espeak-dev"
|
|
|
|
TERMUX_PKG_REPLACES="espeak-dev"
|
2017-02-01 22:45:30 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/espeak-ng/espeak-ng/releases/download/${TERMUX_PKG_VERSION}/espeak-ng-${TERMUX_PKG_VERSION}.tar.gz
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=yes
|
2017-02-01 22:45:30 +01:00
|
|
|
TERMUX_PKG_HOSTBUILD=yes
|
2017-10-15 02:06:55 +02:00
|
|
|
TERMUX_PKG_RM_AFTER_INSTALL="lib/*ng-test*"
|
2017-02-01 22:45:30 +01:00
|
|
|
# --without-async due to that using pthread_cancel().
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--without-async"
|
2015-06-13 01:03:31 +02:00
|
|
|
|
2018-11-27 00:23:45 +01:00
|
|
|
termux_step_post_extract_package() {
|
2019-08-08 14:25:54 +02:00
|
|
|
# Certain packages are not safe to build on device because their
|
|
|
|
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
|
|
|
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
|
|
|
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
|
|
|
fi
|
|
|
|
|
2018-11-27 00:23:45 +01:00
|
|
|
./autogen.sh
|
|
|
|
}
|
|
|
|
|
2017-02-01 22:45:30 +01:00
|
|
|
termux_step_host_build() {
|
|
|
|
cp -Rf $TERMUX_PKG_SRCDIR/* .
|
|
|
|
unset MAKEFLAGS
|
|
|
|
./configure --prefix=$TERMUX_PREFIX
|
|
|
|
make -j$TERMUX_MAKE_PROCESSES src/{e,}speak-ng
|
|
|
|
|
|
|
|
# Man pages require the ronn ruby program.
|
|
|
|
#make src/espeak-ng.1
|
|
|
|
#cp src/espeak-ng.1 $TERMUX_PREFIX/share/man/man1
|
|
|
|
#(cd $TERMUX_PREFIX/share/man/man1 && ln -s -f espeak-ng.1 espeak.1)
|
|
|
|
|
|
|
|
make install
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_make() {
|
|
|
|
# Prevent caching of host build:
|
|
|
|
rm -Rf $TERMUX_PKG_HOSTBUILD_DIR
|
|
|
|
make -j$TERMUX_MAKE_PROCESSES src/{e,}speak-ng
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_make_install() {
|
|
|
|
rm $TERMUX_PREFIX/bin/{e,}speak{,-ng}
|
|
|
|
cp src/.libs/espeak-ng $TERMUX_PREFIX/bin/espeak
|
|
|
|
cp src/.libs/libespeak-ng.so $TERMUX_PREFIX/lib/libespeak-ng.so.1.1.49
|
2015-06-13 01:03:31 +02:00
|
|
|
}
|