Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 1 | SUMMARY = "v4l2 and IR applications" |
| 2 | LICENSE = "GPLv2 & LGPLv2.1" |
| 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=48da9957849056017dc568bbc43d8975 \ |
| 4 | file://COPYING.libv4l;md5=d749e86a105281d7a44c2328acebc4b0" |
| 5 | PROVIDES = "libv4l media-ctl" |
| 6 | |
| 7 | DEPENDS = "jpeg \ |
Andrew Geissler | f103a7f | 2021-05-07 16:09:40 -0500 | [diff] [blame] | 8 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/libx11', '', d)} \ |
| 9 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 10 | DEPENDS:append:libc-musl = " argp-standalone" |
| 11 | DEPENDS:append:class-target = " udev" |
| 12 | LDFLAGS:append = " -pthread" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 13 | |
| 14 | inherit autotools gettext pkgconfig |
| 15 | |
| 16 | PACKAGECONFIG ??= "media-ctl" |
| 17 | PACKAGECONFIG[media-ctl] = "--enable-v4l-utils,--disable-v4l-utils,," |
| 18 | |
| 19 | SRC_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://mediactl-pkgconfig.patch \ |
| 22 | file://export-mediactl-headers.patch \ |
| 23 | file://0002-contrib-test-Link-mc_nextgen_test-with-libargp-if-ne.patch \ |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 24 | file://0007-Do-not-use-getsubopt.patch \ |
Andrew Geissler | f103a7f | 2021-05-07 16:09:40 -0500 | [diff] [blame] | 25 | file://0008-configure.ac-autodetect-availability-of-systemd.patch \ |
| 26 | file://0009-keytable-restrict-installation-of-50-rc_keymap.conf.patch \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 27 | " |
Andrew Geissler | 97771a3 | 2021-03-05 15:23:11 -0600 | [diff] [blame] | 28 | SRC_URI[md5sum] = "46f9e2c0b2fdccd009da2f7e1aa87894" |
| 29 | SRC_URI[sha256sum] = "956118713f7ccb405c55c7088a6a2490c32d54300dd9a30d8d5008c28d3726f7" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 30 | |
Andrew Geissler | 97771a3 | 2021-03-05 15:23:11 -0600 | [diff] [blame] | 31 | EXTRA_OECONF = "--disable-qv4l2 --enable-shared --with-udevdir=${base_libdir}/udev \ |
Andrew Geissler | f103a7f | 2021-05-07 16:09:40 -0500 | [diff] [blame] | 32 | --disable-v4l2-compliance-32 --disable-v4l2-ctl-32" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 33 | |
| 34 | VIRTUAL-RUNTIME_ir-keytable-keymaps ?= "rc-keymaps" |
| 35 | |
| 36 | PACKAGES =+ "media-ctl ir-keytable rc-keymaps libv4l libv4l-dev" |
| 37 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 38 | RPROVIDES:${PN}-dbg += "libv4l-dbg" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 39 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 40 | FILES:media-ctl = "${bindir}/media-ctl ${libdir}/libmediactl.so.*" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 41 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 42 | FILES:ir-keytable = "${bindir}/ir-keytable ${base_libdir}/udev/rules.d/*-infrared.rules" |
| 43 | RDEPENDS:ir-keytable += "${VIRTUAL-RUNTIME_ir-keytable-keymaps}" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 44 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 45 | FILES:rc-keymaps = "${sysconfdir}/rc* ${base_libdir}/udev/rc*" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 46 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 47 | FILES:${PN} = "${bindir} ${sbindir}" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 48 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 49 | FILES:libv4l += "${libdir}/libv4l*${SOLIBS} ${libdir}/libv4l/*.so ${libdir}/libv4l/plugins/*.so \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 50 | ${libdir}/libdvbv5*${SOLIBS} \ |
| 51 | ${libdir}/libv4l/*-decomp" |
| 52 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 53 | FILES:libv4l-dev += "${includedir} ${libdir}/pkgconfig \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 54 | ${libdir}/libv4l*${SOLIBSDEV} ${libdir}/*.la \ |
| 55 | ${libdir}/v4l*${SOLIBSDEV} ${libdir}/libv4l/*.la ${libdir}/libv4l/plugins/*.la" |
| 56 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 57 | PARALLEL_MAKE:class-native = "" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 58 | BBCLASSEXTEND = "native" |