2011-09-29 10:38:13 +00:00
|
|
|
# Template file for 'colord'
|
|
|
|
pkgname=colord
|
2015-08-20 06:40:59 +00:00
|
|
|
version=1.2.12
|
2015-10-14 07:16:29 +00:00
|
|
|
revision=2
|
2015-08-20 06:40:59 +00:00
|
|
|
build_pie=yes
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2012-05-18 08:54:53 +00:00
|
|
|
configure_args="--disable-static --disable-schemas-compile
|
2014-05-09 09:58:32 +00:00
|
|
|
--with-udevrulesdir=/usr/lib/udev/rules.d --with-daemon-user=colord
|
2015-01-13 01:18:03 +00:00
|
|
|
--enable-polkit --enable-gusb --enable-udev --enable-sane
|
2015-01-15 07:09:19 +00:00
|
|
|
--disable-argyllcms-sensor $(vopt_enable gir introspection)
|
2015-06-09 05:53:52 +00:00
|
|
|
--disable-systemd-login --enable-vala"
|
2015-04-11 05:57:27 +00:00
|
|
|
conf_files="/etc/dbus-1/system.d/org.freedesktop.ColorManager.conf"
|
2014-01-01 15:10:11 +00:00
|
|
|
system_accounts="colord"
|
|
|
|
colord_homedir="/var/lib/colord"
|
|
|
|
make_dirs="
|
2015-02-21 07:59:34 +00:00
|
|
|
/var/lib/colord 0755 colord colord
|
|
|
|
/var/lib/colord/icc 0755 colord colord"
|
2013-01-26 07:24:25 +00:00
|
|
|
short_desc="System daemon for managing color devices"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2012-07-09 16:41:39 +00:00
|
|
|
homepage="http://www.freedesktop.org/software/colord"
|
2013-01-26 07:24:25 +00:00
|
|
|
license="GPL-2"
|
2012-07-09 16:41:39 +00:00
|
|
|
distfiles="$homepage/releases/$pkgname-$version.tar.xz"
|
2015-08-20 06:40:59 +00:00
|
|
|
checksum=d5241864c16a37f9e40d38d5009255456495a67f170ce0dc9250774442d68c3a
|
2014-05-09 09:58:32 +00:00
|
|
|
|
2015-01-19 08:13:54 +00:00
|
|
|
hostmakedepends="pkg-config intltool docbook2x gobject-introspection"
|
2015-03-27 09:50:40 +00:00
|
|
|
makedepends="vala-devel libgudev-devel polkit-devel lcms2-devel dbus-devel
|
2015-06-09 05:53:52 +00:00
|
|
|
libusb-devel libgusb-devel sqlite-devel sane-devel libudev-devel bash-completion"
|
2015-01-13 08:09:42 +00:00
|
|
|
|
2014-02-07 04:06:20 +00:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2015-01-19 08:13:54 +00:00
|
|
|
hostmakedepends+=" automake libtool gettext-devel glib-devel gtk-doc colord"
|
2014-02-07 04:06:20 +00:00
|
|
|
fi
|
|
|
|
|
2014-02-01 15:02:29 +00:00
|
|
|
# Package build options
|
2015-06-09 05:53:52 +00:00
|
|
|
build_options="gir"
|
2014-02-01 15:02:29 +00:00
|
|
|
|
|
|
|
# Disable gir for cross builds.
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
2014-05-09 09:58:32 +00:00
|
|
|
build_options_default+=" gir"
|
2014-02-01 15:02:29 +00:00
|
|
|
fi
|
|
|
|
|
2014-02-07 04:06:20 +00:00
|
|
|
pre_configure() {
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2015-01-15 07:09:19 +00:00
|
|
|
# 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
|
2014-07-28 15:37:37 +00:00
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
2014-02-07 04:06:20 +00:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2013-04-12 06:55:23 +00:00
|
|
|
libcolord_package() {
|
2013-05-03 17:37:29 +00:00
|
|
|
short_desc+=" - runtime library"
|
2013-04-12 06:55:23 +00:00
|
|
|
pkg_install() {
|
2014-02-01 15:02:29 +00:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove usr/lib/girepository-1.0
|
|
|
|
fi
|
2013-06-27 04:44:57 +00:00
|
|
|
vmove "usr/lib/*.so.*"
|
2013-04-12 06:55:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
colord-devel_package() {
|
2014-05-09 10:10:04 +00:00
|
|
|
depends="dbus-devel libglib-devel lcms2-devel libudev-devel libcolord>=${version}_${revision}"
|
2013-05-03 17:37:29 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 06:55:23 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
2013-06-27 04:44:57 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2014-02-01 15:02:29 +00:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove usr/share/gir-1.0
|
2014-02-07 04:06:20 +00:00
|
|
|
vmove usr/share/vala
|
2014-02-01 15:02:29 +00:00
|
|
|
fi
|
2013-04-12 06:55:23 +00:00
|
|
|
}
|
|
|
|
}
|