blob: f6b2f1509fa9ea22ac85f493484064ae7d5feb83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
DESCRIPTION = "Julius is a high-performance, two-pass large vocabulary continuous speech recognition (LVCSR) decoder software for speech-related researchers and developers."
LICENSE = "julius"
DEPENDS = "libsndfile1 flex zlib alsa-lib"
PR = "r1"
SRC_URI = "http://iij.dl.sourceforge.jp/julius/37582/julius-${PV}.tar.gz \
file://patch-julius-4.1.2-command-pipe.patch;patch=1 "
inherit autotools
TARGET_CC_ARCH += "${LDFLAGS}"
EXTRA_OECONF = "--with-mictype=alsa --enable-julian"
do_configure() {
libtoolize --force
gnu-configize
oe_runconf
}
do_install() {
export prefix=${D}${prefix}
export libdir=${D}${libdir}
export bindir=${D}${bindir}
export includedir=${D}${includedir}
export mandir=${D}${mandir}
export exec_prefix=${D}${exec_prefix}
export datadir=${D}${datadir}
for i in libsent libjulius julius mkbingram mkbinhmm adinrec adintool mkgshmm mkss jcontrol generate-ngram jclient-perl man ; do
sed -i -e s:\ /usr/bin:\ \$\{bindir\}:g -e s:\ /usr/share:\ \$\{datadir\}:g ${S}/$i/Makefile
cd ${S}/$i
oe_runmake -e install
done
for i in mkdfa/mkfa-1.44-flex mkdfa dfa_minimize generate accept_check nextword yomi2voca gram2sapixml dfa_determinize ; do
sed -i -e s:\ /usr/bin:\ \$\{bindir\}:g ${S}/gramtools/$i/Makefile
cd ${S}/gramtools/$i
oe_runmake -e install
done
for i in ${D}${bindir}/*.pl ; do
sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g $i
echo sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g $i >> /tmp/k
done
}
do_stage() {
export libdir=${STAGING_LIBDIR}
export bindir=${STAGING_BINDIR}
export includedir=${STAGING_INCDIR}
export datadir=${STAGING_DATADIR}
for i in libsent libjulius julius mkbingram mkbinhmm adinrec adintool mkgshmm mkss jcontrol generate-ngram jclient-perl man ; do
sed -i -e s:\ /usr/bin:\ \$\{bindir\}:g -e s:\ /usr/share:\ \$\{datadir\}:g ${S}/$i/Makefile
cd ${S}/$i
oe_runmake -e install
done
for i in mkdfa/mkfa-1.44-flex mkdfa dfa_minimize generate accept_check nextword yomi2voca gram2sapixml dfa_determinize ; do
sed -i -e s:\ /usr/bin:\ \$\{bindir\}:g ${S}/gramtools/$i/Makefile
cd ${S}/gramtools/$i
oe_runmake -e install
done
}
|