Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/flathub/shared-modules.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHubert Figuière <hub@figuiere.net>2021-05-15 16:19:11 +0300
committerPatrick <tingping@tingping.se>2021-05-15 18:53:25 +0300
commit0e412f4bb009443fa7940334e9d895bf9008f900 (patch)
tree9ca26dc1bda76f04f2aba5ef9d494cc6687bf880
parentfd4d38328ccb078b88ad4a891807e593ae8de806 (diff)
libmad: add pc files like in distro as app expect it
-rw-r--r--libmad/libmad.json8
-rw-r--r--libmad/mad.pc11
2 files changed, 19 insertions, 0 deletions
diff --git a/libmad/libmad.json b/libmad/libmad.json
index 7ee6cc7..cfebd20 100644
--- a/libmad/libmad.json
+++ b/libmad/libmad.json
@@ -1,5 +1,9 @@
{
"name" : "libmad",
+ "post-install": [
+ "install -d $FLATPAK_DEST/lib/pkgconfig",
+ "install -Dm644 -t $FLATPAK_DEST/lib/pkgconfig mad.pc"
+ ],
"sources" : [
{
"type" : "archive",
@@ -31,6 +35,10 @@
"path": "libmad-0.15.1b-cflags-O2.patch"
},
{
+ "type": "file",
+ "path": "mad.pc"
+ },
+ {
"type": "shell",
"commands": [
"cp /usr/share/gnu-config/config.sub .",
diff --git a/libmad/mad.pc b/libmad/mad.pc
new file mode 100644
index 0000000..15d8531
--- /dev/null
+++ b/libmad/mad.pc
@@ -0,0 +1,11 @@
+prefix=/app
+exec_prefix=/app
+libdir=/app/lib
+includedir=/app/include
+
+Name: mad
+Description: MPEG Audio Decoder
+Requires:
+Version: 0.15.1b
+Libs: -L/app/lib} -lmad -lm
+Cflags: -I/app/include \ No newline at end of file