mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-30 22:36:27 +00:00
opencv: Fix metapkg dependencies for opencv-java and opencv-locales
The opencv-java is not always generated so we ought to include it, only if it is available. The opencv-locales is not available and ought to be skipped. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
parent
25b22fb75b
commit
33874df953
@ -79,7 +79,8 @@ export ANT_DIR="${STAGING_DIR_NATIVE}/usr/share/ant/"
|
|||||||
|
|
||||||
TARGET_CC_ARCH += "-I${S}/include "
|
TARGET_CC_ARCH += "-I${S}/include "
|
||||||
|
|
||||||
PACKAGES += "${PN}-java-dbg ${PN}-java ${PN}-samples-dbg ${PN}-samples ${PN}-apps python-opencv"
|
PACKAGES += "${PN}-samples-dbg ${PN}-samples ${PN}-apps python-opencv \
|
||||||
|
${@bb.utils.contains('PACKAGECONFIG', 'oracle-java', '${PN}-java-dbg ${PN}-java', '', d)}"
|
||||||
|
|
||||||
python populate_packages_prepend () {
|
python populate_packages_prepend () {
|
||||||
cv_libdir = d.expand('${libdir}')
|
cv_libdir = d.expand('${libdir}')
|
||||||
@ -104,7 +105,7 @@ python populate_packages_prepend () {
|
|||||||
blacklist = [ metapkg ]
|
blacklist = [ metapkg ]
|
||||||
metapkg_rdepends = [ ]
|
metapkg_rdepends = [ ]
|
||||||
for pkg in packages[1:]:
|
for pkg in packages[1:]:
|
||||||
if not pkg in blacklist and not pkg in metapkg_rdepends and not pkg.endswith('-dev') and not pkg.endswith('-dbg') and not pkg.endswith('-doc') :
|
if not pkg in blacklist and not pkg in metapkg_rdepends and not pkg.endswith('-dev') and not pkg.endswith('-dbg') and not pkg.endswith('-doc') and not pkg.endswith('-locale'):
|
||||||
metapkg_rdepends.append(pkg)
|
metapkg_rdepends.append(pkg)
|
||||||
bb.data.setVar('RDEPENDS_' + metapkg, ' '.join(metapkg_rdepends), d)
|
bb.data.setVar('RDEPENDS_' + metapkg, ' '.join(metapkg_rdepends), d)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user