pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/pinfo Use the curses framework.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e17499873f10
branches:  trunk
changeset: 356781:e17499873f10
user:      roy <roy%pkgsrc.org@localhost>
date:      Wed Jan 04 21:17:56 2017 +0000

description:
Use the curses framework.

diffstat:

 misc/pinfo/Makefile |  16 ++++++----------
 1 files changed, 6 insertions(+), 10 deletions(-)

diffs (32 lines):

diff -r 8d754c893982 -r e17499873f10 misc/pinfo/Makefile
--- a/misc/pinfo/Makefile       Wed Jan 04 20:44:25 2017 +0000
+++ b/misc/pinfo/Makefile       Wed Jan 04 21:17:56 2017 +0000
@@ -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 @@
 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"



Home | Main Index | Thread Index | Old Index