blob: a4e5d14d174916507744eeabe0fc251288a31a09 [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
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080017 ./espeak-phoneme-data "${S}/espeak-data" "." "${S}/espeak-data/phondata-manifest"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050018 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}