odrling-overlay/media-plugins/bestsource/files/0001-generate-pkgconfig-file.patch

34 lines
813 B
Diff

From e778a55d50900399a60ad6b26cc05fda9fda0cce Mon Sep 17 00:00:00 2001
From: odrling <florianbadie@odrling.xyz>
Date: Mon, 22 Jan 2024 08:31:58 +0100
Subject: [PATCH] generate pkgconfig file
meson makes it easy
---
meson.build | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/meson.build b/meson.build
index 71f201a..c2604ef 100644
--- a/meson.build
+++ b/meson.build
@@ -66,7 +66,7 @@ elif is_gnu_linker
link_args += ['-Wl,-Bsymbolic']
endif
-shared_module('bestsource', sources,
+bs_mod = shared_module('bestsource', sources,
dependencies: deps,
gnu_symbol_visibility: 'hidden',
install: true,
@@ -74,3 +74,6 @@ shared_module('bestsource', sources,
link_args: link_args,
link_with: libs
)
+
+pkg = import('pkgconfig')
+pkg.generate(bs_mod)
--
2.43.0