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
50