mirror of
https://github.com/ivabus/pantry
synced 2024-11-14 20:45:09 +03:00
33 lines
1,014 B
YAML
33 lines
1,014 B
YAML
distributable:
|
||
url: https://pkgconfig.freedesktop.org/releases/{{version.tag}}.tar.gz
|
||
strip-components: 1
|
||
|
||
provides:
|
||
- bin/pkg-config
|
||
|
||
#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.
|
||
|
||
versions:
|
||
gitlab: gitlab.freedesktop.org:pkg-config/pkg-config/tags
|
||
strip: /^pkg-config-/
|
||
|
||
build:
|
||
script:
|
||
- ./configure
|
||
--prefix="{{ prefix }}"
|
||
--disable-debug
|
||
--disable-host-tool
|
||
--with-internal-glib
|
||
--with-pc-path=/usr/lib/pkgconfig:/usr/share/pkgconfig # otherwise the defaults are based on our {{prefix}}
|
||
- make --jobs {{ hw.concurrency }} install
|
||
env:
|
||
# llvm15 changed this to hard error
|
||
CFLAGS: -Wno-error=int-conversion $CFLAGS
|
||
|
||
test:
|
||
pkg-config --version
|