sphinx: update to latest release
authorKoen Kooi <koen@openembedded.org>
Wed, 18 Jun 2008 18:01:32 +0000 (18:01 +0000)
committerKoen Kooi <koen@openembedded.org>
Wed, 18 Jun 2008 18:01:32 +0000 (18:01 +0000)
packages/sphinx/pocketsphinx_0.4.1.bb [new file with mode: 0644]
packages/sphinx/sphinx-fpu.inc [new file with mode: 0644]
packages/sphinx/sphinxbase_0.1.bb
packages/sphinx/sphinxbase_0.3.bb [new file with mode: 0644]

diff --git a/packages/sphinx/pocketsphinx_0.4.1.bb b/packages/sphinx/pocketsphinx_0.4.1.bb
new file mode 100644 (file)
index 0000000..813146e
--- /dev/null
@@ -0,0 +1,13 @@
+DESCRIPTION = "CMU PocketSphinx - speech recognition engine for handhelds"
+HOMEPAGE = "http://www.speech.cs.cmu.edu/pocketsphinx/"
+LICENSE = "BSD"
+DEPENDS = "sphinxbase"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/cmusphinx/${PN}-${PV}.tar.bz2 \
+           file://cross-compile.patch;patch=1"
+
+inherit autotools
+
+do_configure () {
+    CPPFLAGS="-I${STAGING_INCDIR}/sphinxbase" oe_runconf
+}
diff --git a/packages/sphinx/sphinx-fpu.inc b/packages/sphinx/sphinx-fpu.inc
new file mode 100644 (file)
index 0000000..73ae2ec
--- /dev/null
@@ -0,0 +1,6 @@
+
+def get_sphinx_fpu_setting(bb, d):
+       if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]:
+               return "--enable-fixed"
+       return ""
+
index 1ee41cc..2830b90 100644 (file)
@@ -2,11 +2,12 @@ DESCRIPTION = "Base library for CMU Sphinx speech recognition engines"
 HOMEPAGE = "http://www.speech.cs.cmu.edu/pocketsphinx/"
 LICENSE = "BSD"
 
-SRC_URI = "${SOURCEFORGE_MIRROR}/cmusphinx/sphinxbase-0.1.tar.bz2"
+SRC_URI = "${SOURCEFORGE_MIRROR}/cmusphinx/sphinxbase-${PV}.tar.bz2"
 
 inherit autotools
 
-EXTRA_OECONF = "--enable-fixed"
+require sphinx-fpu.inc
+EXTRA_OECONF += "${@get_sphinx_fpu_setting(bb, d)}"
 
 do_stage () {
     autotools_stage_all
diff --git a/packages/sphinx/sphinxbase_0.3.bb b/packages/sphinx/sphinxbase_0.3.bb
new file mode 100644 (file)
index 0000000..2830b90
--- /dev/null
@@ -0,0 +1,14 @@
+DESCRIPTION = "Base library for CMU Sphinx speech recognition engines"
+HOMEPAGE = "http://www.speech.cs.cmu.edu/pocketsphinx/"
+LICENSE = "BSD"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/cmusphinx/sphinxbase-${PV}.tar.bz2"
+
+inherit autotools
+
+require sphinx-fpu.inc
+EXTRA_OECONF += "${@get_sphinx_fpu_setting(bb, d)}"
+
+do_stage () {
+    autotools_stage_all
+}