anchor.diff:  
   inherit distutils-base pkgconfig python-dir cmake
   
  -PACKAGES =+ "python-${PN} node-${PN} ${PN}-java"
  +CFLAGS_append_edison = " -msse3 -mfpmath=sse"
  +
  +FILES_${PN}-doc += " ${datadir}/upm/examples/"
  +RDEPENDS_${PN} += " mraa"
  +
  +PACKAGECONFIG ??= "python nodejs java"
  +PACKAGECONFIG[python] = "-DBUILDSWIGPYTHON=ON, -DBUILDSWIGPYTHON=OFF, swig-native ${PYTHON_PN},"
  +PACKAGECONFIG[nodejs] = "-DBUILDSWIGNODE=ON, -DBUILDSWIGNODE=OFF, swig-native nodejs,"
  +PACKAGECONFIG[java] = "-DBUILDSWIGJAVA=ON, -DBUILDSWIGJAVA=OFF, swig-native openjdk-8-native,"
  +
  +
  +### Python ###
  +
  +# Python dependency in PYTHON_PN (from poky/meta/classes/python-dir.bbclass)
  +# Possible values for PYTHON_PN: "python" or "python3"
   
   # python-upm package containing Python bindings
  -FILES_python-${PN} = "${PYTHON_SITEPACKAGES_DIR}/ \
  -                      ${datadir}/${BPN}/examples/python/ \
  -                      ${prefix}/src/debug/${BPN}/${PV}-${PR}/build/src/*/pyupm_* \
  -                     "
  -RDEPENDS_python-${PN} += "python mraa"
  -INSANE_SKIP_python-${PN} = "debug-files"
  +FILES_${PYTHON_PN}-${PN} = "${PYTHON_SITEPACKAGES_DIR} \
  +                       ${datadir}/${BPN}/examples/python/ \
  +                       ${prefix}/src/debug/${BPN}/${PV}-${PR}/build/src/*/pyupm_* \
  +                      "
  +RDEPENDS_${PYTHON_PN}-${PN} += "${PYTHON_PN} mraa"
  +INSANE_SKIP_${PYTHON_PN}-${PN} = "debug-files"
   
  -CFLAGS_append_edison = " -msse3 -mfpmath=sse"
  +
  +### Node ###
   
   # node-upm package containing Nodejs bindings
   FILES_node-${PN} = "${libdir}/node_modules/ \
  
positive.code: " >> ${WORKDIR}/toolchain.cmake
  }
  
  do_install_append () {
      echo "PYTHON_SITEPACKAGES_DIR = ${PYTHON_SITEPACKAGES_DIR}"
      python --version
  }
  
negative.code:                     ${prefix}/src/debug/${BPN}/${PV}-${PR}/build/src/*/*javaupm_* \
                      ${libdir}/.debug/libjava*.so \
                     "
  RDEPENDS_${PN}-java += "java2-runtime mraa-java"
  INSANE_SKIP_${PN}-java = "debug-files"
  
  export JAVA_HOME="${STAGING_DIR}/${BUILD_SYS}/usr/lib/jvm/openjdk-8-native"
  
  cmake_do_generate_toolchain_file_append() {
    echo "
  