Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -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 | |
| 5 | LICENSE = "GPLv2+" |
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" |
| 7 | |
| 8 | inherit xfce |
| 9 | |
| 10 | DEPENDS += "gtk+ glib-2.0 dbus-glib xfconf libxfce4ui libxfce4util libnotify \ |
| 11 | libxrandr virtual/libx11 libxext xfce4-panel upower" |
| 12 | |
| 13 | SRC_URI[md5sum] = "e7d00548e58bf19229e727818184c1e0" |
| 14 | SRC_URI[sha256sum] = "c50ec8aa7e7848c57c0f856dceb8132eb5f37585f0ac1627459ab8c882c73b07" |
| 15 | |
| 16 | EXTRA_OECONF = " \ |
| 17 | --enable-network-manager \ |
| 18 | --enable-panel-plugins \ |
| 19 | " |
| 20 | |
| 21 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd','',d)}" |
| 22 | PACKAGECONFIG[systemd] = "--enable-polkit, --disable-polkit, polkit" |
| 23 | |
| 24 | PACKAGES += "xfce4-powermanager-plugin" |
| 25 | |
| 26 | FILES_${PN} += " \ |
| 27 | ${datadir}/polkit-1 \ |
| 28 | ${datadir}/appdata \ |
| 29 | " |
| 30 | |
| 31 | FILES_xfce4-powermanager-plugin = " \ |
| 32 | ${libdir}/xfce4 \ |
| 33 | ${datadir}/xfce4 \ |
| 34 | " |
| 35 | |
| 36 | RDEPENDS_xfce4-powermanager-plugin = "${PN}" |
| 37 | RDEPENDS_${PN} = "networkmanager ${@bb.utils.contains('DISTRO_FEATURES','systemd','','consolekit',d)}" |
| 38 | |
| 39 | # xfce4-brightness-plugin was replaced by xfce4-powermanager-plugin |
| 40 | RPROVIDES_xfce4-powermanager-plugin += "xfce4-brightness-plugin" |
| 41 | RREPLACES_xfce4-powermanager-plugin += "xfce4-brightness-plugin" |
| 42 | RCONFLICTS_xfce4-powermanager-plugin += "xfce4-brightness-plugin" |