summaryrefslogtreecommitdiff
path: root/packages/sphinx
diff options
context:
space:
mode:
authorPaul Sokolovsky <pmiscml@gmail.com>2006-10-13 10:14:26 +0000
committerPaul Sokolovsky <pmiscml@gmail.com>2006-10-13 10:14:26 +0000
commit22be8e7a36a6ecb0a117e87fe560deb511f7a316 (patch)
treefa79c29ddd615dbe3b3da8c3dd572ebabb60380d /packages/sphinx
parent4e4ea6b5c72b147aa42c3f8cf4d5bd62eba450bf (diff)
pocketsphinx: New package, the CMU PocketSphinx speech recognition engine for handhelds.
* Also, a dependent sphinxbase package. * Package directory is called sphinx, to fit future ports of full-fledged Sphinx engines. * Package is rough for ipkg conventions, just autotools' make install. Whoever actually does speech recognition with it, please add sane packaging ;-).
Diffstat (limited to 'packages/sphinx')
-rw-r--r--packages/sphinx/.mtn2git_empty0
-rw-r--r--packages/sphinx/pocketsphinx/.mtn2git_empty0
-rw-r--r--packages/sphinx/pocketsphinx/cross-compile.patch11
-rw-r--r--packages/sphinx/pocketsphinx_0.2.bb13
-rw-r--r--packages/sphinx/sphinxbase_0.1.bb13
5 files changed, 37 insertions, 0 deletions
diff --git a/packages/sphinx/.mtn2git_empty b/packages/sphinx/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/sphinx/.mtn2git_empty
diff --git a/packages/sphinx/pocketsphinx/.mtn2git_empty b/packages/sphinx/pocketsphinx/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/sphinx/pocketsphinx/.mtn2git_empty
diff --git a/packages/sphinx/pocketsphinx/cross-compile.patch b/packages/sphinx/pocketsphinx/cross-compile.patch
new file mode 100644
index 0000000000..4392204657
--- /dev/null
+++ b/packages/sphinx/pocketsphinx/cross-compile.patch
@@ -0,0 +1,11 @@
+--- foo/configure.in.org 2006-08-05 15:42:56.000000000 +0000
++++ foo/configure.in 2006-10-11 22:53:44.000000000 +0000
+@@ -59,7 +59,7 @@
+ dnl FIXME: How do we find the installed headers robustly?
+ dnl
+ AC_CHECK_HEADER(sphinxbase/sphinx_config.h,
+-CPPFLAGS="-I/usr/include/sphinxbase -I/usr/local/include/sphinxbase",[
++CPPFLAGS="$CPPFLAGS",[
+ if test x$sphinxbase = x; then
+ # Look for sphinxbase in the parent directory
+ for sb in ../sphinxbase*; do
diff --git a/packages/sphinx/pocketsphinx_0.2.bb b/packages/sphinx/pocketsphinx_0.2.bb
new file mode 100644
index 0000000000..6b71d2b265
--- /dev/null
+++ b/packages/sphinx/pocketsphinx_0.2.bb
@@ -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/pocketsphinx-0.2.tar.bz2 \
+ file://cross-compile.patch;patch=1"
+
+inherit autotools
+
+do_configure () {
+ CPPFLAGS="-I${STAGING_INCDIR}/sphinxbase" oe_runconf
+}
diff --git a/packages/sphinx/sphinxbase_0.1.bb b/packages/sphinx/sphinxbase_0.1.bb
new file mode 100644
index 0000000000..1ee41cc485
--- /dev/null
+++ b/packages/sphinx/sphinxbase_0.1.bb
@@ -0,0 +1,13 @@
+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"
+
+inherit autotools
+
+EXTRA_OECONF = "--enable-fixed"
+
+do_stage () {
+ autotools_stage_all
+}