Add libgpiod_1.2

This version supports bindings for python.

BugzID: 57325
This commit is contained in:
Alexandre Bard 2019-06-12 15:15:41 +02:00
parent becbb56002
commit 5fd5028063
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
require recipes-support/libgpiod/libgpiod.inc
DEPENDS += "autoconf-archive-native"
SRC_URI[md5sum] = "34a9972f2f4e9c32fa940301301b007d"
SRC_URI[sha256sum] = "b6b9079c933f7c8524815437937dda6b795a16141bca202a9eec70ba5844b5ba"
PACKAGECONFIG[cxx] = "--enable-bindings-cxx,--disable-bindings-cxx"
PACKAGECONFIG[python3] = "--enable-bindings-python,--disable-bindings-python,python3,python3-core"
inherit ${@bb.utils.contains('PACKAGECONFIG', 'python3', 'python3native', '', d)}
PACKAGES =+ "${PN}-python"
FILES_${PN}-python = "${PYTHON_SITEPACKAGES_DIR}"
RRECOMMENDS_PYTHON = "${@bb.utils.contains('PACKAGECONFIG', 'python3', '${PN}-python', '',d)}"
RRECOMMENDS_${PN} += "${RRECOMMENDS_PYTHON}"