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"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2017-02-01 22:45:30 +01:00
|
|
|
# Use eSpeak NG as the original eSpeak project is dead.
|
2022-04-03 21:22:07 +02:00
|
|
|
TERMUX_PKG_VERSION="1.51"
|
|
|
|
TERMUX_PKG_SRCURL="https://github.com/espeak-ng/espeak-ng/archive/${TERMUX_PKG_VERSION}.tar.gz"
|
|
|
|
TERMUX_PKG_SHA256=f0e028f695a8241c4fa90df7a8c8c5d68dcadbdbc91e758a97e594bbb0a3bdbf
|
2021-10-04 12:43:31 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
2020-04-27 20:39:47 +02:00
|
|
|
TERMUX_PKG_DEPENDS="pcaudiolib"
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_BREAKS="espeak-dev"
|
|
|
|
TERMUX_PKG_REPLACES="espeak-dev"
|
2019-08-12 17:28:41 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
TERMUX_PKG_HOSTBUILD=true
|
2022-04-03 21:22:07 +02:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-async --with-pcaudiolib"
|
2015-06-13 01:03:31 +02:00
|
|
|
|
2020-07-16 23:58:48 +02:00
|
|
|
termux_step_post_get_source() {
|
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.
|
2022-04-03 21:22:07 +02:00
|
|
|
if ${TERMUX_ON_DEVICE_BUILD}; then
|
|
|
|
termux_error_exit "Package '${TERMUX_PKG_NAME}' is not safe for on-device builds."
|
2019-08-08 14:25:54 +02:00
|
|
|
fi
|
|
|
|
|
2018-11-27 00:23:45 +01:00
|
|
|
./autogen.sh
|
|
|
|
}
|
|
|
|
|
2017-02-01 22:45:30 +01:00
|
|
|
termux_step_host_build() {
|
2022-04-03 21:22:07 +02:00
|
|
|
cd "${TERMUX_PKG_SRCDIR}" || exit 1
|
|
|
|
./configure && make
|
2017-02-01 22:45:30 +01:00
|
|
|
# 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)
|
2022-04-03 21:22:07 +02:00
|
|
|
}
|
2017-02-01 22:45:30 +01:00
|
|
|
|
2022-04-03 21:22:07 +02:00
|
|
|
termux_step_make() {
|
|
|
|
make -B src/{e,}speak-ng
|
2017-02-01 22:45:30 +01:00
|
|
|
}
|
|
|
|
|
2019-09-22 19:14:46 +02:00
|
|
|
termux_step_pre_configure() {
|
|
|
|
# Oz flag causes problems. See https://github.com/termux/termux-packages/issues/1680:
|
|
|
|
CFLAGS=${CFLAGS/Oz/Os}
|
|
|
|
}
|
|
|
|
|
2017-02-01 22:45:30 +01:00
|
|
|
termux_step_make_install() {
|
2022-04-03 21:22:07 +02:00
|
|
|
# Calling make install directly tends to build lang data files again but with cross compiled espeak-ng.
|
|
|
|
# So use make install-data which will install the data files compiled with previously built espeak-ng
|
|
|
|
# in host build step.
|
|
|
|
make install-data install-exec
|
2015-06-13 01:03:31 +02:00
|
|
|
}
|