summaryrefslogtreecommitdiff
path: root/org.handhelds.familiar/packages/sphinx/sphinxbase_0.1.bb
blob: 592d39c422246bd50e65ae992e60bdff21c1324a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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')
}