1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
This file is part of MXE. See LICENSE.md for licensing information.
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Mark Brand <mabrand@mabrand.nl>
Date: Mon, 17 Jun 2019 13:54:23 +0200
Subject: [PATCH 1/1] use pkgconfig
diff --git a/src/imageformats/configure.json b/src/imageformats/configure.json
index 1111111..2222222 100644
--- a/src/imageformats/configure.json
+++ b/src/imageformats/configure.json
@@ -51,9 +51,6 @@
"stdio.h",
"libmng.h"
],
- "qmake": [
- "LIBS += -lmng"
- ],
"main": [
"mng_handle hMNG;",
"mng_cleanup(&hMNG);",
@@ -67,6 +64,7 @@
}
},
"sources": [
+ { "type": "pkgConfig", "args": "libmng" },
"-lmng"
]
},
@@ -77,10 +75,6 @@
"type": "compile",
"test": {
"include": "tiffio.h",
- "qmake": [
- "unix|mingw: LIBS += -ltiff",
- "else:win32: LIBS += libtiff.lib"
- ],
"main": [
"#if !defined(TIFF_VERSION) && defined(TIFF_VERSION_CLASSIC)",
"// libtiff 4.0 splits it into TIFF_VERSION_CLASSIC and TIFF_VERSION_BIG",
@@ -105,6 +99,7 @@
}
},
"sources": [
+ { "type": "pkgConfig", "args": "libtiff-4" },
"-ltiff"
]
},
@@ -119,9 +114,6 @@
"webp/encode.h",
"webp/demux.h"
],
- "qmake": [
- "LIBS += -lwebp -lwebpdemux"
- ],
"main": [
"#if WEBP_ABI_IS_INCOMPATIBLE(WEBP_DECODER_ABI_VERSION, 0x0203) || WEBP_ABI_IS_INCOMPATIBLE(WEBP_ENCODER_ABI_VERSION, 0x0202)",
"#error \"Incompatible libwebp version\"",
@@ -144,6 +136,7 @@
}
},
"sources": [
+ { "type": "pkgConfig", "args": "libwebp libwebpdemux" },
"-lwebp -lwebpdemux"
]
}
|