@@ -24,9 +24,10 @@ GTKDOC_MESON_OPTION = "gtk-doc"
inherit meson pkgconfig gtk-doc gettext gobject-introspection systemd
-PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd polkit', d)}"
PACKAGECONFIG[idevice] = "-Didevice=enabled,-Didevice=disabled,libimobiledevice libplist"
PACKAGECONFIG[systemd] = "-Dsystemdsystemunitdir=${systemd_system_unitdir},-Dsystemdsystemunitdir=no -Dudevrulesdir=${base_libdir}/udev/rules.d,systemd"
+PACKAGECONFIG[polkit] = "-Dpolkit=enabled,-Dpolkit=disabled,polkit"
EXTRA_OEMESON = " \
-Dos_backend=linux \
@@ -41,6 +42,7 @@ RDEPENDS:${PN} += "dbus"
RRECOMMENDS:${PN} += "pm-utils"
FILES:${PN} += " \
${datadir}/dbus-1/ \
+ ${datadir}/polkit-1/ \
${base_libdir}/udev/* \
"