Brad Bishop | 868407c | 2019-11-04 13:24:47 -0500 | [diff] [blame] | 1 | require ${BPN}.inc |
| 2 | |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 3 | inherit meson gobject-introspection gsettings gettext bash-completion systemd features_check useradd pkgconfig |
Brad Bishop | 868407c | 2019-11-04 13:24:47 -0500 | [diff] [blame] | 4 | |
| 5 | # polkit and gobject-introspection are mandatory and cannot be configured |
| 6 | REQUIRED_DISTRO_FEATURES = "polkit gobject-introspection-data" |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 7 | GIR_MESON_OPTION = "" |
Brad Bishop | 868407c | 2019-11-04 13:24:47 -0500 | [diff] [blame] | 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 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 31 | SYSTEMD_SERVICE:${PN} = "colord.service" |
Brad Bishop | 868407c | 2019-11-04 13:24:47 -0500 | [diff] [blame] | 32 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 33 | FILES:${PN} += " \ |
Brad Bishop | 868407c | 2019-11-04 13:24:47 -0500 | [diff] [blame] | 34 | ${datadir}/dbus-1 \ |
| 35 | ${datadir}/polkit-1 \ |
| 36 | ${datadir}/glib-2.0 \ |
| 37 | ${datadir}/color \ |
| 38 | ${systemd_user_unitdir} \ |
Andrew Geissler | 8fc454f | 2020-12-11 16:27:59 -0600 | [diff] [blame] | 39 | ${nonarch_libdir}/tmpfiles.d \ |
Brad Bishop | 868407c | 2019-11-04 13:24:47 -0500 | [diff] [blame] | 40 | ${libdir}/colord-plugins \ |
| 41 | ${libdir}/colord-sensors \ |
| 42 | " |
| 43 | |
| 44 | USERADD_PACKAGES = "${PN}" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 45 | USERADD_PARAM:${PN} = "--system --user-group -d /var/lib/colord -s /bin/false colord" |