glib: switch to gnu-configure

This commit is contained in:
maxice8 2018-09-16 09:40:29 -03:00
parent 51fc5ae621
commit 84be5cba83
No known key found for this signature in database
GPG key ID: 543B9D4F4299F06B

View file

@ -1,13 +1,11 @@
# Template file for 'glib'
pkgname=glib
version=2.58.0
revision=5
build_style=meson
configure_args="-Dfam=false -Dman=true -Dselinux=false --default-library=both"
hostmakedepends="pkg-config python3 libxslt docbook-xsl"
makedepends="zlib-devel pcre-devel libffi-devel dbus-devel elfutils-devel
libmount-devel m4"
checkdepends="desktop-file-utils shared-mime-info tzdata"
revision=6
build_style=gnu-configure
configure_args="--enable-libelf --disable-fam --with-pcre=system --enable-static"
hostmakedepends="automake libtool pkg-config python3 libxslt docbook-xsl"
makedepends="zlib-devel pcre-devel libffi-devel dbus-devel elfutils-devel libmount-devel"
short_desc="The GNU library of C routines"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="LGPL-2.1-or-later"
@ -18,11 +16,16 @@ checksum=c0f4ce0730b4f95c47b711613b5406a887c2ee13ea6d25930d72a4fa7fdb77f6
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" glib-devel"
else
hostmakedepends+=" gtk-doc"
configure_args+=" -Dgtk_doc=true"
case "$XBPS_TARGET_MACHINE" in
mips*) # It seems common/environment/configure/autoconf_cache/mips-linux is not read?
configure_args+=" glib_cv_stack_grows=no glib_cv_rtldglobal_broken=no glib_cv_uscore=no" ;;
esac
fi
pre_configure() {
NOCONFIGURE=1 ./autogen.sh
}
libglib-devel_package() {
depends="${makedepends} glib>=${version}_${revision}"
short_desc+=" - development files"
@ -58,9 +61,5 @@ glib-devel_package() {
for f in aclocal glib-2.0 gdb; do
vmove usr/share/${f}
done
if [ -z "$CROSS_BUILD" ]; then
vmove usr/share/gtk-doc
fi
}
}