colord: cross build support.

This commit is contained in:
Juan RP 2014-02-07 05:06:20 +01:00
parent 6d505f0a70
commit 4074b66907
1 changed files with 13 additions and 1 deletions

View File

@ -24,6 +24,10 @@ license="GPL-2"
distfiles="$homepage/releases/$pkgname-$version.tar.xz"
checksum=a40bbceaa3d3b1d6fd2777b181bf641b4eb49ad249796823585136c146ad7e8e
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" libtool glib-devel colord"
fi
# Package build options
build_options="gir"
desc_option_gir="Enable support for building gobject introspection data"
@ -40,6 +44,14 @@ else
configure_args+=" --disable-introspection"
fi
pre_configure() {
if [ "$CROSS_BUILD" ]; then
# Use host cd-create-profile instead.
sed -e 's,$(top_builddir)/client/cd-create-profile,cd-create-profile,g' -i data/profiles/Makefile.in
libtoolize -f
fi
}
libcolord_package() {
short_desc+=" - runtime library"
replaces="colord<1.0.6"
@ -60,7 +72,7 @@ colord-devel_package() {
vmove "usr/lib/*.so"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
vmove usr/share/vala
fi
vmove usr/share/vala
}
}