Package Details: mingw-w64-pkg-config 2-4

Git Clone URL: https://aur.archlinux.org/mingw-w64-pkg-config.git (read-only)
Package Base: mingw-w64-pkg-config
Description: Support pkg-config script (does not depend on any particular version of pkg-config). Useful for pkg-config powered cross-compiling with mingw-w64, see http://tinyurl.com/pkg-config-cross for more info
Upstream URL: http://pkg-config.freedesktop.org/
Licenses: zlib
Submitter: None
Maintainer: xantares
Last Packager: xantares
Votes: 66
Popularity: 2.058538
First Submitted: 2011-09-06 14:45
Last Updated: 2018-10-11 21:48

Required by (60)

Sources (1)

Latest Comments

crab2313 commented on 2018-10-11 10:01

@xantares

By the way, I am trying package mingw-w64-spice-gtk, which requires another modification in the scripts. The spice-protocol package will install spice-protocol.pc in the /usr/x86_64-w64-mingw32/share/pkgconfig/ which is not supported by this script.

We can add share/pkgconfig to the default search path:

export PKG_CONFIG_LIBDIR=/usr/x86_64-w64-mingw32/lib/pkgconfig

export PKG_CONFIG_SHAREDIR=/usr/x86_64-w64-mingw32/share/pkgconfig

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH_CUSTOM:$PKG_CONFIG_LIBDIR:$PKG_CONFIG_SHAREDIR

crab2313 commented on 2018-10-11 09:54

@xantares

For example, I want my program be linked with openssl-1.0:

export PKG_CONFIG_PATH_CUSTOM=/usr/x86_64-w64-mingw32/lib/openssl-1.0/pkgconfig/

The default version of openssl is not changed:

x86_64-w64-mingw32-pkg-config --modversion openssl

The output is 1.1.1

But when I change the order of PKG_CONFIG_PATH_CUSTOM and PKG_CONFIG_LIBDIR, the output becomes 1.0.2p

xantares commented on 2018-09-28 07:21

do you have a testcase for me to test ?

crab2313 commented on 2018-09-18 16:46

It doesn't work well with meson. For programs trying to find openssl-1.0, if I set PKG_CONFIG_PATH_CUSTOM to the path to openssl-1.0/pkgconfig, meson will still complains that openssl-1.1 is not meet our requirements.

manually change the scripts solve the problem, like this:

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH_CUSTOM:$PKG_CONFIG_LIBDIR

spider-mario commented on 2017-07-22 09:09

Hi,

Would it be possible to include not only $PREFIX/lib/pkgconfig but also $PREFIX/share/pkgconfig to the PKG_CONFIG_PATH? At least eigen uses that directory.

Also, it seems a bit strange to me to require the user of the script to export PKG_CONFIG_PATH_CUSTOM instead of PKG_CONFIG_PATH. Doesn’t that break the expected interface of the pkg-config binary? Why not just reuse PKG_CONFIG_PATH if it already exists?

Thanks.

kolewu commented on 2016-02-01 16:48

ERROR: url should not be an array

xantares commented on 2014-10-23 10:48

hi,

you could have a single mingw-pkg-config.sh source in which you replace the target triple instead of having twice the same script, like I did here:
https://aur.archlinux.org/packages/mingw-w64-cmake/

xan.