xref: /openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/libcec/libcec_7.0.0.bb (revision eaae0b339f806200d8722cb09e5e3b83c15a5956)
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
17S = "${WORKDIR}/git"
18
19inherit cmake pkgconfig
20
21# default config is for RaspberryPi API, use the Linux 4.10+ API by default
22PLATFORM_CMAKE_FLAGS ?= "-DHAVE_LINUX_API=1 -DHAVE_RPI_API=0 -DSKIP_PYTHON_WRAPPER=1"
23EXTRA_OECMAKE += "${PLATFORM_CMAKE_FLAGS}"
24
25# Put client examples into separate packages
26PACKAGE_BEFORE_PN += "${PN}-examples-python ${PN}-examples"
27FILES:${PN}-examples-python = "${bindir}/py*"
28FILES:${PN}-examples = "${bindir}"
29# cec-client doesn't link with libcec, but uses LibCecInitialise to dlopen libcec, so do_package
30# cannot add the runtime dependency automatically
31RDEPENDS:${PN}-examples = "${PN}"
32RDEPENDS:${PN}-examples-python = "python3-${BPN} python3-core"
33
34# Create the wrapper for python3
35PACKAGES += "python3-${BPN}"
36FILES:python3-${BPN} = "${libdir}/python3* ${bindir}/py*"
37RDEPENDS:${PN} = "python3-core"
38
39# cec-client and xbmc need the .so present to work :(
40FILES:${PN} += "${libdir}/*.so"
41INSANE_SKIP:${PN} = "dev-so"
42
43# Adapter shows up as a CDC-ACM device
44RRECOMMENDS:${PN} = "kernel-module-cdc-acm"
45