blob: ad302a0e1cdaf3ccaccb15832b07db78d038f778 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001DESCRIPTION = "UPower is an abstraction for enumerating power devices, listening to device events and querying history and statistics. "
2LICENSE = "GPLv2+"
3LIC_FILES_CHKSUM = "file://COPYING;md5=0de8fbf1d97a140d1d93b9f14dcfbf08"
4
Brad Bishop26bdd442019-08-16 17:08:17 -04005DEPENDS = "intltool-native libusb1 libgudev glib-2.0 dbus-glib"
Brad Bishop316dfdd2018-06-25 12:45:53 -04006
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08007SRC_URI = " \
8 http://upower.freedesktop.org/releases/${BPN}-${PV}.tar.xz \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08009"
Brad Bishopb809eb92019-09-18 06:27:43 -040010SRC_URI[md5sum] = "abe6acb617f11f2e8dbd9846fcf86e24"
11SRC_URI[sha256sum] = "64b5ffbfccd5bdb15d925777979a4dbee1a957f9eaeb158dc76175267eddbdef"
Brad Bishop316dfdd2018-06-25 12:45:53 -040012
Andrew Geissler89770b02020-06-13 10:40:47 -050013inherit autotools pkgconfig gettext gobject-introspection systemd
Brad Bishop19323692019-04-05 15:28:33 -040014
Brad Bishop316dfdd2018-06-25 12:45:53 -040015PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
16PACKAGECONFIG[idevice] = "--with-idevice,--without-idevice,libimobiledevice libplist"
17PACKAGECONFIG[systemd] = "--with-systemdutildir=${systemd_unitdir} --with-systemdsystemunitdir=${systemd_system_unitdir}, \
18 --without-systemdutildir --without-systemdsystemunitdir,systemd"
19
20EXTRA_OECONF = " --with-backend=linux"
21
Patrick Williams213cb262021-08-07 19:21:33 -050022SYSTEMD_SERVICE:${PN} = "upower.service"
Brad Bishop316dfdd2018-06-25 12:45:53 -040023# don't start on boot by default - dbus does that on demand
24SYSTEMD_AUTO_ENABLE = "disable"
25
Patrick Williams213cb262021-08-07 19:21:33 -050026do_configure:prepend() {
Brad Bishop316dfdd2018-06-25 12:45:53 -040027 sed -i -e s:-nonet:\:g ${S}/doc/man/Makefile.am
28 sed -i -e 's: doc : :g' ${S}/Makefile.am
29}
30
Patrick Williams213cb262021-08-07 19:21:33 -050031RDEPENDS:${PN} += "dbus"
32RRECOMMENDS:${PN} += "pm-utils"
33FILES:${PN} += "${datadir}/dbus-1/ \
Brad Bishop316dfdd2018-06-25 12:45:53 -040034 ${base_libdir}/udev/* \
35"