Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | SUMMARY = "Power manager for the Xfce desktop environment" |
| 2 | HOMEPAGE = "http://goodies.xfce.org/projects/applications/xfce4-power-manager" |
| 3 | SECTION = "x11" |
| 4 | |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 5 | LICENSE = "GPL-2.0-or-later" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" |
| 7 | |
| 8 | inherit xfce features_check |
| 9 | |
| 10 | REQUIRED_DISTRO_FEATURES = "x11" |
| 11 | |
| 12 | DEPENDS += "libnotify libxrandr virtual/libx11 libxext xfce4-panel upower libxscrnsaver" |
| 13 | |
Andrew Geissler | 72956ed | 2021-01-08 16:11:14 -0600 | [diff] [blame] | 14 | SRC_URI[sha256sum] = "eb9c587c01b502fa45a32e7fc2aba98fa6d8391475133883654f77e562c43bf3" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 15 | |
| 16 | EXTRA_OECONF = " \ |
| 17 | --enable-network-manager \ |
| 18 | --enable-panel-plugins \ |
| 19 | " |
| 20 | |
| 21 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'polkit', d)}" |
| 22 | PACKAGECONFIG[polkit] = "--enable-polkit, --disable-polkit, polkit" |
| 23 | |
| 24 | PACKAGES += "xfce4-powermanager-plugin" |
| 25 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 26 | FILES:${PN} += " \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 27 | ${datadir}/polkit-1 \ |
| 28 | ${datadir}/metainfo \ |
| 29 | " |
| 30 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 31 | FILES:xfce4-powermanager-plugin = " \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 32 | ${libdir}/xfce4 \ |
| 33 | ${datadir}/xfce4 \ |
| 34 | " |
| 35 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 36 | RDEPENDS:xfce4-powermanager-plugin = "${PN}" |
| 37 | RDEPENDS:${PN} = "networkmanager ${@bb.utils.contains('DISTRO_FEATURES','systemd','','consolekit',d)}" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 38 | |
| 39 | # xfce4-brightness-plugin was replaced by xfce4-powermanager-plugin |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 40 | RPROVIDES:xfce4-powermanager-plugin += "xfce4-brightness-plugin" |
| 41 | RREPLACES:xfce4-powermanager-plugin += "xfce4-brightness-plugin" |
| 42 | RCONFLICTS:xfce4-powermanager-plugin += "xfce4-brightness-plugin" |