mirror of
https://github.com/thead-yocto-mirror/meta-openembedded
synced 2026-09-16 20:21:58 +02:00
Upgrading to newer v4l-utils 1.12.3 on commit f84a551f2d
Is causing issues because libdvbv5 now require libudev in order to work
(commit db42484881bf5e6a902de51fe42444ddf286d52a on v4l-utils).
First issue is missing dvb utils dvb-fe-tool, dvb-format-convert, dvbv5-daemon, dvbv5-scan, dvbv5-zap
because libdvbv5 requires now libudev.
Another issue was the failure of building dvb-apps (currently removed from master)
because the v4l-utils-native is missing dvb-format-convert.
This commit adds the missing udev dependency only on target and brings back the missing dvb utils.
Adding udev on native build is not possible because nothing provides udev-native.
Additionally add lib pthread to LDFLAGS in order to solve building with gold.
../../lib/libdvbv5/.libs/libdvbv5.so: error: undefined reference to 'pthread_cancel'
../../lib/libdvbv5/.libs/libdvbv5.so: error: undefined reference to 'pthread_create'
Issue with gold linking reported upstream and hopefully will be addressed soon.
Signed-off-by: Athanasios Oikonomou <athoik@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
56 lines
2.4 KiB
BlitzBasic
56 lines
2.4 KiB
BlitzBasic
SUMMARY = "v4l2 and IR applications"
|
|
LICENSE = "GPLv2 & LGPLv2.1"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=48da9957849056017dc568bbc43d8975 \
|
|
file://COPYING.libv4l;md5=d749e86a105281d7a44c2328acebc4b0"
|
|
PROVIDES = "libv4l media-ctl"
|
|
|
|
DEPENDS = "jpeg \
|
|
${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/libx11', '', d)}"
|
|
DEPENDS_append_libc-musl = " argp-standalone"
|
|
DEPENDS_append_class-target = " udev"
|
|
LDFLAGS_append = " -pthread"
|
|
|
|
inherit autotools gettext pkgconfig
|
|
|
|
PACKAGECONFIG ??= "media-ctl"
|
|
PACKAGECONFIG[media-ctl] = "--enable-v4l-utils,--disable-v4l-utils,,"
|
|
|
|
SRC_URI = "http://linuxtv.org/downloads/v4l-utils/v4l-utils-${PV}.tar.bz2 \
|
|
file://0001-Revert-media-ctl-Don-t-install-libmediactl-and-libv4.patch \
|
|
file://0001-buildsystem-do-not-assume-building-in-source-tree.patch \
|
|
file://mediactl-pkgconfig.patch \
|
|
file://export-mediactl-headers.patch \
|
|
file://0001-ir-ctl-Define-TEMP_FAILURE_RETRY-if-undefined.patch \
|
|
file://0002-contrib-test-Link-mc_nextgen_test-with-libargp-if-ne.patch \
|
|
file://0003-v4l2-ctl-Do-not-use-getsubopt.patch \
|
|
"
|
|
SRC_URI[md5sum] = "89e1ed6c69c94e0489dc0a638c7841aa"
|
|
SRC_URI[sha256sum] = "5a47dd6f0e7dfe902d94605c01d385a4a4e87583ff5856d6f181900ea81cf46e"
|
|
|
|
EXTRA_OECONF = "--disable-qv4l2 --enable-shared --with-udevdir=${base_libdir}/udev"
|
|
|
|
VIRTUAL-RUNTIME_ir-keytable-keymaps ?= "rc-keymaps"
|
|
|
|
PACKAGES =+ "media-ctl ir-keytable rc-keymaps libv4l libv4l-dbg libv4l-dev"
|
|
|
|
FILES_media-ctl = "${bindir}/media-ctl ${libdir}/libmediactl.so.*"
|
|
|
|
FILES_ir-keytable = "${bindir}/ir-keytable ${base_libdir}/udev/rules.d/*-infrared.rules"
|
|
RDEPENDS_ir-keytable += "${VIRTUAL-RUNTIME_ir-keytable-keymaps}"
|
|
|
|
FILES_rc-keymaps = "${sysconfdir}/rc* ${base_libdir}/udev/rc*"
|
|
|
|
FILES_${PN} = "${bindir} ${sbindir}"
|
|
|
|
FILES_libv4l += "${libdir}/libv4l*${SOLIBS} ${libdir}/libv4l/*.so ${libdir}/libv4l/plugins/*.so \
|
|
${libdir}/libdvbv5*${SOLIBS} \
|
|
${libdir}/libv4l/*-decomp"
|
|
|
|
FILES_libv4l-dbg += "${libdir}/libv4l/.debug ${libdir}/libv4l/plugins/.debug"
|
|
FILES_libv4l-dev += "${includedir} ${libdir}/pkgconfig \
|
|
${libdir}/libv4l*${SOLIBSDEV} ${libdir}/*.la \
|
|
${libdir}/v4l*${SOLIBSDEV} ${libdir}/libv4l/*.la ${libdir}/libv4l/plugins/*.la"
|
|
|
|
PARALLEL_MAKE_class-native = ""
|
|
BBCLASSEXTEND = "native"
|