DRAFT opencv_3.2.bb: Add 2nd argument to d.getVar()
This commit is contained in:
parent
bdd8b62fc8
commit
352875e925
|
@ -113,12 +113,12 @@ python populate_packages_prepend () {
|
||||||
do_split_packages(d, cv_libdir, '^lib(.*)\.a$', 'lib%s-dev', 'OpenCV %s development package', extra_depends='${PN}-dev')
|
do_split_packages(d, cv_libdir, '^lib(.*)\.a$', 'lib%s-dev', 'OpenCV %s development package', extra_depends='${PN}-dev')
|
||||||
do_split_packages(d, cv_libdir, '^lib(.*)\.so\.*', 'lib%s', 'OpenCV %s library', extra_depends='', allow_links=True)
|
do_split_packages(d, cv_libdir, '^lib(.*)\.so\.*', 'lib%s', 'OpenCV %s library', extra_depends='', allow_links=True)
|
||||||
|
|
||||||
pn = d.getVar('PN')
|
pn = d.getVar('PN', True)
|
||||||
metapkg = pn + '-dev'
|
metapkg = pn + '-dev'
|
||||||
d.setVar('ALLOW_EMPTY_' + metapkg, "1")
|
d.setVar('ALLOW_EMPTY_' + metapkg, "1")
|
||||||
blacklist = [ metapkg ]
|
blacklist = [ metapkg ]
|
||||||
metapkg_rdepends = [ ]
|
metapkg_rdepends = [ ]
|
||||||
packages = d.getVar('PACKAGES').split()
|
packages = d.getVar('PACKAGES', True).split()
|
||||||
for pkg in packages[1:]:
|
for pkg in packages[1:]:
|
||||||
if not pkg in blacklist and not pkg in metapkg_rdepends and pkg.endswith('-dev'):
|
if not pkg in blacklist and not pkg in metapkg_rdepends and pkg.endswith('-dev'):
|
||||||
metapkg_rdepends.append(pkg)
|
metapkg_rdepends.append(pkg)
|
||||||
|
|
Loading…
Reference in New Issue