media-plugins/bestsource: add patch to generate pkgconfig file
This commit is contained in:
parent
5381c1565d
commit
2117f333fa
|
@ -31,6 +31,8 @@ RDEPEND+="
|
|||
DEPEND="${RDEPEND}
|
||||
"
|
||||
|
||||
PATCHES="${FILESDIR}/0001-generate-pkgconfig-file.patch"
|
||||
|
||||
src_unpack() {
|
||||
git-r3_fetch
|
||||
git-r3_checkout
|
||||
|
|
|
@ -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
|
||||
|
Loading…
Reference in a new issue