Brad Bishop | 868407c | 2019-11-04 13:24:47 -0500 | [diff] [blame^] | 1 | require ${BPN}.inc |
| 2 | |
| 3 | inherit meson gobject-introspection gsettings gettext bash-completion systemd distro_features_check useradd |
| 4 | |
| 5 | # polkit and gobject-introspection are mandatory and cannot be configured |
| 6 | REQUIRED_DISTRO_FEATURES = "polkit gobject-introspection-data" |
| 7 | UNKNOWN_CONFIGURE_WHITELIST_append = " introspection" |
| 8 | |
| 9 | DEPENDS += " \ |
| 10 | ${BPN}-native \ |
| 11 | glib-2.0 \ |
| 12 | lcms \ |
| 13 | sqlite3 \ |
| 14 | libgusb \ |
| 15 | libgudev \ |
| 16 | polkit \ |
| 17 | " |
| 18 | |
| 19 | SRC_URI += " \ |
| 20 | file://0001-Run-native-cd_idt8-cd_create_profile.patch \ |
| 21 | " |
| 22 | |
| 23 | EXTRA_OEMESON = " \ |
| 24 | -Dman=false \ |
| 25 | -Ddocs=false \ |
| 26 | " |
| 27 | |
| 28 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" |
| 29 | PACKAGECONFIG[systemd] = "-Dsystemd=true, -Dsystemd=false, systemd" |
| 30 | |
| 31 | SYSTEMD_SERVICE_${PN} = "colord.service" |
| 32 | |
| 33 | FILES_${PN} += " \ |
| 34 | ${datadir}/dbus-1 \ |
| 35 | ${datadir}/polkit-1 \ |
| 36 | ${datadir}/glib-2.0 \ |
| 37 | ${datadir}/color \ |
| 38 | ${systemd_user_unitdir} \ |
| 39 | ${libdir}/tmpfiles.d \ |
| 40 | ${libdir}/colord-plugins \ |
| 41 | ${libdir}/colord-sensors \ |
| 42 | " |
| 43 | |
| 44 | USERADD_PACKAGES = "${PN}" |
| 45 | USERADD_PARAM_${PN} = "--system --user-group -d /var/lib/colord -s /bin/false colord" |