<div dir="ltr">A recent patch to pkgconfig to make menuconfig work in the SDK has since landed in master. Can you adapt the patch so that it also applies for pkgconf?<div><br></div><div>Cheers,</div><div>Ross</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 14 July 2017 at 09:52, Maxin B. John <span dir="ltr"><<a href="mailto:maxin.john@intel.com" target="_blank">maxin.john@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Move pkgconf recipe to oe-core from meta-pkgconf:<br>
<a href="https://github.com/kergoth/meta-kergoth-wip/tree/master/meta-pkgconf" rel="noreferrer" target="_blank">https://github.com/kergoth/<wbr>meta-kergoth-wip/tree/master/<wbr>meta-pkgconf</a><br>
<br>
Signed-off-by: Christopher Larson <<a href="mailto:chris_larson@mentor.com">chris_larson@mentor.com</a>><br>
Signed-off-by: Maxin B. John <<a href="mailto:maxin.john@intel.com">maxin.john@intel.com</a>><br>
---<br>
Changes in v2:<br>
1. Fix build errors with mingw<br>
---<br>
meta/files/common-licenses/<wbr>pkgconf | 10 +<br>
...imal-tweaks-to-compile-<wbr>with-Visual-C-2015.patch | 224 +++++++++++++++++++++<br>
.../0001-stdinc.h-fix-build-<wbr>with-mingw.patch | 48 +++++<br>
.../pkgconf/pkgconf/<a href="http://pkg-config-native.in" rel="noreferrer" target="_blank">pkg-<wbr>config-native.in</a> | 6 +<br>
.../pkgconf/pkgconf/pkg-<wbr>config-wrapper | 16 ++<br>
meta/recipes-devtools/pkgconf/<a href="http://pkgconf_1.3.7.bb" rel="noreferrer" target="_blank"><wbr>pkgconf_1.3.7.bb</a> | 57 ++++++<br>
6 files changed, 361 insertions(+)<br>
create mode 100644 meta/files/common-licenses/<wbr>pkgconf<br>
create mode 100644 meta/recipes-devtools/pkgconf/<wbr>pkgconf/0001-Minimal-tweaks-<wbr>to-compile-with-Visual-C-2015.<wbr>patch<br>
create mode 100644 meta/recipes-devtools/pkgconf/<wbr>pkgconf/0001-stdinc.h-fix-<wbr>build-with-mingw.patch<br>
create mode 100644 meta/recipes-devtools/pkgconf/<wbr>pkgconf/<a href="http://pkg-config-native.in" rel="noreferrer" target="_blank">pkg-config-native.in</a><br>
create mode 100755 meta/recipes-devtools/pkgconf/<wbr>pkgconf/pkg-config-wrapper<br>
create mode 100644 meta/recipes-devtools/pkgconf/<a href="http://pkgconf_1.3.7.bb" rel="noreferrer" target="_blank"><wbr>pkgconf_1.3.7.bb</a><br>
<br>
diff --git a/meta/files/common-licenses/<wbr>pkgconf b/meta/files/common-licenses/<wbr>pkgconf<br>
new file mode 100644<br>
index 0000000..81a5221<br>
--- /dev/null<br>
+++ b/meta/files/common-licenses/<wbr>pkgconf<br>
@@ -0,0 +1,10 @@<br>
+Copyright (c) 2011, 2012, 2013, 2014, 2015, 2016, 2017<br>
+ pkgconf authors (see AUTHORS file in source directory).<br>
+<br>
+Permission to use, copy, modify, and/or distribute this software for any<br>
+purpose with or without fee is hereby granted, provided that the above<br>
+copyright notice and this permission notice appear in all copies.<br>
+<br>
+This software is provided 'as is' and without any warranty, express or<br>
+implied. In no event shall the authors be liable for any damages arising<br>
+from the use of this software.<br>
diff --git a/meta/recipes-devtools/<wbr>pkgconf/pkgconf/0001-Minimal-<wbr>tweaks-to-compile-with-Visual-<wbr>C-2015.patch b/meta/recipes-devtools/<wbr>pkgconf/pkgconf/0001-Minimal-<wbr>tweaks-to-compile-with-Visual-<wbr>C-2015.patch<br>
new file mode 100644<br>
index 0000000..3805ad3<br>
--- /dev/null<br>
+++ b/meta/recipes-devtools/<wbr>pkgconf/pkgconf/0001-Minimal-<wbr>tweaks-to-compile-with-Visual-<wbr>C-2015.patch<br>
@@ -0,0 +1,224 @@<br>
+From 4d7b4d7c8e9966c593f47235560720<wbr>4c6c80fecb Mon Sep 17 00:00:00 2001<br>
+From: Dan Kegel <<a href="mailto:dank@kegel.com">dank@kegel.com</a>><br>
+Date: Sun, 4 Jun 2017 19:19:55 -0700<br>
+Subject: [PATCH] Minimal tweaks to compile with Visual C 2015<br>
+<br>
+Upstream-Status: Backport<br>
+<br>
+Signed-off-by: Maxin B. John <<a href="mailto:maxin.john@intel.com">maxin.john@intel.com</a>><br>
+---<br>
+ getopt_long.c | 2 ++<br>
+ libpkgconf/bsdstubs.c | 1 +<br>
+ libpkgconf/libpkgconf.h | 2 +-<br>
+ libpkgconf/path.c | 10 +++++-----<br>
+ libpkgconf/pkg.c | 28 +++++++++++++++++++---------<br>
+ libpkgconf/stdinc.h | 9 +++++++--<br>
+ 6 files changed, 35 insertions(+), 17 deletions(-)<br>
+<br>
+diff --git a/getopt_long.c b/getopt_long.c<br>
+index afeb68d..5ce9bfd 100644<br>
+--- a/getopt_long.c<br>
++++ b/getopt_long.c<br>
+@@ -62,7 +62,9 @@<br>
+ #include <stdio.h><br>
+ #include <stdlib.h><br>
+ #include <string.h><br>
++#ifndef _WIN32<br>
+ #include <unistd.h><br>
++#endif<br>
+<br>
+ #define PKGCONF_HACK_LOGICAL_OR_ALL_<wbr>VALUES<br>
+<br>
+diff --git a/libpkgconf/bsdstubs.c b/libpkgconf/bsdstubs.c<br>
+index 8f70ff3..2c000ac 100644<br>
+--- a/libpkgconf/bsdstubs.c<br>
++++ b/libpkgconf/bsdstubs.c<br>
+@@ -17,6 +17,7 @@<br>
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.<br>
+ */<br>
+<br>
++#include <stdlib.h><br>
+ #include <sys/types.h><br>
+ #include <string.h><br>
+<br>
+diff --git a/libpkgconf/libpkgconf.h b/libpkgconf/libpkgconf.h<br>
+index 404bf0c..551d85d 100644<br>
+--- a/libpkgconf/libpkgconf.h<br>
++++ b/libpkgconf/libpkgconf.h<br>
+@@ -310,7 +310,7 @@ void pkgconf_audit_log_dependency(<wbr>pkgconf_client_t *client, const pkgconf_pkg_t<br>
+ /* path.c */<br>
+ void pkgconf_path_add(const char *text, pkgconf_list_t *dirlist, bool filter);<br>
+ size_t pkgconf_path_split(const char *text, pkgconf_list_t *dirlist, bool filter);<br>
+-size_t pkgconf_path_build_from_<wbr>environ(const char *environ, const char *fallback, pkgconf_list_t *dirlist, bool filter);<br>
++size_t pkgconf_path_build_from_<wbr>environ(const char *envvarname, const char *fallback, pkgconf_list_t *dirlist, bool filter);<br>
+ bool pkgconf_path_match_list(const char *path, const pkgconf_list_t *dirlist);<br>
+ void pkgconf_path_free(pkgconf_<wbr>list_t *dirlist);<br>
+ bool pkgconf_path_relocate(char *buf, size_t buflen);<br>
+diff --git a/libpkgconf/path.c b/libpkgconf/path.c<br>
+index dddb3bf..59e003e 100644<br>
+--- a/libpkgconf/path.c<br>
++++ b/libpkgconf/path.c<br>
+@@ -20,7 +20,7 @@<br>
+ # include <sys/cygwin.h><br>
+ #endif<br>
+<br>
+-#ifdef HAVE_SYS_STAT_H<br>
++#if defined(HAVE_SYS_STAT_H) && ! defined(_WIN32)<br>
+ # include <sys/stat.h><br>
+ # define PKGCONF_CACHE_INODES<br>
+ #endif<br>
+@@ -156,12 +156,12 @@ pkgconf_path_split(const char *text, pkgconf_list_t *dirlist, bool filter)<br>
+ /*<br>
+ * !doc<br>
+ *<br>
+- * .. c:function:: size_t pkgconf_path_build_from_<wbr>environ(const char *environ, const char *fallback, pkgconf_list_t *dirlist)<br>
++ * .. c:function:: size_t pkgconf_path_build_from_<wbr>environ(const char *envvarname, const char *fallback, pkgconf_list_t *dirlist)<br>
+ *<br>
+ * Adds the paths specified in an environment variable to a path list. If the environment variable is not set,<br>
+ * an optional default set of paths is added.<br>
+ *<br>
+- * :param char* environ: The environment variable to look up.<br>
++ * :param char* envvarname: The environment variable to look up.<br>
+ * :param char* fallback: The fallback paths to use if the environment variable is not set.<br>
+ * :param pkgconf_list_t* dirlist: The path list to add the path nodes to.<br>
+ * :param bool filter: Whether to perform duplicate filtering.<br>
+@@ -169,11 +169,11 @@ pkgconf_path_split(const char *text, pkgconf_list_t *dirlist, bool filter)<br>
+ * :rtype: size_t<br>
+ */<br>
+ size_t<br>
+-pkgconf_path_build_from_<wbr>environ(const char *environ, const char *fallback, pkgconf_list_t *dirlist, bool filter)<br>
++pkgconf_path_build_from_<wbr>environ(const char *envvarname, const char *fallback, pkgconf_list_t *dirlist, bool filter)<br>
+ {<br>
+ const char *data;<br>
+<br>
+- data = getenv(environ);<br>
++ data = getenv(envvarname);<br>
+ if (data != NULL)<br>
+ return pkgconf_path_split(data, dirlist, filter);<br>
+<br>
+diff --git a/libpkgconf/pkg.c b/libpkgconf/pkg.c<br>
+index 7aebd61..5dacae3 100644<br>
+--- a/libpkgconf/pkg.c<br>
++++ b/libpkgconf/pkg.c<br>
+@@ -30,6 +30,8 @@<br>
+ # define PKG_CONFIG_REG_KEY "Software\\pkgconfig\\PKG_<wbr>CONFIG_PATH"<br>
+ # undef PKG_DEFAULT_PATH<br>
+ # define PKG_DEFAULT_PATH "../lib/pkgconfig;../share/<wbr>pkgconfig"<br>
++#define strncasecmp _strnicmp<br>
++#define strcasecmp _stricmp<br>
+ #endif<br>
+<br>
+ #define PKG_CONFIG_EXT ".pc"<br>
+@@ -134,21 +136,21 @@ static int pkgconf_pkg_parser_keyword_<wbr>pair_cmp(const void *key, const void *ptr)<br>
+ static void<br>
+ pkgconf_pkg_parser_tuple_func(<wbr>const pkgconf_client_t *client, pkgconf_pkg_t *pkg, const ptrdiff_t offset, char *value)<br>
+ {<br>
+- char **dest = ((void *) pkg + offset);<br>
++ char **dest = (char **)((char *) pkg + offset);<br>
+ *dest = pkgconf_tuple_parse(client, &pkg->vars, value);<br>
+ }<br>
+<br>
+ static void<br>
+ pkgconf_pkg_parser_fragment_<wbr>func(const pkgconf_client_t *client, pkgconf_pkg_t *pkg, const ptrdiff_t offset, char *value)<br>
+ {<br>
+- pkgconf_list_t *dest = ((void *) pkg + offset);<br>
++ pkgconf_list_t *dest = (pkgconf_list_t *)((char *) pkg + offset);<br>
+ pkgconf_fragment_parse(client, dest, &pkg->vars, value);<br>
+ }<br>
+<br>
+ static void<br>
+ pkgconf_pkg_parser_dependency_<wbr>func(const pkgconf_client_t *client, pkgconf_pkg_t *pkg, const ptrdiff_t offset, char *value)<br>
+ {<br>
+- pkgconf_list_t *dest = ((void *) pkg + offset);<br>
++ pkgconf_list_t *dest = (pkgconf_list_t *)((char *) pkg + offset);<br>
+ pkgconf_dependency_parse(<wbr>client, pkg, dest, value);<br>
+ }<br>
+<br>
+@@ -238,7 +240,7 @@ pkgconf_pkg_validate(const pkgconf_client_t *client, const pkgconf_pkg_t *pkg)<br>
+<br>
+ for (i = 0; i < PKGCONF_ARRAY_SIZE(pkgconf_<wbr>pkg_validations); i++)<br>
+ {<br>
+- char **p = ((void *) pkg + pkgconf_pkg_validations[i].<wbr>offset);<br>
++ char **p = (char **)((char *) pkg + pkgconf_pkg_validations[i].<wbr>offset);<br>
+<br>
+ if (*p != NULL)<br>
+ continue;<br>
+@@ -587,7 +589,7 @@ pkgconf_scan_all(pkgconf_<wbr>client_t *client, void *data, pkgconf_pkg_iteration_fun<br>
+<br>
+ #ifdef _WIN32<br>
+ static pkgconf_pkg_t *<br>
+-pkgconf_pkg_find_in_<wbr>registry_key(const pkgconf_client_t *client, HKEY hkey, const char *name)<br>
++pkgconf_pkg_find_in_<wbr>registry_key(pkgconf_client_t *client, HKEY hkey, const char *name)<br>
+ {<br>
+ pkgconf_pkg_t *pkg = NULL;<br>
+<br>
+@@ -1048,8 +1050,12 @@ typedef struct {<br>
+<br>
+ static const pkgconf_pkg_provides_vermatch_<wbr>rule_t pkgconf_pkg_provides_vermatch_<wbr>rules[] = {<br>
+ [PKGCONF_CMP_ANY] = {<br>
+- .rulecmp = {},<br>
+- .depcmp = {},<br>
++ .rulecmp = {<br>
++ [PKGCONF_CMP_ANY] = pkgconf_pkg_comparator_none,<br>
++ },<br>
++ .depcmp = {<br>
++ [PKGCONF_CMP_ANY] = pkgconf_pkg_comparator_none,<br>
++ },<br>
+ },<br>
+ [PKGCONF_CMP_LESS_THAN] = {<br>
+ .rulecmp = {<br>
+@@ -1121,7 +1127,9 @@ static const pkgconf_pkg_provides_vermatch_<wbr>rule_t pkgconf_pkg_provides_vermatch_<br>
+ [PKGCONF_CMP_EQUAL] = pkgconf_pkg_comparator_eq,<br>
+ [PKGCONF_CMP_NOT_EQUAL] = pkgconf_pkg_comparator_ne<br>
+ },<br>
+- .depcmp = {},<br>
++ .depcmp = {<br>
++ [PKGCONF_CMP_ANY] = pkgconf_pkg_comparator_none,<br>
++ },<br>
+ },<br>
+ [PKGCONF_CMP_NOT_EQUAL] = {<br>
+ .rulecmp = {<br>
+@@ -1133,7 +1141,9 @@ static const pkgconf_pkg_provides_vermatch_<wbr>rule_t pkgconf_pkg_provides_vermatch_<br>
+ [PKGCONF_CMP_EQUAL] = pkgconf_pkg_comparator_ne,<br>
+ [PKGCONF_CMP_NOT_EQUAL] = pkgconf_pkg_comparator_eq<br>
+ },<br>
+- .depcmp = {},<br>
++ .depcmp = {<br>
++ [PKGCONF_CMP_ANY] = pkgconf_pkg_comparator_none,<br>
++ },<br>
+ },<br>
+ };<br>
+<br>
+diff --git a/libpkgconf/stdinc.h b/libpkgconf/stdinc.h<br>
+index 58cc6c7..ac7e53c 100644<br>
+--- a/libpkgconf/stdinc.h<br>
++++ b/libpkgconf/stdinc.h<br>
+@@ -24,9 +24,7 @@<br>
+ #include <stdbool.h><br>
+ #include <stdarg.h><br>
+ #include <string.h><br>
+-#include <dirent.h><br>
+ #include <sys/types.h><br>
+-#include <unistd.h><br>
+ #include <stdint.h><br>
+<br>
+ #ifdef _WIN32<br>
+@@ -34,8 +32,15 @@<br>
+ # include <windows.h><br>
+ # include <malloc.h><br>
+ # define PATH_DEV_NULL "nul"<br>
++# ifndef ssize_t<br>
++# include <BaseTsd.h><br>
++# define ssize_t SSIZE_T<br>
++# endif<br>
++# include "win-dirent.h"<br>
+ #else<br>
+ # define PATH_DEV_NULL "/dev/null"<br>
++# include <dirent.h><br>
++# include <unistd.h><br>
+ #endif<br>
+<br>
+ #endif<br>
+--<br>
+2.4.0<br>
+<br>
diff --git a/meta/recipes-devtools/<wbr>pkgconf/pkgconf/0001-stdinc.h-<wbr>fix-build-with-mingw.patch b/meta/recipes-devtools/<wbr>pkgconf/pkgconf/0001-stdinc.h-<wbr>fix-build-with-mingw.patch<br>
new file mode 100644<br>
index 0000000..49ebe31<br>
--- /dev/null<br>
+++ b/meta/recipes-devtools/<wbr>pkgconf/pkgconf/0001-stdinc.h-<wbr>fix-build-with-mingw.patch<br>
@@ -0,0 +1,48 @@<br>
+From ea28c5b34457cf7676181b284e22ea<wbr>5f79a30d85 Mon Sep 17 00:00:00 2001<br>
+From: "Maxin B. John" <<a href="mailto:maxin.john@intel.com">maxin.john@intel.com</a>><br>
+Date: Thu, 13 Jul 2017 14:47:31 +0300<br>
+Subject: [PATCH] stdinc.h: fix build with mingw<br>
+<br>
+Fixes this build error with mingw:<br>
+...<br>
+| compilation terminated.<br>
+| In file included from ../pkgconf-1.3.7/libpkgconf/<wbr>libpkgconf.h:19:0,<br>
+| from ../pkgconf-1.3.7/libpkgconf/<wbr>audit.c:16:<br>
+| ../pkgconf-1.3.7/libpkgconf/<wbr>stdinc.h:36:12: fatal error: BaseTsd.h: No<br>
+such file or directory<br>
+| # include <BaseTsd.h><br>
+<br>
+Upstream-Status: Submitted<br>
+<br>
+Signed-off-by: Maxin B. John <<a href="mailto:maxin.john@intel.com">maxin.john@intel.com</a>><br>
+---<br>
+ libpkgconf/stdinc.h | 10 +++++++++-<br>
+ 1 file changed, 9 insertions(+), 1 deletion(-)<br>
+<br>
+diff --git a/libpkgconf/stdinc.h b/libpkgconf/stdinc.h<br>
+index ac7e53c..d8efcf5 100644<br>
+--- a/libpkgconf/stdinc.h<br>
++++ b/libpkgconf/stdinc.h<br>
+@@ -33,10 +33,18 @@<br>
+ # include <malloc.h><br>
+ # define PATH_DEV_NULL "nul"<br>
+ # ifndef ssize_t<br>
++# ifndef __MINGW32__<br>
+ # include <BaseTsd.h><br>
++# else<br>
++# include <basetsd.h><br>
++# endif<br>
+ # define ssize_t SSIZE_T<br>
+ # endif<br>
+-# include "win-dirent.h"<br>
++# ifndef __MINGW32__<br>
++# include "win-dirent.h"<br>
++# else<br>
++# include <dirent.h><br>
++# endif<br>
+ #else<br>
+ # define PATH_DEV_NULL "/dev/null"<br>
+ # include <dirent.h><br>
+--<br>
+2.4.0<br>
+<br>
diff --git a/meta/recipes-devtools/<wbr>pkgconf/pkgconf/<a href="http://pkg-config-native.in" rel="noreferrer" target="_blank">pkg-config-<wbr>native.in</a> b/meta/recipes-devtools/<wbr>pkgconf/pkgconf/<a href="http://pkg-config-native.in" rel="noreferrer" target="_blank">pkg-config-<wbr>native.in</a><br>
new file mode 100644<br>
index 0000000..9ed30a0<br>
--- /dev/null<br>
+++ b/meta/recipes-devtools/<wbr>pkgconf/pkgconf/<a href="http://pkg-config-native.in" rel="noreferrer" target="_blank">pkg-config-<wbr>native.in</a><br>
@@ -0,0 +1,6 @@<br>
+#! /bin/sh<br>
+<br>
+PKG_CONFIG_PATH="@PATH_<wbr>NATIVE@"<br>
+unset PKG_CONFIG_SYSROOT_DIR<br>
+<br>
+pkg-config "$@"<br>
diff --git a/meta/recipes-devtools/<wbr>pkgconf/pkgconf/pkg-config-<wbr>wrapper b/meta/recipes-devtools/<wbr>pkgconf/pkgconf/pkg-config-<wbr>wrapper<br>
new file mode 100755<br>
index 0000000..695f349<br>
--- /dev/null<br>
+++ b/meta/recipes-devtools/<wbr>pkgconf/pkgconf/pkg-config-<wbr>wrapper<br>
@@ -0,0 +1,16 @@<br>
+#!/bin/sh<br>
+# pkgconf wrapper to deal with pkg-config/pkgconf compatibility issues<br>
+#<br>
+# Copyright (C) 2015 Christopher Larson <<a href="mailto:chris_larson@mentor.com">chris_larson@mentor.com</a>><br>
+# License: MIT (see COPYING.MIT at the root of the repository for terms)<br>
+<br>
+for arg; do<br>
+ case "$arg" in<br>
+ --variable|--variable=*)<br>
+ # pkg-config doesn't sysroot-prefix user variables<br>
+ unset PKG_CONFIG_SYSROOT_DIR<br>
+ ;;<br>
+ esac<br>
+done<br>
+<br>
+exec pkgconf "$@"<br>
diff --git a/meta/recipes-devtools/<wbr>pkgconf/<a href="http://pkgconf_1.3.7.bb" rel="noreferrer" target="_blank">pkgconf_1.3.7.bb</a> b/meta/recipes-devtools/<wbr>pkgconf/<a href="http://pkgconf_1.3.7.bb" rel="noreferrer" target="_blank">pkgconf_1.3.7.bb</a><br>
new file mode 100644<br>
index 0000000..47c55f6<br>
--- /dev/null<br>
+++ b/meta/recipes-devtools/<wbr>pkgconf/<a href="http://pkgconf_1.3.7.bb" rel="noreferrer" target="_blank">pkgconf_1.3.7.bb</a><br>
@@ -0,0 +1,57 @@<br>
+SUMMARY = "pkgconf provides compiler and linker configuration for development frameworks."<br>
+DESCRIPTION = "pkgconf is a program which helps to configure compiler and linker \<br>
+flags for development frameworks. It is similar to pkg-config from \<br>
+<a href="http://freedesktop.org" rel="noreferrer" target="_blank">freedesktop.org</a>, providing additional functionality while also maintaining \<br>
+compatibility."<br>
+HOMEPAGE = "<a href="http://pkgconf.org" rel="noreferrer" target="_blank">http://pkgconf.org</a>"<br>
+BUGTRACKER = "<a href="https://github.com/pkgconf/pkgconf/issues" rel="noreferrer" target="_blank">https://github.com/pkgconf/<wbr>pkgconf/issues</a>"<br>
+SECTION = "devel"<br>
+PROVIDES += "pkgconfig"<br>
+RPROVIDES_${PN} += "pkgconfig"<br>
+DEFAULT_PREFERENCE = "-1"<br>
+<br>
+# The pkgconf license seems to be functionally equivalent to BSD-2-Clause or<br>
+# ISC, but has different wording, so needs its own name.<br>
+LICENSE = "pkgconf"<br>
+LIC_FILES_CHKSUM = "file://COPYING;md5=<wbr>548a9d1db10cc0a84810c313a0e926<wbr>6f"<br>
+<br>
+SRC_URI = "\<br>
+ <a href="https://distfiles.dereferenced.org/pkgconf/pkgconf-${PV}.tar.xz" rel="noreferrer" target="_blank">https://distfiles.<wbr>dereferenced.org/pkgconf/<wbr>pkgconf-${PV}.tar.xz</a> \<br>
+ file://0001-Minimal-tweaks-to-<wbr>compile-with-Visual-C-2015.<wbr>patch \<br>
+ file://0001-stdinc.h-fix-<wbr>build-with-mingw.patch \<br>
+ file://pkg-config-wrapper \<br>
+ file://<a href="http://pkg-config-native.in" rel="noreferrer" target="_blank">pkg-config-native.in</a> \<br>
+"<br>
+SRC_URI[md5sum] = "<wbr>ac35c34d84eeb6a03d4d61b8555d61<wbr>97"<br>
+SRC_URI[sha256sum] = "<wbr>1be7e40900c7467893c65f810211b1<wbr>e68da3f8d5e70fddb883fc24839cad<wbr>0339"<br>
+<br>
+inherit autotools update-alternatives<br>
+<br>
+EXTRA_OECONF += "--with-pkg-config-dir='${<wbr>libdir}/pkgconfig:${datadir}/<wbr>pkgconfig'"<br>
+<br>
+do_install_append () {<br>
+ # Install a wrapper which deals, as much as possible with pkgconf vs<br>
+ # pkg-config compatibility issues.<br>
+ install -m 0755 "${WORKDIR}/pkg-config-<wbr>wrapper" "${D}${bindir}/pkg-config"<br>
+}<br>
+<br>
+do_install_append_class-<wbr>native () {<br>
+ # Install a pkg-config-native wrapper that will use the native sysroot instead<br>
+ # of the MACHINE sysroot, for using pkg-config when building native tools.<br>
+ sed -e "s|@PATH_NATIVE@|${PKG_CONFIG_<wbr>PATH}|" \<br>
+ < ${WORKDIR}/<a href="http://pkg-config-native.in" rel="noreferrer" target="_blank">pkg-config-native.<wbr>in</a> > ${B}/pkg-config-native<br>
+ install -m755 ${B}/pkg-config-native ${D}${bindir}/pkg-config-<wbr>native<br>
+}<br>
+<br>
+ALTERNATIVE_${PN} = "pkg-config"<br>
+<br>
+# When using the RPM generated automatic package dependencies, some packages<br>
+# will end up requiring 'pkgconfig(pkg-config)'. Allow this behavior by<br>
+# specifying an appropriate provide.<br>
+RPROVIDES_${PN} += "pkgconfig(pkg-config)"<br>
+<br>
+# Include pkg.m4 in the main package, leaving libpkgconf dev files in -dev<br>
+FILES_${PN}-dev_remove = "${datadir}/aclocal"<br>
+FILES_${PN} += "${datadir}/aclocal"<br>
+<br>
+BBCLASSEXTEND += "native nativesdk"<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.4.0<br>
<br>
--<br>
______________________________<wbr>_________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.<wbr>openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/<wbr>mailman/listinfo/openembedded-<wbr>core</a><br>
</font></span></blockquote></div><br></div>