summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-media-ctl-Install-media-ctl-pkg-config-files.patch49
-rw-r--r--meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.26.1.bb1
2 files changed, 50 insertions, 0 deletions
diff --git a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-media-ctl-Install-media-ctl-pkg-config-files.patch b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-media-ctl-Install-media-ctl-pkg-config-files.patch
new file mode 100644
index 0000000000..8a009ae806
--- /dev/null
+++ b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-media-ctl-Install-media-ctl-pkg-config-files.patch
@@ -0,0 +1,49 @@
1From a422ddf7f8805d34ff1fbb46d335993c9cd05ead Mon Sep 17 00:00:00 2001
2From: Einar Jon Gunnarsson <tolvupostur@gmail.com>
3Date: Fri, 10 May 2024 11:56:17 +0200
4Subject: [PATCH] media-ctl: Install media-ctl pkg-config files
5
6libv4l2subdev/libmediactl can not be used in projects without the
7pkg-config files. This adds them as well.
8
9Upstream-Status: Denied
10
11This is an add-on to the previous patch:
120001-media-ctl-Install-media-ctl-header-and-library-files.patch
13so same restrictions apply.
14
15Signed-off-by: Einar Jon Gunnarsson <tolvupostur@gmail.com>
16---
17 utils/media-ctl/meson.build | 12 ++++++++++++
18 1 file changed, 12 insertions(+)
19
20diff --git a/utils/media-ctl/meson.build b/utils/media-ctl/meson.build
21index 40669b4c..6feba1af 100644
22--- a/utils/media-ctl/meson.build
23+++ b/utils/media-ctl/meson.build
24@@ -38,6 +38,12 @@ libv4l2subdev = library('v4l2subdev',
25
26 dep_libv4l2subdev = declare_dependency(link_with : libv4l2subdev)
27
28+pkg.generate(
29+ libv4l2subdev,
30+ name : 'libv4l2subdev',
31+ version : meson.project_version(),
32+ description : 'v4l2 subdev library')
33+
34 media_ctl_sources = files(
35 'media-ctl.c',
36 'options.c',
37@@ -55,3 +61,9 @@ media_ctl = executable('media-ctl',
38 dependencies : media_ctl_deps,
39 install : true,
40 include_directories : v4l2_utils_incdir)
41+
42+pkg.generate(
43+ libmediactl,
44+ name : 'libmediactl',
45+ version : meson.project_version(),
46+ description : 'v4l2 mediactl library')
47--
482.43.5
49
diff --git a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.26.1.bb b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.26.1.bb
index eb38d97132..8ab96760a5 100644
--- a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.26.1.bb
+++ b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.26.1.bb
@@ -29,6 +29,7 @@ SRC_URI = "\
29 git://git.linuxtv.org/v4l-utils.git;protocol=https;branch=stable-1.26 \ 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 \ 30 file://0001-keytable-meson-Restrict-the-installation-of-50-rc_ke.patch \
31 file://0001-media-ctl-Install-media-ctl-header-and-library-files.patch \ 31 file://0001-media-ctl-Install-media-ctl-header-and-library-files.patch \
32 file://0002-media-ctl-Install-media-ctl-pkg-config-files.patch \
32" 33"
33 34
34SRCREV = "4aee01a027923cab1e40969f56f8ba58d3e6c0d1" 35SRCREV = "4aee01a027923cab1e40969f56f8ba58d3e6c0d1"