summaryrefslogtreecommitdiff
path: root/sysutils/htop
diff options
context:
space:
mode:
authorkim <kim@pkgsrc.org>2022-09-25 09:53:28 +0000
committerkim <kim@pkgsrc.org>2022-09-25 09:53:28 +0000
commitce79ed5bf1f6a7b66f29b75ba135b43721f23f38 (patch)
tree5f4e71a8e1cc77213f787057f6ecfeb64ab81526 /sysutils/htop
parentfffba2d5c480bb4eff3b804b4f0e929606906112 (diff)
downloadpkgsrc-ce79ed5bf1f6a7b66f29b75ba135b43721f23f38.tar.gz
htop: Add options for selecting curses type
Users can now select wide-curses for enabling unicode characters on NetBSD.
Diffstat (limited to 'sysutils/htop')
-rw-r--r--sysutils/htop/Makefile4
-rw-r--r--sysutils/htop/options.mk10
2 files changed, 13 insertions, 1 deletions
diff --git a/sysutils/htop/Makefile b/sysutils/htop/Makefile
index 667df905d8e..6ba97a73163 100644
--- a/sysutils/htop/Makefile
+++ b/sysutils/htop/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.29 2022/06/12 04:48:53 nia Exp $
+# $NetBSD: Makefile,v 1.30 2022/09/25 09:53:28 kim Exp $
DISTNAME= htop-3.2.1
+PKGREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_GITHUB:=htop-dev/}
@@ -14,6 +15,7 @@ USE_LIBTOOL= yes
USE_TOOLS+= autoreconf automake
USE_CURSES= getmouse
+.include "options.mk"
.include "../../mk/curses.buildlink3.mk"
.if ${CURSES_TYPE} != "ncursesw"
diff --git a/sysutils/htop/options.mk b/sysutils/htop/options.mk
new file mode 100644
index 00000000000..315f1073d84
--- /dev/null
+++ b/sysutils/htop/options.mk
@@ -0,0 +1,10 @@
+# $NetBSD: options.mk,v 1.1 2022/09/25 09:53:28 kim Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.htop
+
+PKG_OPTIONS_REQUIRED_GROUPS+= curses
+PKG_OPTIONS_GROUP.curses= curses wide-curses
+
+PKG_SUGGESTED_OPTIONS= curses
+
+.include "../../mk/bsd.options.mk"