xref: /OK3568_Linux_fs/buildroot/package/powertop/powertop.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# powertop
4#
5################################################################################
6
7POWERTOP_VERSION = 2.13
8POWERTOP_SITE = https://01.org/sites/default/files/downloads
9POWERTOP_DEPENDENCIES = pciutils ncurses libnl host-pkgconf \
10	$(TARGET_NLS_DEPENDENCIES)
11POWERTOP_LICENSE = GPL-2.0
12POWERTOP_LICENSE_FILES = COPYING
13POWERTOP_CONF_ENV = LIBS=$(TARGET_NLS_LIBS)
14# 0001-dont-force-stack-smashing-protection.patch
15POWERTOP_AUTORECONF = YES
16
17# Help powertop at finding the right ncurses library depending on
18# which one is available.
19ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y)
20POWERTOP_CONF_ENV += ac_cv_search_delwin="-lncursesw"
21else
22POWERTOP_CONF_ENV += ac_cv_search_delwin="-lncurses"
23endif
24
25$(eval $(autotools-package))
26