media-plugins/bestsource: add patch to generate pkgconfig file

This commit is contained in:
odrling 2024-01-22 08:35:27 +01:00
parent 5381c1565d
commit 2117f333fa
No known key found for this signature in database
GPG key ID: E24CA7508C27AF5B
2 changed files with 35 additions and 0 deletions

View file

@ -31,6 +31,8 @@ RDEPEND+="
DEPEND="${RDEPEND}
"
PATCHES="${FILESDIR}/0001-generate-pkgconfig-file.patch"
src_unpack() {
git-r3_fetch
git-r3_checkout

View file

@ -0,0 +1,33 @@
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