blob: 608990ad4be7ea37019bd33307f968d50659ad97 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "Power manager for the Xfce desktop environment"
2HOMEPAGE = "http://goodies.xfce.org/projects/applications/xfce4-power-manager"
3SECTION = "x11"
4
5LICENSE = "GPLv2+"
6LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
7
8inherit xfce features_check
9
10REQUIRED_DISTRO_FEATURES = "x11"
11
12DEPENDS += "libnotify libxrandr virtual/libx11 libxext xfce4-panel upower libxscrnsaver"
13
14SRC_URI[md5sum] = "19873fc8a6de5e37ed57036a0002a5ce"
15SRC_URI[sha256sum] = "1b7bf0d3e8af69b10f7b6a518451e01fc7888e0d9d360bc33f6c89179bb6080b"
16
17EXTRA_OECONF = " \
18 --enable-network-manager \
19 --enable-panel-plugins \
20"
21
22PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'polkit', d)}"
23PACKAGECONFIG[polkit] = "--enable-polkit, --disable-polkit, polkit"
24
25PACKAGES += "xfce4-powermanager-plugin"
26
27FILES_${PN} += " \
28 ${datadir}/polkit-1 \
29 ${datadir}/metainfo \
30"
31
32FILES_xfce4-powermanager-plugin = " \
33 ${libdir}/xfce4 \
34 ${datadir}/xfce4 \
35"
36
37RDEPENDS_xfce4-powermanager-plugin = "${PN}"
38RDEPENDS_${PN} = "networkmanager ${@bb.utils.contains('DISTRO_FEATURES','systemd','','consolekit',d)}"
39
40# xfce4-brightness-plugin was replaced by xfce4-powermanager-plugin
41RPROVIDES_xfce4-powermanager-plugin += "xfce4-brightness-plugin"
42RREPLACES_xfce4-powermanager-plugin += "xfce4-brightness-plugin"
43RCONFLICTS_xfce4-powermanager-plugin += "xfce4-brightness-plugin"