Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | DESCRIPTION = "UPower is an abstraction for enumerating power devices, listening to device events and querying history and statistics. " |
| 2 | LICENSE = "GPLv2+" |
| 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=0de8fbf1d97a140d1d93b9f14dcfbf08" |
| 4 | |
| 5 | PR = "r2" |
| 6 | |
| 7 | DEPENDS = "intltool-native libusb1 libgudev glib-2.0 dbus-glib polkit" |
| 8 | |
| 9 | SRC_URI = "http://upower.freedesktop.org/releases/${BPN}-${PV}.tar.xz" |
| 10 | SRC_URI[md5sum] = "18803f82102d56aac90949d1e4251645" |
| 11 | SRC_URI[sha256sum] = "81eb44c0453b264a737d32f763a31d5b1776f050a47d5be85fc5e9caf874a4c5" |
| 12 | |
| 13 | inherit autotools pkgconfig gettext gobject-introspection |
| 14 | |
| 15 | PACKAGECONFIG ??= "" |
| 16 | PACKAGECONFIG[idevice] = "--with-idevice,--without-idevice,libimobiledevice libplist" |
| 17 | |
| 18 | EXTRA_OECONF = " --with-backend=linux" |
| 19 | |
| 20 | do_configure_prepend() { |
| 21 | sed -i -e s:-nonet:\:g ${S}/doc/man/Makefile.am |
| 22 | sed -i -e 's: doc : :g' ${S}/Makefile.am |
| 23 | } |
| 24 | |
| 25 | |
| 26 | RRECOMMENDS_${PN} += "pm-utils" |
| 27 | FILES_${PN} += "${datadir}/dbus-1/ \ |
| 28 | ${datadir}/polkit-1/ \ |
| 29 | ${base_libdir}/udev/* \ |
| 30 | " |
| 31 | |
| 32 | FILES_${PN}-dbg += "${base_libdir}/udev/.debug" |
| 33 | |
| 34 | |
| 35 | |