diff options
author | Rene Wagner <rw@handhelds.org> | 2006-10-16 22:05:06 +0200 |
---|---|---|
committer | Rene Wagner <rw@handhelds.org> | 2006-10-25 21:58:13 +0200 |
commit | da4d9ff9e89ccb0f06e65df1efebd6f309b65bbd (patch) | |
tree | ef9b6c047a29d81ae7d87e1f1b42acab414e583f | |
parent | 2a030d733c72dd5dd9ee74b7b45882aaba1e8c28 (diff) |
Add sphinxbase and pocketsphinx.
Signed-off-by: Rene Wagner <rw@handhelds.org>
-rw-r--r-- | org.handhelds.familiar/packages/sphinx/pocketsphinx_0.2.1.bb | 21 | ||||
-rw-r--r-- | org.handhelds.familiar/packages/sphinx/sphinxbase_0.1.bb | 28 |
2 files changed, 49 insertions, 0 deletions
diff --git a/org.handhelds.familiar/packages/sphinx/pocketsphinx_0.2.1.bb b/org.handhelds.familiar/packages/sphinx/pocketsphinx_0.2.1.bb new file mode 100644 index 0000000..037e5d4 --- /dev/null +++ b/org.handhelds.familiar/packages/sphinx/pocketsphinx_0.2.1.bb @@ -0,0 +1,21 @@ +# pocketsphinx OE build file +# Copyright (C) 2006, Rene Wagner. All Rights Reserved +# Released under the MIT license (see org.handhelds.familiar/COPYING.MIT) + +DESCRIPTION = "Sphinx speech recognition system for handhelds" +LICENSE = "BSD" +PRIORITY = "optional" +SECTION = "sound" + +SRC_URI = "${SOURCEFORGE_MIRROR}/cmusphinx/${PN}-${PV}.tar.bz2" + +inherit autotools + +CFLAGS =+ "-I${STAGING_INCDIR}/sphinxbase" +CPPFLAGS =+ "-I${STAGING_INCDIR}/sphinxbase" + +PACKAGES =+ "lib${PN} ${PN}-model-hmm ${PN}-model-lm" +FILES_lib${PN} = "${libdir}/*.so.*" +FILES_${PN}-model-hmm = "${datadir}/${PN}/model/hmm" +FILES_${PN}-model-lm = "${datadir}/${PN}/model/lm" +RRECOMMENDS_${PN} = "${PN}-model-hmm ${PN}-model-lm" diff --git a/org.handhelds.familiar/packages/sphinx/sphinxbase_0.1.bb b/org.handhelds.familiar/packages/sphinx/sphinxbase_0.1.bb new file mode 100644 index 0000000..592d39c --- /dev/null +++ b/org.handhelds.familiar/packages/sphinx/sphinxbase_0.1.bb @@ -0,0 +1,28 @@ +# sphinxbase OE build file +# Copyright (C) 2006, Rene Wagner. All Rights Reserved +# Released under the MIT license (see org.handhelds.familiar/COPYING.MIT) + +DESCRIPTION = "Common libraries and utilities of the Sphinx family of speech recognition systems" +LICENSE = "BSD" +PRIORITY = "optional" +SECTION = "libs" + +SRC_URI = "${SOURCEFORGE_MIRROR}/cmusphinx/${PN}-${PV}.tar.bz2" + +inherit autotools + +EXTRA_OECONF_append_arm = " --enable-fixed" + +do_stage() { + autotools_stage_all +} + +PACKAGES = "${PN}-dev ${PN}-utils" +FILES_${PN}-utils = "${bindir}" + +python populate_packages_prepend () { + sphinx_libdir = bb.data.expand('${libdir}', d) + + do_split_packages(d, sphinx_libdir, '^libsphinx(.*?)\.so.*$', 'libsphinx%s', bb.data.expand('${DESCRIPTION}', d) + ' - lib%s', aux_files_pattern_verbatim = sphinx_libdir + '/libsphinx%s.*') + do_split_packages(d, sphinx_libdir, '^libsphinx(.*?)\.l?a.*$', 'libsphinx%s-dev', bb.data.expand('${DESCRIPTION}', d) + ' - lib%s') +} |