xfce4-power-manager: enable polkit depending on distro feature

systemd and polkit are not directly related. It is just fine to build
with systemd but without polkit. Rename the systemd package config
to polkit and enable it depending on whether polkit is enabled in
DISTRO_FEATURES.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Stefan Agner authored and Khem Raj committed 2019-01-20 10:15:44 -08:00
1 parent e6836ceaef
commit 4d3a76884e
1 file changed
+2 -2
@@ -20,8 +20,8 @@ EXTRA_OECONF = " \
--enable-panel-plugins \
"
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
PACKAGECONFIG[systemd] = "--enable-polkit, --disable-polkit, polkit"
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'polkit', d)}"
PACKAGECONFIG[polkit] = "--enable-polkit, --disable-polkit, polkit"
PACKAGES += "xfce4-powermanager-plugin"