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