2015-03-19 06:40:21 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# powertop
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
POWERTOP_VERSION = 2.7
|
2015-09-28 18:10:31 +02:00
|
|
|
POWERTOP_SITE = https://01.org/sites/default/files/downloads/powertop
|
2015-03-27 15:20:30 +01:00
|
|
|
POWERTOP_DEPENDENCIES = pciutils ncurses libnl host-gettext host-pkgconf
|
2017-03-30 15:43:32 +02:00
|
|
|
POWERTOP_LICENSE = GPL-2.0
|
2015-03-19 06:40:21 +01:00
|
|
|
POWERTOP_LICENSE_FILES = COPYING
|
|
|
|
# We're patching Makefile.am
|
|
|
|
POWERTOP_AUTORECONF = YES
|
2015-03-27 15:20:30 +01:00
|
|
|
POWERTOP_GETTEXTIZE = YES
|
2015-03-19 06:40:21 +01:00
|
|
|
|
2015-03-21 09:39:22 +01:00
|
|
|
ifeq ($(BR2_NEEDS_GETTEXT),y)
|
2015-03-19 06:40:21 +01:00
|
|
|
POWERTOP_DEPENDENCIES += gettext
|
|
|
|
POWERTOP_CONF_ENV += LIBS='-lintl'
|
|
|
|
endif
|
|
|
|
|
2015-03-27 17:01:36 +01:00
|
|
|
# Help powertop at finding the right ncurses library depending on
|
|
|
|
# which one is available.
|
|
|
|
ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y)
|
|
|
|
POWERTOP_CONF_ENV += ac_cv_search_delwin="-lncursesw"
|
|
|
|
else
|
|
|
|
POWERTOP_CONF_ENV += ac_cv_search_delwin="-lncurses"
|
|
|
|
endif
|
|
|
|
|
2015-03-19 06:40:21 +01:00
|
|
|
$(eval $(autotools-package))
|