diff options
Diffstat (limited to 'meta-oe/recipes-extended/libcec/libcec_7.0.0.bb')
-rw-r--r-- | meta-oe/recipes-extended/libcec/libcec_7.0.0.bb | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/libcec/libcec_7.0.0.bb b/meta-oe/recipes-extended/libcec/libcec_7.0.0.bb new file mode 100644 index 0000000000..2def38d73f --- /dev/null +++ b/meta-oe/recipes-extended/libcec/libcec_7.0.0.bb | |||
@@ -0,0 +1,43 @@ | |||
1 | SUMMARY = "USB CEC Adaptor communication Library" | ||
2 | HOMEPAGE = "http://libcec.pulse-eight.com/" | ||
3 | |||
4 | LICENSE = "GPL-2.0-or-later" | ||
5 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=b3a719e97f49e4841e90573f9b1a98ac" | ||
6 | |||
7 | DEPENDS = "p8platform udev ncurses swig-native python3" | ||
8 | |||
9 | DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libx11 libxrandr', '', d)}" | ||
10 | DEPENDS:append:rpi = "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '', ' userland', d)}" | ||
11 | |||
12 | SRCREV = "ceeec8bfd2242792b6de59ce8fb854437208dc11" | ||
13 | SRC_URI = "git://github.com/Pulse-Eight/libcec.git;branch=release;protocol=https \ | ||
14 | file://0001-Enhance-reproducibility.patch \ | ||
15 | " | ||
16 | |||
17 | |||
18 | inherit cmake pkgconfig | ||
19 | |||
20 | # default config is for RaspberryPi API, use the Linux 4.10+ API by default | ||
21 | PLATFORM_CMAKE_FLAGS ?= "-DHAVE_LINUX_API=1 -DHAVE_RPI_API=0 -DSKIP_PYTHON_WRAPPER=1" | ||
22 | EXTRA_OECMAKE += "${PLATFORM_CMAKE_FLAGS}" | ||
23 | |||
24 | # Put client examples into separate packages | ||
25 | PACKAGE_BEFORE_PN += "${PN}-examples-python ${PN}-examples" | ||
26 | FILES:${PN}-examples-python = "${bindir}/py*" | ||
27 | FILES:${PN}-examples = "${bindir}" | ||
28 | # cec-client doesn't link with libcec, but uses LibCecInitialise to dlopen libcec, so do_package | ||
29 | # cannot add the runtime dependency automatically | ||
30 | RDEPENDS:${PN}-examples = "${PN}" | ||
31 | RDEPENDS:${PN}-examples-python = "python3-${BPN} python3-core" | ||
32 | |||
33 | # Create the wrapper for python3 | ||
34 | PACKAGES += "python3-${BPN}" | ||
35 | FILES:python3-${BPN} = "${libdir}/python3* ${bindir}/py*" | ||
36 | RDEPENDS:${PN} = "python3-core" | ||
37 | |||
38 | # cec-client and xbmc need the .so present to work :( | ||
39 | FILES:${PN} += "${libdir}/*.so" | ||
40 | INSANE_SKIP:${PN} = "dev-so" | ||
41 | |||
42 | # Adapter shows up as a CDC-ACM device | ||
43 | RRECOMMENDS:${PN} = "kernel-module-cdc-acm" | ||