diff options
Diffstat (limited to 'meta-oe/recipes-support/opencv/opencv_2.4.bb')
-rw-r--r-- | meta-oe/recipes-support/opencv/opencv_2.4.bb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/meta-oe/recipes-support/opencv/opencv_2.4.bb b/meta-oe/recipes-support/opencv/opencv_2.4.bb index 6d0121c76..28770932a 100644 --- a/meta-oe/recipes-support/opencv/opencv_2.4.bb +++ b/meta-oe/recipes-support/opencv/opencv_2.4.bb | |||
@@ -40,23 +40,23 @@ TARGET_CC_ARCH += "-I${S}/include " | |||
40 | PACKAGES += "${PN}-apps python-opencv" | 40 | PACKAGES += "${PN}-apps python-opencv" |
41 | 41 | ||
42 | python populate_packages_prepend () { | 42 | python populate_packages_prepend () { |
43 | cv_libdir = bb.data.expand('${libdir}', d) | 43 | cv_libdir = d.expand('${libdir}') |
44 | cv_libdir_dbg = bb.data.expand('${libdir}/.debug', d) | 44 | cv_libdir_dbg = d.expand('${libdir}/.debug') |
45 | do_split_packages(d, cv_libdir, '^lib(.*)\.so$', 'lib%s-dev', 'OpenCV %s development package', extra_depends='${PN}-dev', allow_links=True) | 45 | do_split_packages(d, cv_libdir, '^lib(.*)\.so$', 'lib%s-dev', 'OpenCV %s development package', extra_depends='${PN}-dev', allow_links=True) |
46 | do_split_packages(d, cv_libdir, '^lib(.*)\.la$', 'lib%s-dev', 'OpenCV %s development package', extra_depends='${PN}-dev') | 46 | do_split_packages(d, cv_libdir, '^lib(.*)\.la$', 'lib%s-dev', 'OpenCV %s development package', extra_depends='${PN}-dev') |
47 | do_split_packages(d, cv_libdir, '^lib(.*)\.a$', 'lib%s-dev', 'OpenCV %s development package', extra_depends='${PN}-dev') | 47 | do_split_packages(d, cv_libdir, '^lib(.*)\.a$', 'lib%s-dev', 'OpenCV %s development package', extra_depends='${PN}-dev') |
48 | do_split_packages(d, cv_libdir, '^lib(.*)\.so\.*', 'lib%s', 'OpenCV %s library', extra_depends='', allow_links=True) | 48 | do_split_packages(d, cv_libdir, '^lib(.*)\.so\.*', 'lib%s', 'OpenCV %s library', extra_depends='', allow_links=True) |
49 | 49 | ||
50 | pn = bb.data.getVar('PN', d, 1) | 50 | pn = d.getVar('PN', 1) |
51 | metapkg = pn + '-dev' | 51 | metapkg = pn + '-dev' |
52 | bb.data.setVar('ALLOW_EMPTY_' + metapkg, "1", d) | 52 | d.setVar('ALLOW_EMPTY_' + metapkg, "1") |
53 | blacklist = [ metapkg ] | 53 | blacklist = [ metapkg ] |
54 | metapkg_rdepends = [ ] | 54 | metapkg_rdepends = [ ] |
55 | packages = bb.data.getVar('PACKAGES', d, 1).split() | 55 | packages = d.getVar('PACKAGES', 1).split() |
56 | for pkg in packages[1:]: | 56 | for pkg in packages[1:]: |
57 | if not pkg in blacklist and not pkg in metapkg_rdepends and pkg.endswith('-dev'): | 57 | if not pkg in blacklist and not pkg in metapkg_rdepends and pkg.endswith('-dev'): |
58 | metapkg_rdepends.append(pkg) | 58 | metapkg_rdepends.append(pkg) |
59 | bb.data.setVar('RRECOMMENDS_' + metapkg, ' '.join(metapkg_rdepends), d) | 59 | d.setVar('RRECOMMENDS_' + metapkg, ' '.join(metapkg_rdepends)) |
60 | } | 60 | } |
61 | 61 | ||
62 | FILES_${PN} = "" | 62 | FILES_${PN} = "" |