pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/nnn sysutils/nnn: switch back to mk/curses.bu...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/220b30e7aabd
branches:  trunk
changeset: 396993:220b30e7aabd
user:      sjmulder <sjmulder%pkgsrc.org@localhost>
date:      Fri Jun 14 06:47:01 2019 +0000

description:
sysutils/nnn: switch back to mk/curses.buildlink3.mk

It was rightly suggested that nnn's use of mouse functions unavailable
on NetBSD curses doesn't mean builtin curses couldn't be used elsewhere,
so switch back to mk/curses.buildlink3.mk and use INCOMPAT_CURSES to
exclude NetBSD.

Bump PKGREVISION because this could end up picking a different curses
implementation somewhere.

diffstat:

 sysutils/nnn/Makefile |  19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)

diffs (41 lines):

diff -r 1dc4bd48e0d5 -r 220b30e7aabd sysutils/nnn/Makefile
--- a/sysutils/nnn/Makefile     Fri Jun 14 05:49:38 2019 +0000
+++ b/sysutils/nnn/Makefile     Fri Jun 14 06:47:01 2019 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.8 2019/06/12 21:11:44 sjmulder Exp $
+# $NetBSD: Makefile,v 1.9 2019/06/14 06:47:01 sjmulder Exp $
 
 DISTNAME=      nnn-2.5
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    sysutils
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=jarun/}
 GITHUB_TAG=    v${PKGVERSION_NOREV}
@@ -12,19 +12,20 @@
 LICENSE=       2-clause-bsd
 
 USE_TOOLS+=    gmake pkg-config
+USE_CURSES=    wide
+
+# missing mousemask(), getmouse()
+INCOMPAT_CURSES+=      NetBSD-*
+
 # build without readline unless option set (see options.mk)
 BUILD_TARGET=  norl
 
 MAKE_ENV+=     MANPREFIX=${PREFIX}/${PKGMANDIR}
 MAKE_ENV+=     CFLAGS_OPTIMIZATION=
-MAKE_ENV+=     CFLAGS_CURSES=${BUILDLINK_CFLAGS.ncursesw:Q}
-MAKE_ENV+=     LDLIBS_CURSES=${BUILDLINK_LDADD.ncursesw:Q}
+MAKE_ENV+=     CFLAGS_CURSES=${BUILDLINK_CFLAGS.curses:Q}
+MAKE_ENV+=     LDLIBS_CURSES=${BUILDLINK_LDADD.curses:Q}
 
-# Requires mousemask(), getmouse() functions not in NetBSD curses
-.include "../../devel/ncursesw/buildlink3.mk"
-
-# After ncursesw so readline doesn't add the non-wide ncurses which
-# would sabotage the ncursesw buildlink with '__nonexistent__'
 .include "options.mk"
 
+.include "../../mk/curses.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index