diff --git a/package/htop/htop.mk b/package/htop/htop.mk index 22cc739e20..140d620f20 100644 --- a/package/htop/htop.mk +++ b/package/htop/htop.mk @@ -13,6 +13,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_LIBCAP),y) +HTOP_CONF_OPTS += --enable-capabilities +HTOP_DEPENDENCIES += libcap +else +HTOP_CONF_OPTS += --disable-capabilities +endif + ifeq ($(BR2_PACKAGE_LM_SENSORS),y) HTOP_CONF_OPTS += --with-sensors HTOP_DEPENDENCIES += lm-sensors