pantry/projects/freedesktop.org/pkg-config/package.yml
2023-10-01 20:41:57 -04:00

36 lines
1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

distributable:
url: https://pkgconfig.freedesktop.org/releases/pkg-config-{{version}}.tar.gz
strip-components: 1
provides:
- bin/pkg-config
#NOTE that macOS provides some `.pc` files in /usr/lib/pkgconfig
# we dont 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.
versions:
github: freedesktop/pkg-config/tags
strip: /^pkg-config-/
build:
script: |-
./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
# llvm15 changed this to hard error
CFLAGS: -Wno-error=int-conversion $CFLAGS
test:
script: pkg-config --version