aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/colord/colord.bb
blob: 563a0ee00ae44559430fc35133a705aab20f9f57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
require ${BPN}.inc

inherit meson gobject-introspection gsettings gettext bash-completion systemd features_check useradd pkgconfig

# polkit and gobject-introspection are mandatory and cannot be configured
REQUIRED_DISTRO_FEATURES = "polkit gobject-introspection-data"
UNKNOWN_CONFIGURE_WHITELIST:append = " introspection"

DEPENDS += " \
    ${BPN}-native \
    glib-2.0 \
    lcms \
    sqlite3 \
    libgusb \
    libgudev \
    polkit \
"

SRC_URI += " \
    file://0001-Run-native-cd_idt8-cd_create_profile.patch \
"

EXTRA_OEMESON = " \
    -Dman=false \
    -Ddocs=false \
"

PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
PACKAGECONFIG[systemd] = "-Dsystemd=true, -Dsystemd=false, systemd"

SYSTEMD_SERVICE:${PN} = "colord.service"

FILES:${PN} += " \
    ${datadir}/dbus-1 \
    ${datadir}/polkit-1 \
    ${datadir}/glib-2.0 \
    ${datadir}/color \
    ${systemd_user_unitdir} \
    ${nonarch_libdir}/tmpfiles.d \
    ${libdir}/colord-plugins \
    ${libdir}/colord-sensors \
"

USERADD_PACKAGES = "${PN}"
USERADD_PARAM:${PN} = "--system --user-group -d /var/lib/colord -s /bin/false colord"