summaryrefslogtreecommitdiff
path: root/package/htop
diff options
context:
space:
mode:
authorJérôme Pouiller <jezz@sysmic.org>2016-11-14 12:04:48 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-11-15 13:02:04 +0100
commita75a1d36d235b8552e3f6989681d0a4f17acef64 (patch)
tree1e9b2e9241f508c57a93bc945232e3025ebb8abe /package/htop
parentf148d55980bbc2943706670df638b0f70d8de81e (diff)
htop: enable unicode if possible
Signed-off-by: Jérôme Pouiller <jezz@sysmic.org> [Thomas: - use positive logic - use += instead of = in conditions.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/htop')
-rw-r--r--package/htop/htop.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/package/htop/htop.mk b/package/htop/htop.mk
index 7409a78e2..adc509014 100644
--- a/package/htop/htop.mk
+++ b/package/htop/htop.mk
@@ -7,10 +7,15 @@
HTOP_VERSION = 2.0.2
HTOP_SITE = http://hisham.hm/htop/releases/$(HTOP_VERSION)
HTOP_DEPENDENCIES = ncurses
-HTOP_CONF_OPTS = --disable-unicode
# Prevent htop build system from searching the host paths
HTOP_CONF_ENV = HTOP_NCURSES_CONFIG_SCRIPT=$(STAGING_DIR)/usr/bin/ncurses5-config
HTOP_LICENSE = GPLv2
HTOP_LICENSE_FILES = COPYING
+ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y)
+HTOP_CONF_OPTS += --enable-unicode
+else
+HTOP_CONF_OPTS += --disable-unicode
+endif
+
$(eval $(autotools-package))