mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-01 10:01:01 +00:00
Make this recipe a little more widely visible (has previously appeared in meta-refkit-core and meta-intel-iot-middleware). Also make couple of minor tweaks: * Fix BINDINGS example to use the correct recipe name (copy-paste error) * Set HOMEPAGE * Drop AUTHOR as this is field is only really intended for older software where there is no real point of contact for upstream other than an author's email address. * Set same COMPATIBLE_HOST as mraa since upm depends upon it Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
46 lines
1.6 KiB
BlitzBasic
46 lines
1.6 KiB
BlitzBasic
SUMMARY = "Sensor/Actuator repository for Mraa"
|
|
HOMEPAGE = "https://github.com/intel-iot-devkit/upm"
|
|
SECTION = "libs"
|
|
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=66493d54e65bfc12c7983ff2e884f37f"
|
|
|
|
DEPENDS = "libjpeg-turbo mraa"
|
|
|
|
SRCREV = "106b6c706268522ab0168a4ddb19e89ce832e084"
|
|
PV = "1.3.0-git${SRCPV}"
|
|
|
|
SRC_URI = " \
|
|
git://github.com/intel-iot-devkit/${BPN}.git;protocol=http \
|
|
file://ads1x15-fixed-case-logic-in-getThresh-function.patch \
|
|
"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
# Depends on mraa which only supports x86 and ARM for now
|
|
COMPATIBLE_HOST = "(x86_64.*|i.86.*|aarch64.*|arm.*)-linux"
|
|
|
|
inherit distutils3-base cmake
|
|
|
|
|
|
# override this in local.conf to get needed bindings.
|
|
# BINDINGS_pn-upm="python"
|
|
# will result in only the python bindings being built/packaged.
|
|
BINDINGS ??= "python ${@ 'nodejs' if oe.types.boolean(d.getVar('HAVE_NODEJS') or '0') else '' }"
|
|
|
|
PACKAGECONFIG ??= "${@bb.utils.contains('PACKAGES', 'node-${PN}', 'nodejs', '', d)} \
|
|
${@bb.utils.contains('PACKAGES', '${PYTHON_PN}-${PN}', 'python', '', d)}"
|
|
|
|
PACKAGECONFIG[python] = "-DBUILDSWIGPYTHON=ON, -DBUILDSWIGPYTHON=OFF, swig-native ${PYTHON_PN},"
|
|
PACKAGECONFIG[nodejs] = "-DBUILDSWIGNODE=ON, -DBUILDSWIGNODE=OFF, swig-native nodejs-native,"
|
|
|
|
FILES_${PYTHON_PN}-${PN} = "${PYTHON_SITEPACKAGES_DIR}"
|
|
RDEPENDS_${PYTHON_PN}-${PN} += "${PYTHON_PN}"
|
|
|
|
FILES_node-${PN} = "${prefix}/lib/node_modules/"
|
|
RDEPENDS_node-${PN} += "nodejs"
|
|
|
|
### Include desired language bindings ###
|
|
PACKAGES =+ "${@bb.utils.contains('BINDINGS', 'nodejs', 'node-${PN}', '', d)}"
|
|
PACKAGES =+ "${@bb.utils.contains('BINDINGS', 'python', '${PYTHON_PN}-${PN}', '', d)}"
|