blob: 741e1030cf9ab8664a31909e8f56614cea0d12e8 [file] [log] [blame]
Andrew Geissler9aee5002022-03-30 16:27:02 +00001SUMMARY = "v4l2 and IR applications"
2LICENSE = "GPL-2.0-only & LGPL-2.1-only"
3LIC_FILES_CHKSUM = "file://COPYING;md5=48da9957849056017dc568bbc43d8975 \
4 file://COPYING.libv4l;md5=d749e86a105281d7a44c2328acebc4b0"
5PROVIDES = "libv4l media-ctl"
6
7DEPENDS = "jpeg \
8 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/libx11', '', d)} \
9 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
10DEPENDS:append:libc-musl = " argp-standalone"
11DEPENDS:append:class-target = " udev"
12LDFLAGS:append = " -pthread"
13
14inherit autotools gettext pkgconfig
15
16PACKAGECONFIG ??= "media-ctl"
17PACKAGECONFIG[media-ctl] = "--enable-v4l-utils,--disable-v4l-utils,,"
18
19SRC_URI = "http://linuxtv.org/downloads/v4l-utils/v4l-utils-${PV}.tar.bz2 \
20 file://0001-Revert-media-ctl-Don-t-install-libmediactl-and-libv4.patch \
21 file://0002-original-patch-mediactl-pkgconfig.patch \
22 file://0003-original-patch-export-mediactl-headers.patch \
23 file://0007-Do-not-use-getsubopt.patch \
24 "
25
26SRC_URI[md5sum] = "8aa73287320a49e9170a8255d7b2c7e6"
27SRC_URI[sha256sum] = "65c6fbe830a44ca105c443b027182c1b2c9053a91d1e72ad849dfab388b94e31"
28
29EXTRA_OECONF = "--disable-qv4l2 --enable-shared --with-udevdir=${base_libdir}/udev \
30 --disable-v4l2-compliance-32 --disable-v4l2-ctl-32"
31
32VIRTUAL-RUNTIME_ir-keytable-keymaps ?= "rc-keymaps"
33
34PACKAGES =+ "media-ctl ir-keytable rc-keymaps libv4l libv4l-dev"
35
36RPROVIDES:${PN}-dbg += "libv4l-dbg"
37
38FILES:media-ctl = "${bindir}/media-ctl ${libdir}/libmediactl.so.*"
39
40FILES:ir-keytable = "${bindir}/ir-keytable ${base_libdir}/udev/rules.d/*-infrared.rules"
41RDEPENDS:ir-keytable += "${VIRTUAL-RUNTIME_ir-keytable-keymaps}"
42
43FILES:rc-keymaps = "${sysconfdir}/rc* ${base_libdir}/udev/rc*"
44
45FILES:${PN} = "${bindir} ${sbindir}"
46
47FILES:libv4l += "${libdir}/libv4l*${SOLIBS} ${libdir}/libv4l/*.so ${libdir}/libv4l/plugins/*.so \
48 ${libdir}/libdvbv5*${SOLIBS} \
49 ${libdir}/libv4l/*-decomp"
50
51FILES:libv4l-dev += "${includedir} ${libdir}/pkgconfig \
52 ${libdir}/libv4l*${SOLIBSDEV} ${libdir}/*.la \
53 ${libdir}/v4l*${SOLIBSDEV} ${libdir}/libv4l/*.la ${libdir}/libv4l/plugins/*.la"
54
55PARALLEL_MAKE:class-native = ""
56BBCLASSEXTEND = "native"