diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:51:41 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:51:41 +0200 |
commit | 1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e (patch) | |
tree | a21a5fc103bb3bd65ecd85ed22be5228fc54e447 /meta-oe/recipes-support/espeak/espeak-data_1.37.bb | |
download | meta-openembedded-1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-oe/recipes-support/espeak/espeak-data_1.37.bb')
-rw-r--r-- | meta-oe/recipes-support/espeak/espeak-data_1.37.bb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/espeak/espeak-data_1.37.bb b/meta-oe/recipes-support/espeak/espeak-data_1.37.bb new file mode 100644 index 000000000..914bf3601 --- /dev/null +++ b/meta-oe/recipes-support/espeak/espeak-data_1.37.bb | |||
@@ -0,0 +1,27 @@ | |||
1 | require espeak.inc | ||
2 | |||
3 | inherit native | ||
4 | |||
5 | PACKAGES = "${PN}" | ||
6 | FILES_${PN} = "${layout_datadir}" | ||
7 | |||
8 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
9 | TARGET_ARCH = "${MACHINE_ARCH}" | ||
10 | |||
11 | do_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 | |||
21 | do_install() { | ||
22 | install -d ${D}${layout_datadir}/espeak-data | ||
23 | install -m 0644 ${S}/espeak-data/phon* ${D}${layout_datadir}/espeak-data | ||
24 | } | ||
25 | |||
26 | SRC_URI[md5sum] = "5c7b292d0537232868b4ac1317d76c02" | ||
27 | SRC_URI[sha256sum] = "77f406c345362185ec4f362bf49f61d202e01ac9b9cd5c14f803195a544ce6d3" | ||