libgsf: added gir build option; cross build support.
This commit is contained in:
parent
1767dab6ee
commit
81779f8e0e
1 changed files with 23 additions and 5 deletions
|
@ -1,10 +1,10 @@
|
|||
# Template build file for 'libgsf'.
|
||||
pkgname=libgsf
|
||||
version=1.14.28
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=gnu-configure
|
||||
configure_args="--disable-static --enable-introspection=yes"
|
||||
hostmakedepends="pkg-config intltool gobject-introspection"
|
||||
configure_args="--disable-static"
|
||||
hostmakedepends="pkg-config intltool glib-devel"
|
||||
makedepends="libglib-devel libxml2-devel gdk-pixbuf-devel"
|
||||
short_desc="Structured File Library"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
|
@ -13,14 +13,32 @@ homepage="http://www.gnome.org/"
|
|||
distfiles="${GNOME_SITE}/libgsf/1.14/$pkgname-$version.tar.xz"
|
||||
checksum=ea94914f1fdaa5d4eb49149f0228ae6e41a54bdeb8caf52a7dd8acaa329fcbe4
|
||||
|
||||
# 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
|
||||
|
||||
libgsf-devel_package() {
|
||||
depends="libglib-devel libxml2-devel libgsf>=${version}"
|
||||
depends="libglib-devel libxml2-devel ${sourcepkg}>=${version}_${revision}"
|
||||
short_desc+=" - development files"
|
||||
pkg_install() {
|
||||
vmove usr/include
|
||||
vmove usr/lib/pkgconfig
|
||||
vmove "usr/lib/*.so"
|
||||
vmove usr/share/gtk-doc
|
||||
vmove usr/share/gir-1.0
|
||||
if [ "$build_option_gir" ]; then
|
||||
vmove usr/share/gir-1.0
|
||||
fi
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue