espeak-ng: initial package

This commit is contained in:
Nuive 2021-10-20 03:27:35 +02:00
parent 7183aad4a3
commit b1ca76fcae
3 changed files with 42 additions and 0 deletions

View File

@ -87,6 +87,9 @@
# build and install PulseAudio support (yes / no)
PULSEAUDIO_SUPPORT="yes"
# build and install eSpeak-NG support (yes / no)
ESPEAK_SUPPORT="yes"
# build and install with BluRay support (yes / no)
KODI_BLURAY_SUPPORT="yes"

View File

@ -0,0 +1,35 @@
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2021-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="espeak-ng"
PKG_VERSION="1.50"
PKG_SHA256="80ee6cd06fcd61888951ab49362b400e80dd1fac352a8b1131d90cfe8a210edb"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/espeak-ng/espeak-ng"
PKG_URL="https://github.com/espeak-ng/espeak-ng/releases/download/$PKG_VERSION/$PKG_NAME-$PKG_VERSION.tgz"
PKG_DEPENDS_HOST="gcc:host "
PKG_DEPENDS_TARGET="toolchain espeak-ng:host"
PKG_LONGDESC="eSpeak NG is an open source speech synthesizer that supports more than a hundred languages and accents"
PKG_TOOLCHAIN="configure"
pre_configure() {
cd ..
make distclean
./autogen.sh
}
make_host() {
make -j1
}
make_target() {
make src/espeak-ng src/speak-ng
}
makeinstall_target() {
make src/espeak-ng src/speak-ng
make install-exec DESTDIR=$INSTALL
mkdir -p $INSTALL/usr/share/espeak-ng-data
cp -prf $TOOLCHAIN/share/espeak-ng-data $INSTALL/usr/share
}

View File

@ -60,6 +60,10 @@ configure_package() {
KODI_PULSEAUDIO="-DENABLE_PULSEAUDIO=OFF"
fi
if [ "$ESPEAK_SUPPORT" = yes ]; then
PKG_DEPENDS_TARGET+=" espeak-ng"
fi
if [ "${CEC_SUPPORT}" = yes ]; then
PKG_DEPENDS_TARGET+=" libcec"
KODI_CEC="-DENABLE_CEC=ON"