From dc30f20654b0f654243dbb7bcdbd793ea65b1e86 Mon Sep 17 00:00:00 2001 From: Alexandre Bard Date: Wed, 12 Jun 2019 15:15:41 +0200 Subject: [PATCH] Add libgpiod_1.2 This version supports bindings for python. BugzID: 57325 --- recipes-support/libgpiod/libgpiod_1.2.bb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 recipes-support/libgpiod/libgpiod_1.2.bb diff --git a/recipes-support/libgpiod/libgpiod_1.2.bb b/recipes-support/libgpiod/libgpiod_1.2.bb new file mode 100644 index 0000000..227974f --- /dev/null +++ b/recipes-support/libgpiod/libgpiod_1.2.bb @@ -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}" +