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