distribution/packages/audio/espeak-ng/package.mk

35 lines
900 B
Makefile
Raw Normal View History

2022-04-14 11:56:57 +00:00
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2021-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="espeak-ng"
PKG_VERSION="1.51"
2022-04-14 11:56:57 +00:00
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/espeak-ng/espeak-ng"
2023-09-07 22:17:18 +00:00
PKG_URL="https://github.com/espeak-ng/espeak-ng/releases/download/${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}.tar.gz"
2022-04-14 11:56:57 +00:00
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
2023-02-24 13:53:43 +00:00
make install-exec DESTDIR=${INSTALL}
mkdir -p ${INSTALL}/usr/share/espeak-ng-data
cp -prf ${TOOLCHAIN}/share/espeak-ng-data ${INSTALL}/usr/share
2022-04-14 11:56:57 +00:00
}