summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--conf/checksums.ini4
-rw-r--r--recipes/julius/julius_4.1.2.bb63
2 files changed, 67 insertions, 0 deletions
diff --git a/conf/checksums.ini b/conf/checksums.ini
index 283daf773d..46bdc476df 100644
--- a/conf/checksums.ini
+++ b/conf/checksums.ini
@@ -11674,6 +11674,10 @@ sha256=bc4f62cbac4716c2c1a25cf53b73343a03883964576d9dd590a9e4c7a70f465a
md5=a746183ea41aebc27a0f771036f668e1
sha256=1b8f50169bc2d827c6efe6bc98bbef2161f615219e4e8921e68227888fd50a9e
+[http://iij.dl.sourceforge.jp/julius/37582/julius-4.1.2.tar.gz]
+md5=886a114b391aa1992567019213efc63e
+sha256=542c7f1042679c8484dc2f5f5536ed0c79fa79b2b9dd6cf6881278a6fdb37a84
+
[http://osdn.dl.sourceforge.jp/julius/37582/julius-4.1.2.tar.gz]
md5=886a114b391aa1992567019213efc63e
sha256=542c7f1042679c8484dc2f5f5536ed0c79fa79b2b9dd6cf6881278a6fdb37a84
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
+}