blob: 34de7a70866936be18fddcab910532eee466949a [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
Andrew Geissler9aee5002022-03-30 16:27:02 +00005LICENSE = "GPL-2.0-or-later"
Andrew Geissler82c905d2020-04-13 13:39:40 -05006LIC_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
Andrew Geissler72956ed2021-01-08 16:11:14 -060014SRC_URI[sha256sum] = "eb9c587c01b502fa45a32e7fc2aba98fa6d8391475133883654f77e562c43bf3"
Andrew Geissler82c905d2020-04-13 13:39:40 -050015
16EXTRA_OECONF = " \
17 --enable-network-manager \
18 --enable-panel-plugins \
19"
20
21PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'polkit', d)}"
22PACKAGECONFIG[polkit] = "--enable-polkit, --disable-polkit, polkit"
23
24PACKAGES += "xfce4-powermanager-plugin"
25
Patrick Williams213cb262021-08-07 19:21:33 -050026FILES:${PN} += " \
Andrew Geissler82c905d2020-04-13 13:39:40 -050027 ${datadir}/polkit-1 \
28 ${datadir}/metainfo \
29"
30
Patrick Williams213cb262021-08-07 19:21:33 -050031FILES:xfce4-powermanager-plugin = " \
Andrew Geissler82c905d2020-04-13 13:39:40 -050032 ${libdir}/xfce4 \
33 ${datadir}/xfce4 \
34"
35
Patrick Williams213cb262021-08-07 19:21:33 -050036RDEPENDS:xfce4-powermanager-plugin = "${PN}"
37RDEPENDS:${PN} = "networkmanager ${@bb.utils.contains('DISTRO_FEATURES','systemd','','consolekit',d)}"
Andrew Geissler82c905d2020-04-13 13:39:40 -050038
39# xfce4-brightness-plugin was replaced by xfce4-powermanager-plugin
Patrick Williams213cb262021-08-07 19:21:33 -050040RPROVIDES:xfce4-powermanager-plugin += "xfce4-brightness-plugin"
41RREPLACES:xfce4-powermanager-plugin += "xfce4-brightness-plugin"
42RCONFLICTS:xfce4-powermanager-plugin += "xfce4-brightness-plugin"