xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-extended/libcec/libcec_6.0.2.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1SUMMARY = "USB CEC Adaptor communication Library"
2HOMEPAGE = "http://libcec.pulse-eight.com/"
3
4LICENSE = "GPL-2.0-or-later"
5LIC_FILES_CHKSUM = "file://COPYING;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 = "29d82c80bcc62be2878a9ac080de7eb286c4beb9"
13SRC_URI = "git://github.com/Pulse-Eight/libcec.git;branch=release;protocol=https \
14           file://0001-CheckPlatformSupport.cmake-Do-not-hardcode-lib-path.patch \
15           file://0001-Enhance-reproducibility.patch \
16           file://0001-Remove-buggy-test-confusing-host-and-target.patch \
17           file://0001-cecloader-Match-return-type-of-function-LibCecBootlo.patch \
18          "
19
20S = "${WORKDIR}/git"
21
22inherit cmake pkgconfig
23
24# default config is for RaspberryPi API, use the Linux 4.10+ API by default
25PLATFORM_CMAKE_FLAGS ?= "-DHAVE_LINUX_API=1 -DHAVE_RPI_API=0"
26EXTRA_OECMAKE += "${PLATFORM_CMAKE_FLAGS}"
27
28# Put client examples into separate packages
29PACKAGE_BEFORE_PN += "${PN}-examples-python ${PN}-examples"
30FILES:${PN}-examples-python = "${bindir}/py*"
31FILES:${PN}-examples = "${bindir}"
32# cec-client doesn't link with libcec, but uses LibCecInitialise to dlopen libcec, so do_package
33# cannot add the runtime dependency automatically
34RDEPENDS:${PN}-examples = "${PN}"
35RDEPENDS:${PN}-examples-python = "python3-${BPN} python3-core"
36
37# Create the wrapper for python3
38PACKAGES += "python3-${BPN}"
39FILES:python3-${BPN} = "${libdir}/python3* ${bindir}/py*"
40RDEPENDS:${PN} = "python3-core"
41
42# cec-client and xbmc need the .so present to work :(
43FILES:${PN} += "${libdir}/*.so"
44INSANE_SKIP:${PN} = "dev-so"
45
46# Adapter shows up as a CDC-ACM device
47RRECOMMENDS:${PN} = "kernel-module-cdc-acm"
48