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