have pkg-config poll something that exists (#5220)

This commit is contained in:
Max Howell 2024-02-15 10:20:34 -05:00 committed by GitHub
parent 8b5a41aeb4
commit 2279dde92c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,5 @@
distributable:
url: https://pkgconfig.freedesktop.org/releases/pkg-config-{{version}}.tar.gz
url: https://pkgconfig.freedesktop.org/releases/{{version.tag}}.tar.gz
strip-components: 1
provides:
@ -13,23 +13,21 @@ provides:
# platform environments.
versions:
github: freedesktop/pkg-config/tags
gitlab: gitlab.freedesktop.org:pkg-config/pkg-config/tags
strip: /^pkg-config-/
build:
script: |-
./configure $ARGS
make --jobs {{ hw.concurrency }} install
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:
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
pkg-config --version