atk: add gir pkg option and disable it in cross builds.

This commit is contained in:
Juan RP 2013-05-06 15:40:06 +02:00
parent f875d3903d
commit 066257842a

View file

@ -1,10 +1,10 @@
# Template build file for 'atk'. # Template build file for 'atk'.
pkgname=atk pkgname=atk
version=2.8.0 version=2.8.0
revision=2 revision=3
build_style=gnu-configure build_style=gnu-configure
hostmakedepends="pkg-config" hostmakedepends="pkg-config"
makedepends="libglib-devel>=2.34.0 gobject-introspection" makedepends="glib-devel>=2.36"
short_desc="Set of interfaces for accessibility" short_desc="Set of interfaces for accessibility"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.gtk.org/" homepage="http://www.gtk.org/"
@ -23,13 +23,36 @@ long_desc="
It also provides interfaces which an application can use to provide It also provides interfaces which an application can use to provide
additional accessibility information to assistive technology tools." additional accessibility information to assistive technology tools."
if [ "$CROSS_BUILD" ]; then
# needs glib-mkenums
hostmakedepends+=" glib-devel"
fi
# Package build options
build_options="gir"
desc_option_gir="Enable support for building gobject introspection data"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
if [ "$build_option_gir" ]; then
configure_args+=" --enable-introspection"
makedepends+=" gobject-introspection"
else
configure_args+=" --disable-introspection"
fi
atk-devel_package() { atk-devel_package() {
depends="libglib-devel atk>=${version}" depends="libglib-devel atk>=${version}"
short_desc="${short_desc} - development files" short_desc+=" - development files"
pkg_install() { pkg_install() {
vmove usr/include vmove usr/include
vmove usr/lib/pkgconfig vmove usr/lib/pkgconfig
vmove "usr/share/gir-*" if [ "$build_option_gir" ]; then
vmove "usr/share/gir-*"
fi
vmove usr/share/gtk-doc vmove usr/share/gtk-doc
} }
} }