diff options
Diffstat (limited to 'sysutils/nnn/Makefile')
-rw-r--r-- | sysutils/nnn/Makefile | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/sysutils/nnn/Makefile b/sysutils/nnn/Makefile index 6572ce764b4..3533101d4b5 100644 --- a/sysutils/nnn/Makefile +++ b/sysutils/nnn/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.18 2020/05/30 03:06:03 sjmulder Exp $ +# $NetBSD: Makefile,v 1.19 2020/06/02 11:07:41 sjmulder Exp $ DISTNAME= nnn-3.2 +PKGREVISION= 1 CATEGORIES= sysutils MASTER_SITES= ${MASTER_SITE_GITHUB:=jarun/} GITHUB_TAG= v${PKGVERSION_NOREV} @@ -19,10 +20,14 @@ INSTALLATION_DIRS+= share/zsh/site-functions .include "../../mk/bsd.prefs.mk" -# Prevent pulling in builtin termcap which conflicts with ncurses' -# implementation, causing a crash at startup. See: -# https://github.com/jarun/nnn/issues/445 -.if ${OPSYS} == "NetBSD" +# NetBSD: +# Prevent pulling in builtin termcap which conflicts with ncurses' +# implementation, causing a crash at startup. See: +# https://github.com/jarun/nnn/issues/445 +# +# Illumos: +# -lreadline links to system curses, causing conflicts with ncurses +.if ${OPSYS} == "NetBSD" || ${OPSYS} == "SunOS" READLINE_DEFAULT= readline .endif @@ -30,6 +35,8 @@ READLINE_DEFAULT= readline # https://github.com/jarun/nnn/issues/453 MAKE_ENV.Linux+= LDLIBS=-lrt +CFLAGS.SunOS+= -D__EXTENSIONS__ + .include "../../mk/compiler.mk" # nnn uses -std=c11 for `restrict` but c99 has it too, so use that on |