From: Fabrice Fontaine Date: Sat, 30 Jan 2021 17:14:55 +0000 (+0100) Subject: package/htop: add lm-sensors optional dependency X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=811846df48745d58d96f6c0fbab0dec5f17d614b;p=buildroot.git package/htop: add lm-sensors optional dependency lm-sensors is an optional dependency (enabled by default) since version 3.0.3 and https://github.com/htop-dev/htop/commit/1b225cd7a0af03a6349c48326118a287fc36acd0 Signed-off-by: Fabrice Fontaine Signed-off-by: Peter Korsgaard --- diff --git a/package/htop/htop.mk b/package/htop/htop.mk index 15a56485c8..aa2ff24750 100644 --- a/package/htop/htop.mk +++ b/package/htop/htop.mk @@ -12,6 +12,13 @@ HTOP_CONF_ENV = HTOP_NCURSES_CONFIG_SCRIPT=$(STAGING_DIR)/usr/bin/$(NCURSES_CONF HTOP_LICENSE = GPL-2.0 HTOP_LICENSE_FILES = COPYING +ifeq ($(BR2_PACKAGE_LM_SENSORS),y) +HTOP_CONF_OPTS += --with-sensors +HTOP_DEPENDENCIES += lm-sensors +else +HTOP_CONF_OPTS += --without-sensors +endif + ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y) HTOP_CONF_OPTS += --enable-unicode else