blob: 3e92d49b4fbbf96175a3d1b1d5a028b9638160c3 [file] [log] [blame]
Brad Bishopc342db32019-05-15 21:57:59 -04001SUMMARY = "v4l2 and IR applications"
2LICENSE = "GPLv2 & LGPLv2.1"
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)}"
9DEPENDS_append_libc-musl = " argp-standalone"
10DEPENDS_append_class-target = " udev"
11LDFLAGS_append = " -pthread"
12
13inherit autotools gettext pkgconfig
14
15PACKAGECONFIG ??= "media-ctl"
16PACKAGECONFIG[media-ctl] = "--enable-v4l-utils,--disable-v4l-utils,,"
17
18SRC_URI = "http://linuxtv.org/downloads/v4l-utils/v4l-utils-${PV}.tar.bz2 \
19 file://0001-Revert-media-ctl-Don-t-install-libmediactl-and-libv4.patch \
20 file://mediactl-pkgconfig.patch \
21 file://export-mediactl-headers.patch \
22 file://0002-contrib-test-Link-mc_nextgen_test-with-libargp-if-ne.patch \
Brad Bishope42b3e32020-01-15 22:08:42 -050023 file://0007-Do-not-use-getsubopt.patch \
Brad Bishopc342db32019-05-15 21:57:59 -040024 "
Andrew Geissler97771a32021-03-05 15:23:11 -060025SRC_URI[md5sum] = "46f9e2c0b2fdccd009da2f7e1aa87894"
26SRC_URI[sha256sum] = "956118713f7ccb405c55c7088a6a2490c32d54300dd9a30d8d5008c28d3726f7"
Brad Bishopc342db32019-05-15 21:57:59 -040027
Andrew Geissler97771a32021-03-05 15:23:11 -060028EXTRA_OECONF = "--disable-qv4l2 --enable-shared --with-udevdir=${base_libdir}/udev \
29 --disable-v4l2-compliance-32 --disable-v4l2-ctl-32 \
30 --with-systemdsystemunitdir=${systemd_system_unitdir}"
Brad Bishopc342db32019-05-15 21:57:59 -040031
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
Andrew Geissler97771a32021-03-05 15:23:11 -060040FILES_ir-keytable = "${bindir}/ir-keytable ${base_libdir}/udev/rules.d/*-infrared.rules \
41 ${systemd_system_unitdir}/systemd-udevd.service.d/50-rc_keymap.conf"
Brad Bishopc342db32019-05-15 21:57:59 -040042RDEPENDS_ir-keytable += "${VIRTUAL-RUNTIME_ir-keytable-keymaps}"
43
44FILES_rc-keymaps = "${sysconfdir}/rc* ${base_libdir}/udev/rc*"
45
46FILES_${PN} = "${bindir} ${sbindir}"
47
48FILES_libv4l += "${libdir}/libv4l*${SOLIBS} ${libdir}/libv4l/*.so ${libdir}/libv4l/plugins/*.so \
49 ${libdir}/libdvbv5*${SOLIBS} \
50 ${libdir}/libv4l/*-decomp"
51
52FILES_libv4l-dev += "${includedir} ${libdir}/pkgconfig \
53 ${libdir}/libv4l*${SOLIBSDEV} ${libdir}/*.la \
54 ${libdir}/v4l*${SOLIBSDEV} ${libdir}/libv4l/*.la ${libdir}/libv4l/plugins/*.la"
55
56PARALLEL_MAKE_class-native = ""
57BBCLASSEXTEND = "native"