30 lines
1.1 KiB
Bash
30 lines
1.1 KiB
Bash
# Template file for 'pkg-config'
|
|
pkgname=pkg-config
|
|
version=0.29.2
|
|
revision=3
|
|
bootstrap=yes
|
|
build_style=gnu-configure
|
|
configure_args="--with-internal-glib --disable-host-tool"
|
|
short_desc="System for managing library compile/link flags"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://pkgconfig.freedesktop.org/"
|
|
distfiles="http://pkgconfig.freedesktop.org/releases/${pkgname}-${version}.tar.gz"
|
|
checksum=6fc69c01688c9458a57eb9a1664c9aba372ccda420a02bf4429fe610e7e7d591
|
|
alternatives="
|
|
pkg-config:pkg-config:/usr/bin/pkg-config.pkg-config
|
|
pkg-config:pkg-config.1:/usr/share/man/man1/pkg-config.1.pkg-config
|
|
pkg-config:pkg.m4:/usr/share/aclocal/pkg.m4.pkg-config"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
mips*|ppc|ppc-musl) configure_args+=" glib_cv_stack_grows=no glib_cv_uscore=no" ;;
|
|
esac
|
|
CFLAGS="-Wno-missing-include-dirs"
|
|
|
|
post_install() {
|
|
# Add pkg-config suffix to files that are on alternatives
|
|
mv ${DESTDIR}/usr/bin/pkg-config{,.pkg-config}
|
|
mv ${DESTDIR}/usr/share/man/man1/pkg-config.1{,.pkg-config}
|
|
mv ${DESTDIR}/usr/share/aclocal/pkg.m4{,.pkg-config}
|
|
}
|