anchor.diff:  
   TARGET_CC_ARCH += "-I${S}/include "
   
  -PACKAGES += "${@bb.utils.contains('PACKAGECONFIG', 'oracle-java', '${PN}-java-dbg ${PN}-java', '', d)} \
  -    ${@bb.utils.contains('PACKAGECONFIG', 'java', '${PN}-java-dbg ${PN}-java', '', d)} \
  +PACKAGES += "${@bb.utils.contains('PACKAGECONFIG', 'samples', '${PN}-samples', '', d)} \
  +    ${@bb.utils.contains('PACKAGECONFIG', 'oracle-java', '${PN}-java', '', d)} \
  +    ${@bb.utils.contains('PACKAGECONFIG', 'java', '${PN}-java', '', d)} \
       ${@bb.utils.contains('PACKAGECONFIG', 'python2', 'python-${PN}', '', d)} \
       ${@bb.utils.contains('PACKAGECONFIG', 'python3', 'python3-${PN}', '', d)} \
  -    ${PN}-samples-dbg ${PN}-samples ${PN}-apps"
  +    ${PN}-apps"
   
   python populate_packages_prepend () {
       cv_libdir = d.expand('${libdir}')
  -    cv_libdir_dbg = d.expand('${libdir}/.debug')
       do_split_packages(d, cv_libdir, '^lib(.*)\.so$', 'lib%s-dev', 'OpenCV %s development package', extra_depends='${PN}-dev', allow_links=True)
       do_split_packages(d, cv_libdir, '^lib(.*)\.la$', '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')
  
positive.code:     d.setVar('RRECOMMENDS_' + metapkg, ' '.join(metapkg_rdepends))
  
      metapkg =  pn
      blacklist = [ metapkg ]
      metapkg_rdepends = [ ]
      for pkg in packages[1:]:
  
negative.code: PACKAGES_DYNAMIC += "^libopencv-.*"
  
  FILES_${PN} = ""
  FILES_${PN}-dbg += "${datadir}/OpenCV/java/.debug/* ${datadir}/OpenCV/samples/bin/.debug/*"
  FILES_${PN}-dev = "${includedir} ${libdir}/pkgconfig ${datadir}/OpenCV/*.cmake"
  FILES_${PN}-staticdev += "${datadir}/OpenCV/3rdparty/lib/*.a"
  FILES_${PN}-apps = "${bindir}/* ${datadir}/OpenCV"
  FILES_${PN}-java = "${datadir}/OpenCV/java"
  FILES_${PN}-samples = "${datadir}/OpenCV/samples/"
  
  INSANE_SKIP_${PN}-java = "libdir"
  INSANE_SKIP_${PN}-dbg = "libdir"
  
  ALLOW_EMPTY_${PN} = "1"
  
  