From ce79ed5bf1f6a7b66f29b75ba135b43721f23f38 Mon Sep 17 00:00:00 2001 From: kim Date: Sun, 25 Sep 2022 09:53:28 +0000 Subject: [PATCH] htop: Add options for selecting curses type Users can now select wide-curses for enabling unicode characters on NetBSD. --- sysutils/htop/Makefile | 4 +++- sysutils/htop/options.mk | 10 ++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 sysutils/htop/options.mk diff --git a/sysutils/htop/Makefile b/sysutils/htop/Makefile index 667df905d8eb..6ba97a73163f 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 000000000000..315f1073d840 --- /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"