From 2ab7e46454a24f3560eb6bac000c81b0ad55b465 Mon Sep 17 00:00:00 2001 From: Kristof Robot Date: Wed, 24 Dec 2014 09:26:50 +0100 Subject: [PATCH] festival: correcting audsp path (resolves #309) --- recipes-extended/festival/festival_2.3.bb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/recipes-extended/festival/festival_2.3.bb b/recipes-extended/festival/festival_2.3.bb index 68af35e..9e79e7d 100644 --- a/recipes-extended/festival/festival_2.3.bb +++ b/recipes-extended/festival/festival_2.3.bb @@ -27,8 +27,6 @@ inherit autotools-brokensep #disable parallel make (make -j), as festival cannot handle that PARALLEL_MAKE = "" -FILES_${PN} += "/usr/lib/audsp" - do_configure_prepend() { #point to speech-tools in sysroots sed -i 's:EST=$(TOP)/../speech_tools:EST=${STAGING_DIR_TARGET}${datadir}/speech-tools:g' ${S}/config/config.in @@ -37,7 +35,10 @@ do_configure_prepend() { sed -i 's:ALSO_INCLUDE:#ALSO_INCLUDE:g' ${S}/config/config.in #fix hardcoded library path - sed -i 's:festival_libdir = FTLIBDIR:festival_libdir = "${datadir}/festival":g' ${S}/src/arch/festival/festival.cc + sed -i 's:FTLIBDIR = $(FESTIVAL_HOME)/lib:FTLIBDIR = ${datadir}/festival:g' ${S}/config/project.mak + + #fix audsp path + sed -i 's:audfds = pipe_open("audsp"): audfds = pipe_open("${libdir}/festival/audsp"):g' ${S}/src/arch/festival/audspio.cc } do_configure_append() { @@ -54,8 +55,8 @@ do_install() { install -m 0755 ${S}/bin/festival_client ${D}${bindir} install -m 0755 ${S}/bin/text2wave ${D}${bindir} - install -m 0755 -d ${D}${libdir} - install -m 0644 ${S}/lib/etc/unknown_*/audsp ${D}${libdir} + install -m 0755 -d ${D}${libdir}/festival + install -m 0755 ${S}/lib/etc/unknown_*/audsp ${D}${libdir}/festival install -m 0755 -d ${D}${datadir}/festival install -m 0644 ${S}/lib/*scm ${D}${datadir}/festival