libwnck2: added gir build option to allow cross builds.

This commit is contained in:
Juan RP 2014-01-28 10:50:31 +01:00
parent f32ee3abe5
commit 74fbd07054

View File

@ -1,10 +1,10 @@
# Template build file for 'libwnck2'.
pkgname=libwnck2
version=2.30.7
revision=4
wrksrc=libwnck-${version}
revision=5
wrksrc="${pkgname/2/}-${version}"
build_style=gnu-configure
hostmakedepends="pkg-config intltool gobject-introspection"
hostmakedepends="pkg-config intltool gdk-pixbuf-devel"
makedepends="startup-notification-devel libXres-devel gtk+-devel"
short_desc="Library for layout and rendering of text (GTK+2)"
maintainer="Juan RP <xtraeme@gmail.com>"
@ -12,24 +12,38 @@ homepage="http://www.gnome.org/"
license="LGPL-2.1"
distfiles="${GNOME_SITE}/libwnck/2.30/libwnck-$version.tar.bz2"
checksum=8aabbe6c87b89b170dbd6e1577a89d248323da128fff0b3ab673010f0cd6156c
long_desc="
libwnck is Window Navigator Construction Kit, i.e. a library to use
for writing pagers and taskslists and stuff.
This package is based in the GTK+2 Toolkit."
# 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"
hostmakedepends+=" gobject-introspection"
else
configure_args+=" --disable-introspection"
fi
post_install() {
rm -rf ${DESTDIR}/usr/bin
}
libwnck2-devel_package() {
depends="gtk+-devel startup-notification-devel libXres-devel libwnck2>=${version}"
depends="gtk+-devel startup-notification-devel libXres-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" -- development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove usr/share/gir-1.0
vmove "usr/lib/*.so"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
vmove usr/share/gtk-doc
}
}