pkg-config: add alternatives
This commit is contained in:
parent
2ce7b7e17f
commit
1e80f54355
1 changed files with 15 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
# Template build file for 'pkg-config'
|
||||
# Template file for 'pkg-config'
|
||||
pkgname=pkg-config
|
||||
version=0.29.2
|
||||
revision=1
|
||||
revision=2
|
||||
bootstrap=yes
|
||||
build_style=gnu-configure
|
||||
configure_args="--with-internal-glib --disable-host-tool"
|
||||
|
@ -9,11 +9,22 @@ configure_args="--with-internal-glib --disable-host-tool"
|
|||
hostmakedepends="gcc"
|
||||
short_desc="System for managing library compile/link flags"
|
||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||
homepage="http://pkgconfig.freedesktop.org/wiki/"
|
||||
license="GPL-2"
|
||||
distfiles="http://pkgconfig.freedesktop.org/releases/$pkgname-$version.tar.gz"
|
||||
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*) configure_args+=" glib_cv_stack_grows=no glib_cv_uscore=no" ;;
|
||||
esac
|
||||
|
||||
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}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue