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