void-packages/srcpkgs/pkg-config/template
2019-12-28 18:14:04 +01:00

29 lines
1.1 KiB
Bash

# Template file for 'pkg-config'
pkgname=pkg-config
version=0.29.2
revision=2
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"
homepage="http://pkgconfig.freedesktop.org/wiki/"
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}
}