diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2020-06-08 09:46:22 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-06-09 13:13:59 +0100 |
commit | a3838ee740df9e1a9af38fd62acefbd3ca0e1f2d (patch) | |
tree | f0faf90e5334790c4ceb2de9311418164eabd4ce /meta/recipes-devtools/pkgconf/pkgconf_1.7.3.bb | |
parent | e1f0db6186e4f1ce5e5522989faff42dc823d069 (diff) | |
download | poky-a3838ee740df9e1a9af38fd62acefbd3ca0e1f2d.tar.gz |
pkgconf: upgrade 1.6.3 -> 1.7.3
(From OE-Core rev: 6505cd832a946ccfbe07ad8d3d91962171fdef3a)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/pkgconf/pkgconf_1.7.3.bb')
-rw-r--r-- | meta/recipes-devtools/pkgconf/pkgconf_1.7.3.bb | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/meta/recipes-devtools/pkgconf/pkgconf_1.7.3.bb b/meta/recipes-devtools/pkgconf/pkgconf_1.7.3.bb new file mode 100644 index 0000000000..12496c3849 --- /dev/null +++ b/meta/recipes-devtools/pkgconf/pkgconf_1.7.3.bb | |||
@@ -0,0 +1,67 @@ | |||
1 | SUMMARY = "pkgconf provides compiler and linker configuration for development frameworks." | ||
2 | DESCRIPTION = "pkgconf is a program which helps to configure compiler and linker \ | ||
3 | flags for development frameworks. It is similar to pkg-config from \ | ||
4 | freedesktop.org, providing additional functionality while also maintaining \ | ||
5 | compatibility." | ||
6 | HOMEPAGE = "http://pkgconf.org" | ||
7 | BUGTRACKER = "https://github.com/pkgconf/pkgconf/issues" | ||
8 | SECTION = "devel" | ||
9 | PROVIDES += "pkgconfig" | ||
10 | RPROVIDES_${PN} += "pkgconfig" | ||
11 | |||
12 | # The pkgconf license seems to be functionally equivalent to BSD-2-Clause or | ||
13 | # ISC, but has different wording, so needs its own name. | ||
14 | LICENSE = "pkgconf" | ||
15 | LIC_FILES_CHKSUM = "file://COPYING;md5=2214222ec1a820bd6cc75167a56925e0" | ||
16 | |||
17 | SRC_URI = "\ | ||
18 | https://distfiles.dereferenced.org/pkgconf/pkgconf-${PV}.tar.xz \ | ||
19 | file://pkg-config-wrapper \ | ||
20 | file://pkg-config-native.in \ | ||
21 | file://pkg-config-esdk.in \ | ||
22 | " | ||
23 | SRC_URI[sha256sum] = "b846aea51cf696c3392a0ae58bef93e2e72f8e7073ca6ad1ed8b01c85871f9c0" | ||
24 | |||
25 | inherit autotools | ||
26 | |||
27 | EXTRA_OECONF += "--with-pkg-config-dir='${libdir}/pkgconfig:${datadir}/pkgconfig'" | ||
28 | |||
29 | do_install_append () { | ||
30 | # Install a wrapper which deals, as much as possible with pkgconf vs | ||
31 | # pkg-config compatibility issues. | ||
32 | install -m 0755 "${WORKDIR}/pkg-config-wrapper" "${D}${bindir}/pkg-config" | ||
33 | } | ||
34 | |||
35 | do_install_append_class-native () { | ||
36 | # Install a pkg-config-native wrapper that will use the native sysroot instead | ||
37 | # of the MACHINE sysroot, for using pkg-config when building native tools. | ||
38 | sed -e "s|@PATH_NATIVE@|${PKG_CONFIG_PATH}|" \ | ||
39 | < ${WORKDIR}/pkg-config-native.in > ${B}/pkg-config-native | ||
40 | install -m755 ${B}/pkg-config-native ${D}${bindir}/pkg-config-native | ||
41 | sed -e "s|@PATH_NATIVE@|${PKG_CONFIG_PATH}|" \ | ||
42 | -e "s|@LIBDIR_NATIVE@|${PKG_CONFIG_LIBDIR}|" \ | ||
43 | < ${WORKDIR}/pkg-config-esdk.in > ${B}/pkg-config-esdk | ||
44 | install -m755 ${B}/pkg-config-esdk ${D}${bindir}/pkg-config-esdk | ||
45 | } | ||
46 | |||
47 | # When using the RPM generated automatic package dependencies, some packages | ||
48 | # will end up requiring 'pkgconfig(pkg-config)'. Allow this behavior by | ||
49 | # specifying an appropriate provide. | ||
50 | RPROVIDES_${PN} += "pkgconfig(pkg-config)" | ||
51 | |||
52 | # Include pkg.m4 in the main package, leaving libpkgconf dev files in -dev | ||
53 | FILES_${PN}-dev_remove = "${datadir}/aclocal" | ||
54 | FILES_${PN} += "${datadir}/aclocal" | ||
55 | |||
56 | BBCLASSEXTEND += "native nativesdk" | ||
57 | |||
58 | pkgconf_sstate_fixup_esdk () { | ||
59 | if [ "${BB_CURRENTTASK}" = "populate_sysroot_setscene" -a "${WITHIN_EXT_SDK}" = "1" ] ; then | ||
60 | pkgconfdir="${SSTATE_INSTDIR}/recipe-sysroot-native/${bindir_native}" | ||
61 | mv $pkgconfdir/pkg-config $pkgconfdir/pkg-config.real | ||
62 | lnr $pkgconfdir/pkg-config-esdk $pkgconfdir/pkg-config | ||
63 | sed -i -e "s|^pkg-config|pkg-config.real|" $pkgconfdir/pkg-config-native | ||
64 | fi | ||
65 | } | ||
66 | |||
67 | SSTATEPOSTUNPACKFUNCS_append_class-native = " pkgconf_sstate_fixup_esdk" | ||