2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-03-28 20:47:58 +02:00
|
|
|
#
|
|
|
|
# htop
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-03-28 20:47:58 +02:00
|
|
|
|
2024-01-22 20:33:27 +01:00
|
|
|
HTOP_VERSION = 3.3.0
|
2022-04-03 13:04:54 +02:00
|
|
|
HTOP_SOURCE = htop-$(HTOP_VERSION).tar.xz
|
|
|
|
HTOP_SITE = https://github.com/htop-dev/htop/releases/download/$(HTOP_VERSION)
|
2011-03-28 20:47:58 +02:00
|
|
|
HTOP_DEPENDENCIES = ncurses
|
2016-07-10 22:59:34 +02:00
|
|
|
# Prevent htop build system from searching the host paths
|
2017-03-26 08:36:54 +02:00
|
|
|
HTOP_CONF_ENV = HTOP_NCURSES_CONFIG_SCRIPT=$(STAGING_DIR)/usr/bin/$(NCURSES_CONFIG_SCRIPTS)
|
2021-10-25 18:16:14 +02:00
|
|
|
HTOP_LICENSE = GPL-2.0+
|
2013-04-24 14:57:04 +02:00
|
|
|
HTOP_LICENSE_FILES = COPYING
|
2011-03-28 20:47:58 +02:00
|
|
|
|
2022-05-11 18:48:38 +02:00
|
|
|
# ac_cv_prog_cc_c99 is required for BR2_USE_WCHAR=n because the C99 test
|
|
|
|
# provided by autoconf relies on wchar_t.
|
|
|
|
HTOP_CONF_ENV += ac_cv_prog_cc_c99=-std=gnu99
|
|
|
|
|
2021-10-03 10:13:26 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_HWLOC),y)
|
|
|
|
HTOP_CONF_OPTS += --enable-hwloc
|
|
|
|
HTOP_DEPENDENCIES += hwloc
|
|
|
|
else
|
|
|
|
HTOP_CONF_OPTS += --disable-hwloc
|
|
|
|
endif
|
|
|
|
|
2021-10-03 10:13:25 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBCAP),y)
|
|
|
|
HTOP_CONF_OPTS += --enable-capabilities
|
|
|
|
HTOP_DEPENDENCIES += libcap
|
|
|
|
else
|
|
|
|
HTOP_CONF_OPTS += --disable-capabilities
|
|
|
|
endif
|
|
|
|
|
2021-01-30 18:14:55 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LM_SENSORS),y)
|
2022-04-03 13:04:53 +02:00
|
|
|
HTOP_CONF_OPTS += --enable-sensors
|
2021-01-30 18:14:55 +01:00
|
|
|
HTOP_DEPENDENCIES += lm-sensors
|
|
|
|
else
|
2022-04-03 13:04:53 +02:00
|
|
|
HTOP_CONF_OPTS += --disable-sensors
|
2021-01-30 18:14:55 +01:00
|
|
|
endif
|
|
|
|
|
2016-11-14 12:04:48 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y)
|
|
|
|
HTOP_CONF_OPTS += --enable-unicode
|
|
|
|
else
|
|
|
|
HTOP_CONF_OPTS += --disable-unicode
|
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|