0cd7f75f10
Since libgusb now hard depends on gobject-introspection, it can no longer be cross compiled. Not having cross colord-devel would require us to cross build gtk+3 without it. Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
71 lines
2.2 KiB
Bash
71 lines
2.2 KiB
Bash
# Template file for 'colord'
|
|
pkgname=colord
|
|
version=1.3.5
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static --disable-schemas-compile
|
|
--with-udevrulesdir=/usr/lib/udev/rules.d --with-daemon-user=colord
|
|
--enable-polkit $(vopt_enable gusb) --enable-udev --enable-sane
|
|
--disable-argyllcms-sensor $(vopt_enable gir introspection)
|
|
--disable-systemd-login --enable-vala"
|
|
conf_files="/etc/dbus-1/system.d/org.freedesktop.ColorManager.conf"
|
|
system_accounts="colord"
|
|
colord_homedir="/var/lib/colord"
|
|
make_dirs="
|
|
/var/lib/colord 0755 colord colord
|
|
/var/lib/colord/icc 0755 colord colord"
|
|
short_desc="System daemon for managing color devices"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://www.freedesktop.org/software/colord"
|
|
license="GPL-2.0-only"
|
|
distfiles="$homepage/releases/$pkgname-$version.tar.xz"
|
|
checksum=2daa8ffd2a532d7094927cd1a4af595b8310cea66f7707edcf6ab743460feed2
|
|
|
|
hostmakedepends="docbook2x gobject-introspection intltool pkg-config"
|
|
makedepends="bash-completion lcms2-devel libgudev-devel polkit-devel sane-devel
|
|
sqlite-devel vala-devel $(vopt_if gusb 'libusb-devel libgusb-devel')"
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" automake libtool gettext-devel glib-devel gtk-doc colord"
|
|
fi
|
|
|
|
# Package build options
|
|
build_options="gir gusb"
|
|
desc_option_gusb="Enable support for libgusb"
|
|
|
|
# Disable gir and gusb for cross builds.
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default="gir gusb"
|
|
fi
|
|
|
|
pre_configure() {
|
|
if [ "$CROSS_BUILD" ]; then
|
|
# Use host utils instead.
|
|
sed -e 's,$(CD_IT8),cd-it8,g' -i data/cmf/Makefile.am data/illuminant/Makefile.am
|
|
sed -e 's,$(CD_CREATE_PROFILE),cd-create-profile,g' -i data/profiles/Makefile.am
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
fi
|
|
}
|
|
|
|
libcolord_package() {
|
|
short_desc+=" - runtime library"
|
|
pkg_install() {
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/lib/girepository-1.0
|
|
fi
|
|
vmove "usr/lib/*.so.*"
|
|
}
|
|
}
|
|
colord-devel_package() {
|
|
depends="dbus-devel libglib-devel lcms2-devel eudev-libudev-devel libcolord>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
vmove usr/share/vala
|
|
fi
|
|
}
|
|
}
|