4 EXTRA_PHONEMES = '${@base_contains("SITEINFO_ENDIANESS", "be", "espeak-data (= ${PV})", "", d)}'
5 RDEPENDS_${PN} = "portaudio-v19 ${EXTRA_PHONEMES}"
9 CXXFLAGS += "-DUSE_PORTAUDIO"
10 TARGET_CC_ARCH += "${LDFLAGS}"
12 FILES_${PN} += "${datadir}/espeak-data"
15 # "speak" binary, a TTS engine, uses portaudio in either APIs V18 or V19, use V19
16 cp "${S}/src/portaudio19.h" "${S}/src/portaudio.h"
25 install -d ${D}${bindir}
26 install -d ${D}${libdir}
27 install -d ${D}${includedir}
28 install -d ${D}${datadir}/espeak-data
30 # we do not ship "speak" binary though.
31 install -m 0755 ${S}/src/espeak ${D}${bindir}
32 install -m 0644 ${S}/src/speak_lib.h ${D}${includedir}
33 oe_libinstall -so -C src libespeak ${D}${libdir}
35 if [ "${SITEINFO_ENDIANESS}" = "be" ] ; then
36 # the big-endian phon* files are provided by the package espeak-data
37 rm -f ${S}/espeak-data/phon*
40 cp -prf ${S}/espeak-data/* ${D}${datadir}/espeak-data
44 install -d ${STAGING_INCDIR}/espeak
45 install -m 0644 ${S}/src/speak_lib.h ${STAGING_INCDIR}/espeak/
46 oe_libinstall -so -C src libespeak ${STAGING_LIBDIR}