Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame] | 1 | SUMMARY = "v4l2 and IR applications" |
| 2 | LICENSE = "GPL-2.0-only & LGPL-2.1-only" |
| 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=48da9957849056017dc568bbc43d8975 \ |
| 4 | file://COPYING.libv4l;md5=d749e86a105281d7a44c2328acebc4b0" |
| 5 | PROVIDES = "libv4l media-ctl" |
| 6 | |
| 7 | DEPENDS = "jpeg \ |
| 8 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/libx11', '', d)} \ |
| 9 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \ |
| 10 | ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa-lib', '', d)} \ |
| 11 | ${@bb.utils.contains_any('PACKAGECONFIG', 'qv4l2 qvidcap', 'qtbase qtbase-native', '', d)}" |
| 12 | |
| 13 | DEPENDS:append:libc-musl = " argp-standalone" |
| 14 | DEPENDS:append:class-target = " udev" |
| 15 | LDFLAGS:append = " -pthread" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 16 | # v4l2 explicitly sets _FILE_OFFSET_BITS=32 to get access to |
| 17 | # both 32 and 64 bit file APIs. But it does not handle the time side? |
| 18 | # Needs further investigation |
| 19 | GLIBC_64BIT_TIME_FLAGS = "" |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame] | 20 | |
Patrick Williams | 56b44a9 | 2024-01-19 08:49:29 -0600 | [diff] [blame] | 21 | inherit meson gettext pkgconfig |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame] | 22 | |
Patrick Williams | 56b44a9 | 2024-01-19 08:49:29 -0600 | [diff] [blame] | 23 | PACKAGECONFIG ??= "" |
| 24 | PACKAGECONFIG[qv4l2] = ",-Dqv4l2=disabled" |
| 25 | PACKAGECONFIG[qvidcap] = ",-Dqvidcap=disabled" |
| 26 | PACKAGECONFIG[v4l2-tracer] = ",-Dv4l2-tracer=disabled,json-c" |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame] | 27 | |
| 28 | SRC_URI = "\ |
Patrick Williams | 56b44a9 | 2024-01-19 08:49:29 -0600 | [diff] [blame] | 29 | git://git.linuxtv.org/v4l-utils.git;protocol=https;branch=stable-1.26 \ |
| 30 | file://0001-keytable-meson-Restrict-the-installation-of-50-rc_ke.patch \ |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame] | 31 | " |
| 32 | |
Patrick Williams | 56b44a9 | 2024-01-19 08:49:29 -0600 | [diff] [blame] | 33 | SRCREV = "4aee01a027923cab1e40969f56f8ba58d3e6c0d1" |
Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame] | 34 | |
| 35 | PV .= "+git${SRCPV}" |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame] | 36 | |
| 37 | S = "${WORKDIR}/git" |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame] | 38 | |
Patrick Williams | 56b44a9 | 2024-01-19 08:49:29 -0600 | [diff] [blame] | 39 | EXTRA_OEMESON = "-Dudevdir=${base_libdir}/udev -Dv4l2-compliance-32=false -Dv4l2-ctl-32=false" |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame] | 40 | |
Patrick Williams | 56b44a9 | 2024-01-19 08:49:29 -0600 | [diff] [blame] | 41 | # Disable the erroneous installation of gconv-modules that would break glib |
| 42 | # like it is done in Debian and ArchLinux. |
| 43 | EXTRA_OEMESON += "-Dgconv=disabled" |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame] | 44 | |
| 45 | VIRTUAL-RUNTIME_ir-keytable-keymaps ?= "rc-keymaps" |
| 46 | |
| 47 | PACKAGES =+ "media-ctl ir-keytable rc-keymaps libv4l libv4l-dev qv4l2 qvidcap" |
| 48 | |
| 49 | RPROVIDES:${PN}-dbg += "libv4l-dbg" |
| 50 | |
| 51 | FILES:media-ctl = "${bindir}/media-ctl ${libdir}/libmediactl.so.*" |
| 52 | FILES:qv4l2 = "\ |
| 53 | ${bindir}/qv4l2 \ |
| 54 | ${datadir}/applications/qv4l2.desktop \ |
| 55 | ${datadir}/icons/hicolor/*/apps/qv4l2.* \ |
| 56 | " |
| 57 | FILES:qvidcap = "\ |
| 58 | ${bindir}/qvidcap \ |
| 59 | ${datadir}/applications/qvidcap.desktop \ |
| 60 | ${datadir}/icons/hicolor/*/apps/qvidcap.* \ |
| 61 | " |
| 62 | |
| 63 | FILES:ir-keytable = "${bindir}/ir-keytable ${base_libdir}/udev/rules.d/*-infrared.rules" |
| 64 | RDEPENDS:ir-keytable += "${VIRTUAL-RUNTIME_ir-keytable-keymaps}" |
| 65 | RDEPENDS:qv4l2 += "\ |
| 66 | ${@bb.utils.contains('PACKAGECONFIG', 'qv4l2', 'qtbase', '', d)}" |
| 67 | RDEPENDS:qvidcap += "\ |
| 68 | ${@bb.utils.contains('PACKAGECONFIG', 'qvidcap', 'qtbase', '', d)}" |
| 69 | |
| 70 | FILES:rc-keymaps = "${sysconfdir}/rc* ${base_libdir}/udev/rc*" |
| 71 | |
| 72 | FILES:${PN} = "${bindir} ${sbindir}" |
| 73 | |
| 74 | FILES:libv4l += "${libdir}/libv4l*${SOLIBS} ${libdir}/libv4l/*.so ${libdir}/libv4l/plugins/*.so \ |
| 75 | ${libdir}/libdvbv5*${SOLIBS} \ |
Patrick Williams | 705982a | 2024-01-12 09:51:57 -0600 | [diff] [blame] | 76 | ${libdir}/libv4l/*-decomp \ |
| 77 | ${libdir}/libv4l2tracer.so \ |
| 78 | " |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame] | 79 | |
| 80 | FILES:libv4l-dev += "${includedir} ${libdir}/pkgconfig \ |
| 81 | ${libdir}/libv4l*${SOLIBSDEV} ${libdir}/*.la \ |
| 82 | ${libdir}/v4l*${SOLIBSDEV} ${libdir}/libv4l/*.la ${libdir}/libv4l/plugins/*.la" |
| 83 | |
| 84 | PARALLEL_MAKE:class-native = "" |
| 85 | BBCLASSEXTEND = "native" |