mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 21:56:42 +00:00
Merge pull request #10291 from HiassofT/le12.2-espeak
[le12.2] backport espeak-ng support
This commit is contained in:
commit
73d21b65cc
@ -110,7 +110,7 @@
|
||||
PIPEWIRE_SUPPORT="no"
|
||||
|
||||
# build and install eSpeak-NG support (yes / no)
|
||||
ESPEAK_SUPPORT="no"
|
||||
ESPEAK_SUPPORT="yes"
|
||||
|
||||
# build and install with BluRay support (yes / no)
|
||||
KODI_BLURAY_SUPPORT="yes"
|
||||
|
@ -2,31 +2,28 @@
|
||||
# Copyright (C) 2021-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
PKG_NAME="espeak-ng"
|
||||
PKG_VERSION="1.51.1"
|
||||
PKG_SHA256="0823df5648659dcb67915baaf99118dcc8853639f47cadaa029c174bdd768d20"
|
||||
PKG_VERSION="348599e02bf0db105ac6fd07693e4047f614a58e"
|
||||
PKG_SHA256="f12884158f1e6c3727bcc340f2459a0a5481f8e02f7c35dbd69dae936f064d1c"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="https://github.com/espeak-ng/espeak-ng"
|
||||
PKG_URL="https://github.com/espeak-ng/espeak-ng/archive/refs/tags/${PKG_VERSION}.tar.gz"
|
||||
PKG_URL="https://github.com/espeak-ng/espeak-ng/archive/${PKG_VERSION}.tar.gz"
|
||||
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="autotools"
|
||||
PKG_BUILD_FLAGS="+pic"
|
||||
|
||||
make_host() {
|
||||
mkdir phsource dictsource
|
||||
(cd dictsource; ln -s ../../dictsource/* .)
|
||||
(cd phsource; ln -s ../../phsource/* .)
|
||||
cp -aP ../espeak-ng-data .
|
||||
make DESTDIR=`pwd` -j1
|
||||
}
|
||||
PKG_CMAKE_OPTS_HOST="-DBUILD_SHARED_LIBS=OFF \
|
||||
-DCOMPILE_INTONATIONS=OFF \
|
||||
-DENABLE_TESTS=OFF"
|
||||
|
||||
make_target() {
|
||||
make src/espeak-ng src/speak-ng
|
||||
}
|
||||
PKG_CMAKE_OPTS_TARGET="-DBUILD_SHARED_LIBS=ON \
|
||||
-DCOMPILE_INTONATIONS=ON \
|
||||
-DENABLE_TESTS=OFF \
|
||||
-DNativeBuild_DIR=${TOOLCHAIN}/bin"
|
||||
|
||||
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
|
||||
post_makeinstall_target() {
|
||||
safe_remove ${INSTALL}/usr/share/vim
|
||||
|
||||
# add symlink for backwards compatibility with old programs
|
||||
ln -sf espeak-ng ${INSTALL}/usr/bin/espeak
|
||||
}
|
||||
|
@ -1,23 +0,0 @@
|
||||
From 9e6083c12a41334b2817b443d430637f01ee5fb9 Mon Sep 17 00:00:00 2001
|
||||
From: Rudi Heitbaum <rudi@heitbaum.com>
|
||||
Date: Sun, 14 Jan 2024 11:33:08 +1100
|
||||
Subject: [PATCH] fix compiling in build directory
|
||||
|
||||
$(srcdir) was missing on includes for src/include/espeak-ng/espeak-ng.h
|
||||
---
|
||||
Makefile.am | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index 595546899..d8671efa3 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -16,7 +16,7 @@ SHARED_VERSION=2:51:1 # = *.so.1.1.51
|
||||
MKDIR=mkdir -p
|
||||
|
||||
AM_CFLAGS = \
|
||||
- -Isrc/include -Isrc/include/compat -I$(srcdir)/src/speechPlayer/include -I$(srcdir)/src/ucd-tools/src/include \
|
||||
+ -I$(srcdir)/src/include -Isrc/include/compat -I$(srcdir)/src/speechPlayer/include -I$(srcdir)/src/ucd-tools/src/include \
|
||||
-D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112L
|
||||
AM_CXXFLAGS =
|
||||
|
Loading…
x
Reference in New Issue
Block a user