1*4882a593SmuzhiyunSUMMARY = "USB CEC Adaptor communication Library" 2*4882a593SmuzhiyunHOMEPAGE = "http://libcec.pulse-eight.com/" 3*4882a593Smuzhiyun 4*4882a593SmuzhiyunLICENSE = "GPL-2.0-or-later" 5*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=b3a719e97f49e4841e90573f9b1a98ac" 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunDEPENDS = "p8platform udev ncurses swig-native python3" 8*4882a593Smuzhiyun 9*4882a593SmuzhiyunDEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libx11 libxrandr', '', d)}" 10*4882a593SmuzhiyunDEPENDS:append:rpi = "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '', ' userland', d)}" 11*4882a593Smuzhiyun 12*4882a593SmuzhiyunSRCREV = "29d82c80bcc62be2878a9ac080de7eb286c4beb9" 13*4882a593SmuzhiyunSRC_URI = "git://github.com/Pulse-Eight/libcec.git;branch=release;protocol=https \ 14*4882a593Smuzhiyun file://0001-CheckPlatformSupport.cmake-Do-not-hardcode-lib-path.patch \ 15*4882a593Smuzhiyun file://0001-Enhance-reproducibility.patch \ 16*4882a593Smuzhiyun file://0001-Remove-buggy-test-confusing-host-and-target.patch \ 17*4882a593Smuzhiyun file://0001-cecloader-Match-return-type-of-function-LibCecBootlo.patch \ 18*4882a593Smuzhiyun " 19*4882a593Smuzhiyun 20*4882a593SmuzhiyunS = "${WORKDIR}/git" 21*4882a593Smuzhiyun 22*4882a593Smuzhiyuninherit cmake pkgconfig 23*4882a593Smuzhiyun 24*4882a593Smuzhiyun# default config is for RaspberryPi API, use the Linux 4.10+ API by default 25*4882a593SmuzhiyunPLATFORM_CMAKE_FLAGS ?= "-DHAVE_LINUX_API=1 -DHAVE_RPI_API=0" 26*4882a593SmuzhiyunEXTRA_OECMAKE += "${PLATFORM_CMAKE_FLAGS}" 27*4882a593Smuzhiyun 28*4882a593Smuzhiyun# Put client examples into separate packages 29*4882a593SmuzhiyunPACKAGE_BEFORE_PN += "${PN}-examples-python ${PN}-examples" 30*4882a593SmuzhiyunFILES:${PN}-examples-python = "${bindir}/py*" 31*4882a593SmuzhiyunFILES:${PN}-examples = "${bindir}" 32*4882a593Smuzhiyun# cec-client doesn't link with libcec, but uses LibCecInitialise to dlopen libcec, so do_package 33*4882a593Smuzhiyun# cannot add the runtime dependency automatically 34*4882a593SmuzhiyunRDEPENDS:${PN}-examples = "${PN}" 35*4882a593SmuzhiyunRDEPENDS:${PN}-examples-python = "python3-${BPN} python3-core" 36*4882a593Smuzhiyun 37*4882a593Smuzhiyun# Create the wrapper for python3 38*4882a593SmuzhiyunPACKAGES += "python3-${BPN}" 39*4882a593SmuzhiyunFILES:python3-${BPN} = "${libdir}/python3* ${bindir}/py*" 40*4882a593SmuzhiyunRDEPENDS:${PN} = "python3-core" 41*4882a593Smuzhiyun 42*4882a593Smuzhiyun# cec-client and xbmc need the .so present to work :( 43*4882a593SmuzhiyunFILES:${PN} += "${libdir}/*.so" 44*4882a593SmuzhiyunINSANE_SKIP:${PN} = "dev-so" 45*4882a593Smuzhiyun 46*4882a593Smuzhiyun# Adapter shows up as a CDC-ACM device 47*4882a593SmuzhiyunRRECOMMENDS:${PN} = "kernel-module-cdc-acm" 48