Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | SUMMARY = "Power management daemon" |
| 2 | LICENSE = "GPLv2" |
| 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" |
| 4 | |
| 5 | PR = "r4" |
| 6 | |
| 7 | DEPENDS = "glib-2.0 gtk+ gconf libgnome-keyring dbus dbus-glib libnotify libwnck cairo libunique xrandr virtual/libx11 libxrender libcanberra upower gnome-doc-utils" |
| 8 | RRECOMMENDS_${PN} += "gnome-keyring" |
| 9 | |
| 10 | inherit gnome |
| 11 | |
| 12 | SRC_URI += " \ |
| 13 | file://sysrooted-pkg-config.patch \ |
| 14 | file://0001-Makefile.am-don-t-build-help-man.patch \ |
| 15 | " |
| 16 | |
| 17 | SRC_URI[archive.md5sum] = "9a08e85dce3ffb90775f15e3bda4adda" |
| 18 | SRC_URI[archive.sha256sum] = "17fa301bf7e133285c0e054ae3be2b0f690c48f59b09f67e04d6ed339b330476" |
| 19 | GNOME_COMPRESS_TYPE="bz2" |
| 20 | |
| 21 | EXTRA_OECONF = " --disable-scrollkeeper \ |
| 22 | --disable-applets \ |
| 23 | --x-includes=${STAGING_INCDIR} \ |
| 24 | --x-libraries=${STAGING_LIBDIR} \ |
| 25 | --enable-compile-warnings=no \ |
| 26 | ac_cv_header_X11_extensions_dpms_h=yes \ |
| 27 | " |
| 28 | |
| 29 | do_configure_append() { |
| 30 | # Sigh... --enable-compile-warnings=no doesn't actually turn off -Werror |
| 31 | for i in $(find ${B} -name "Makefile") ; do |
| 32 | sed -i -e s:-Werror::g $i |
| 33 | done |
| 34 | sed -e "s/libtool --/${TARGET_SYS}-libtool --/" -i ${B}/src/Makefile |
| 35 | } |
| 36 | |
| 37 | PACKAGES =+ "${PN}-applets" |
| 38 | |
| 39 | FILES_${PN}-applets = "${bindir}/*applet* \ |
| 40 | ${libdir}/bonobo/servers \ |
| 41 | ${datadir}/gnome-2.0/ui \ |
| 42 | " |
| 43 | |
| 44 | FILES_${PN} += "${datadir}/icons \ |
| 45 | ${datadir}/dbus-1 \ |
| 46 | ${datadir}/gnome/autostart \ |
| 47 | " |
| 48 | |
| 49 | FILES_${PN}-doc += "${datadir}/omf \ |
| 50 | ${datadir}/gnome/help \ |
| 51 | " |
| 52 | |
| 53 | # gnome-power-manager-2.32.0/src/gpm-manager.c:488:18: error: too many arguments to function 'notify_notification_new' |
| 54 | PNBLACKLIST[gnome-power-manager] ?= "BROKEN: not compatible with current libnotify" |