blob: 79b2cc1f41c6164946f1ae0a47813027523cb0be [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001require espeak.inc
2
3inherit native
4
5PACKAGES = "${PN}"
6FILES_${PN} = "${layout_datadir}"
7
8PACKAGE_ARCH = "${MACHINE_ARCH}"
9TARGET_ARCH = "${MACHINE_ARCH}"
10
11do_compile() {
12 # Fixing byte order of phoneme data files
13 cd "${S}/platforms/big_endian"
14 sed -i '/^ *CC *=/d' Makefile
15 sed -i 's/\(.*BYTE_ORDER\)/#undef BYTE_ORDER\n#define BYTE_ORDER BIG_ENDIAN\n\1/' espeak-phoneme-data.c
16 oe_runmake
17 ./espeak-phoneme-data "${S}/espeak-data"
18 cp -f phondata phonindex phontab "${S}/espeak-data"
19}
20
21do_install() {
22 install -d ${D}${layout_datadir}/espeak-data
23 install -m 0644 ${S}/espeak-data/phon* ${D}${layout_datadir}/espeak-data
24}