xref: /OK3568_Linux_fs/buildroot/package/htop/htop.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# htop
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunHTOP_VERSION = 3.1.1
8*4882a593SmuzhiyunHTOP_SITE = $(call github,htop-dev,htop,$(HTOP_VERSION))
9*4882a593SmuzhiyunHTOP_DEPENDENCIES = ncurses
10*4882a593SmuzhiyunHTOP_AUTORECONF = YES
11*4882a593Smuzhiyun# Prevent htop build system from searching the host paths
12*4882a593SmuzhiyunHTOP_CONF_ENV = HTOP_NCURSES_CONFIG_SCRIPT=$(STAGING_DIR)/usr/bin/$(NCURSES_CONFIG_SCRIPTS)
13*4882a593SmuzhiyunHTOP_LICENSE = GPL-2.0+
14*4882a593SmuzhiyunHTOP_LICENSE_FILES = COPYING
15*4882a593Smuzhiyun
16*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_HWLOC),y)
17*4882a593SmuzhiyunHTOP_CONF_OPTS += --enable-hwloc
18*4882a593SmuzhiyunHTOP_DEPENDENCIES += hwloc
19*4882a593Smuzhiyunelse
20*4882a593SmuzhiyunHTOP_CONF_OPTS += --disable-hwloc
21*4882a593Smuzhiyunendif
22*4882a593Smuzhiyun
23*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBCAP),y)
24*4882a593SmuzhiyunHTOP_CONF_OPTS += --enable-capabilities
25*4882a593SmuzhiyunHTOP_DEPENDENCIES += libcap
26*4882a593Smuzhiyunelse
27*4882a593SmuzhiyunHTOP_CONF_OPTS += --disable-capabilities
28*4882a593Smuzhiyunendif
29*4882a593Smuzhiyun
30*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LM_SENSORS),y)
31*4882a593SmuzhiyunHTOP_CONF_OPTS += --with-sensors
32*4882a593SmuzhiyunHTOP_DEPENDENCIES += lm-sensors
33*4882a593Smuzhiyunelse
34*4882a593SmuzhiyunHTOP_CONF_OPTS += --without-sensors
35*4882a593Smuzhiyunendif
36*4882a593Smuzhiyun
37*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y)
38*4882a593SmuzhiyunHTOP_CONF_OPTS += --enable-unicode
39*4882a593Smuzhiyunelse
40*4882a593SmuzhiyunHTOP_CONF_OPTS += --disable-unicode
41*4882a593Smuzhiyunendif
42*4882a593Smuzhiyun
43*4882a593Smuzhiyun$(eval $(autotools-package))
44