colord: cross build support.
This commit is contained in:
@@ -24,6 +24,10 @@ license="GPL-2"
|
|||||||
distfiles="$homepage/releases/$pkgname-$version.tar.xz"
|
distfiles="$homepage/releases/$pkgname-$version.tar.xz"
|
||||||
checksum=a40bbceaa3d3b1d6fd2777b181bf641b4eb49ad249796823585136c146ad7e8e
|
checksum=a40bbceaa3d3b1d6fd2777b181bf641b4eb49ad249796823585136c146ad7e8e
|
||||||
|
|
||||||
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
hostmakedepends+=" libtool glib-devel colord"
|
||||||
|
fi
|
||||||
|
|
||||||
# Package build options
|
# Package build options
|
||||||
build_options="gir"
|
build_options="gir"
|
||||||
desc_option_gir="Enable support for building gobject introspection data"
|
desc_option_gir="Enable support for building gobject introspection data"
|
||||||
@@ -40,6 +44,14 @@ else
|
|||||||
configure_args+=" --disable-introspection"
|
configure_args+=" --disable-introspection"
|
||||||
fi
|
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() {
|
libcolord_package() {
|
||||||
short_desc+=" - runtime library"
|
short_desc+=" - runtime library"
|
||||||
replaces="colord<1.0.6"
|
replaces="colord<1.0.6"
|
||||||
@@ -60,7 +72,7 @@ colord-devel_package() {
|
|||||||
vmove "usr/lib/*.so"
|
vmove "usr/lib/*.so"
|
||||||
if [ "$build_option_gir" ]; then
|
if [ "$build_option_gir" ]; then
|
||||||
vmove usr/share/gir-1.0
|
vmove usr/share/gir-1.0
|
||||||
fi
|
|
||||||
vmove usr/share/vala
|
vmove usr/share/vala
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user