gdk-pixbuf: enable gir

This commit is contained in:
maxice8 2019-02-03 00:18:19 -02:00 committed by maxice8
parent 31f816eb84
commit c824a3abcc

View file

@ -1,12 +1,12 @@
# Template file for 'gdk-pixbuf'
pkgname=gdk-pixbuf
version=2.38.0
revision=1
revision=2
build_style=meson
build_helper="gir"
configure_args="-Dgir=$(vopt_if gir true false) -Djasper=false
-Dpng=true -Dx11=true -Dinstalled_tests=false"
hostmakedepends="gettext-devel glib-devel pkg-config
$(vopt_if gir 'gobject-introspection') libxslt docbook-xsl"
hostmakedepends="gettext-devel glib-devel pkg-config libxslt docbook-xsl"
makedepends="libX11-devel libglib-devel libpng-devel tiff-devel
shared-mime-info"
short_desc="Image loading library for The GTK+ toolkit (v2)"
@ -22,10 +22,14 @@ build_options="gir"
# Disable gir for cross builds.
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" gdk-pixbuf-devel"
else
build_options_default="gir"
fi
case "$XBPS_TARGET_MACHINE" in
x86_64-musl) build_options_default+=" gir" ;;
*-musl) ;;
*) build_options_default+=" gir" ;;
esac
pre_configure() {
if [ "$CROSS_BUILD" ]; then
touch gdk-pixbuf/loaders.cache