2022-08-03 15:02:32 +03:00
|
|
|
|
distributable:
|
2022-12-06 21:49:24 +03:00
|
|
|
|
url: https://pkgconfig.freedesktop.org/releases/pkg-config-{{version}}.tar.gz
|
2022-08-03 15:02:32 +03:00
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
|
|
provides:
|
|
|
|
|
- bin/pkg-config
|
|
|
|
|
|
2022-09-01 00:44:34 +03:00
|
|
|
|
#NOTE that macOS provides some `.pc` files in /usr/lib/pkgconfig
|
|
|
|
|
# we don’t explicitly include them. This should be safe since we set
|
|
|
|
|
# PKG_CONFIG_PATH and that is checked first. But it could lead to issues
|
|
|
|
|
# for users in some circumstances.
|
|
|
|
|
#FIXME probably we should exclude this in the pursuit of reliable, cross
|
|
|
|
|
# platform environments.
|
|
|
|
|
|
2022-08-03 15:02:32 +03:00
|
|
|
|
versions:
|
|
|
|
|
github: freedesktop/pkg-config/tags
|
|
|
|
|
strip: /^pkg-config-/
|
|
|
|
|
|
|
|
|
|
build:
|
|
|
|
|
script: |-
|
2022-09-01 00:44:34 +03:00
|
|
|
|
./configure $ARGS
|
|
|
|
|
make --jobs {{ hw.concurrency }} install
|
|
|
|
|
env:
|
|
|
|
|
ARGS:
|
|
|
|
|
- --prefix="{{ prefix }}"
|
|
|
|
|
- --disable-debug
|
|
|
|
|
- --disable-host-tool
|
|
|
|
|
- --with-internal-glib
|
|
|
|
|
# otherwise the defaults are based on our {{prefix}}
|
|
|
|
|
- --with-pc-path=/usr/lib/pkgconfig:/usr/share/pkgconfig
|
2022-12-06 21:49:24 +03:00
|
|
|
|
# llvm15 changed this to hard error
|
2023-04-14 06:26:40 +03:00
|
|
|
|
CFLAGS: -Wno-error=int-conversion $CFLAGS
|
2022-08-03 15:02:32 +03:00
|
|
|
|
|
|
|
|
|
test:
|
|
|
|
|
script: pkg-config --version
|