summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorroy <roy@pkgsrc.org>2017-01-04 21:17:56 +0000
committerroy <roy@pkgsrc.org>2017-01-04 21:17:56 +0000
commit180c292bb533b3cc9b34f1e40bb6a16dc300475f (patch)
tree32582f1445509b8c1a5fc0d8e6c47f60fd6811b4 /misc
parent59c335c7f19ee0d1a4356dfa0e6dbeeef878d8b9 (diff)
downloadpkgsrc-180c292bb533b3cc9b34f1e40bb6a16dc300475f.tar.gz
Use the curses framework.
Diffstat (limited to 'misc')
-rw-r--r--misc/pinfo/Makefile16
1 files changed, 6 insertions, 10 deletions
diff --git a/misc/pinfo/Makefile b/misc/pinfo/Makefile
index 8c01eb158c3..75ec84da31f 100644
--- a/misc/pinfo/Makefile
+++ b/misc/pinfo/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.38 2015/08/18 07:31:13 wiz Exp $
+# $NetBSD: Makefile,v 1.39 2017/01/04 21:17:56 roy Exp $
#
DISTNAME= pinfo-0.6.1
@@ -22,17 +22,13 @@ CONF_FILES= ${EGDIR}/pinforc ${PKG_SYSCONFDIR}/pinforc
INFO_FILES= yes
INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} sysconfdir=${EGDIR:Q}
-PKG_OPTIONS_VAR= PKG_OPTIONS.pinfo
-PKG_SUPPORTED_OPTIONS= pinfo-native-curses
-
-.include "../../mk/bsd.options.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
-.if !empty(PKG_OPTIONS:Mpinfo-native-curses)
+.include "../../mk/curses.buildlink3.mk"
+.if ${CURSES_TYPE} == "curses"
CONFIGURE_ARGS+= --with-vcurses
-.else
-.include "../../devel/ncurses/buildlink3.mk"
-CONFIGURE_ARGS+= --with-ncurses=${BUILDLINK_PREFIX.ncurses}
+.elif ${CURSES_TYPE} == "ncurses" || ${CURSES_TYPE} == "ncursesw"
+CONFIGURE_ARGS+= --with-ncurses=${BUILDLINK_PREFIX.curses}
.endif
-.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"