diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-03-26 01:12:23 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-03-26 18:15:11 -0700 |
commit | 36883aece976682bfa8c24a4de0d0a0966e9559a (patch) | |
tree | bc39dd3454d2c1262a25bd4f421ff1f64708cbf7 /meta-oe/recipes-support | |
parent | ea5e40888c621634f5253e83ee7c2dc15d95fa54 (diff) | |
download | meta-openembedded-36883aece976682bfa8c24a4de0d0a0966e9559a.tar.gz |
iniparser: Update to latest tip of trunk
Install .pc file
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support')
-rw-r--r-- | meta-oe/recipes-support/iniparser/iniparser/0001-iniparser.pc-Make-libpath-a-variable.patch | 23 | ||||
-rw-r--r-- | meta-oe/recipes-support/iniparser/iniparser_4.1.bb | 11 |
2 files changed, 32 insertions, 2 deletions
diff --git a/meta-oe/recipes-support/iniparser/iniparser/0001-iniparser.pc-Make-libpath-a-variable.patch b/meta-oe/recipes-support/iniparser/iniparser/0001-iniparser.pc-Make-libpath-a-variable.patch new file mode 100644 index 000000000..4824344f0 --- /dev/null +++ b/meta-oe/recipes-support/iniparser/iniparser/0001-iniparser.pc-Make-libpath-a-variable.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | From 1761298b73c759c07e4652ada307f68512a75ff1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 25 Mar 2022 20:44:41 -0700 | ||
4 | Subject: [PATCH] iniparser.pc: Make libpath a variable | ||
5 | |||
6 | Will set according to baselib that yocto exports. | ||
7 | |||
8 | Upstream-Status: Inappropriate [OE-specific] | ||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | iniparser.pc | 2 +- | ||
12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
13 | |||
14 | --- a/iniparser.pc | ||
15 | +++ b/iniparser.pc | ||
16 | @@ -1,6 +1,6 @@ | ||
17 | prefix=/usr | ||
18 | exec_prefix=/usr | ||
19 | -libdir=${exec_prefix}/lib | ||
20 | +libdir=${exec_prefix}/@baselib@ | ||
21 | includedir=${prefix}/include | ||
22 | datarootdir=${prefix}/share | ||
23 | datadir=${datarootdir} | ||
diff --git a/meta-oe/recipes-support/iniparser/iniparser_4.1.bb b/meta-oe/recipes-support/iniparser/iniparser_4.1.bb index f3593fb5f..2810a4f65 100644 --- a/meta-oe/recipes-support/iniparser/iniparser_4.1.bb +++ b/meta-oe/recipes-support/iniparser/iniparser_4.1.bb | |||
@@ -6,12 +6,19 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=e02baf71c76e0650e667d7da133379ac" | |||
6 | 6 | ||
7 | DEPENDS = "doxygen-native" | 7 | DEPENDS = "doxygen-native" |
8 | 8 | ||
9 | PV .= "+git${SRCPV}" | ||
10 | |||
9 | SRC_URI = "git://github.com/ndevilla/iniparser.git;protocol=https;branch=master \ | 11 | SRC_URI = "git://github.com/ndevilla/iniparser.git;protocol=https;branch=master \ |
12 | file://0001-iniparser.pc-Make-libpath-a-variable.patch \ | ||
10 | file://Add-CMake-support.patch" | 13 | file://Add-CMake-support.patch" |
11 | 14 | ||
12 | # tag 4.1 | 15 | SRCREV= "deb85ad4936d4ca32cc2260ce43323d47936410d" |
13 | SRCREV= "0a38e85c9cde1e099ca3bf70083bd00f89c3e5b6" | ||
14 | 16 | ||
15 | S = "${WORKDIR}/git" | 17 | S = "${WORKDIR}/git" |
16 | 18 | ||
17 | inherit cmake | 19 | inherit cmake |
20 | |||
21 | do_install:append() { | ||
22 | install -Dm 0644 ${S}/iniparser.pc ${D}${libdir}/pkgconfig/iniparser.pc | ||
23 | sed -i -e 's,@baselib@,${baselib},g' ${D}${libdir}/pkgconfig/iniparser.pc | ||
24 | } | ||