Skip to content

Commit

Permalink
htop: Add options for selecting curses type
Browse files Browse the repository at this point in the history
Users can now select wide-curses for enabling unicode characters on NetBSD.
  • Loading branch information
suominen committed Sep 25, 2022
1 parent fffba2d commit ce79ed5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sysutils/htop/Makefile
Original file line number Diff line number Diff line change
@@ -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/}

Expand All @@ -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"
Expand Down
10 changes: 10 additions & 0 deletions sysutils/htop/options.mk
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit ce79ed5

Please sign in to comment.