summaryrefslogtreecommitdiff
path: root/recipes
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2009-07-09 13:59:22 +0200
committerKoen Kooi <koen@openembedded.org>2009-07-09 13:59:22 +0200
commit5e0f2d0a2793858c5d208121b7916fd54c34a01a (patch)
tree54082ef6e1c87c6471abb1bdfbd283d49819f39c /recipes
parentf005ce1a22d979b73e243b89b033b6a6a3d1f9af (diff)
julius: add 4.1.2 of julius speech recognizer
Diffstat (limited to 'recipes')
-rw-r--r--recipes/julius/julius_4.1.2.bb63
1 files changed, 63 insertions, 0 deletions
diff --git a/recipes/julius/julius_4.1.2.bb b/recipes/julius/julius_4.1.2.bb
new file mode 100644
index 0000000000..d528357122
--- /dev/null
+++ b/recipes/julius/julius_4.1.2.bb
@@ -0,0 +1,63 @@
+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"
+
+SRC_URI = "http://iij.dl.sourceforge.jp/julius/37582/julius-${PV}.tar.gz"
+
+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
+}