pkgsrc/sysutils/nnn/Makefile
sjmulder e7f5c30f5d sysutils/nnn: Update to 3.3
Changes:
 - subdir mounts for remote and archive mounts
 - remove mount point on successful unmount of remote/archive
 - show error and prompt user if cp/mv/rm operation fails
 - support absolute/relative paths in cp/mv as
 - mark current path automatically on archive/remote mount
 - mark current path automatically on target file visit in find and
   list mode
 - option -C to place HW cursor on hovered for screen readers and
   braille displays
 - option -u to use selection (if available) and skip current/sel prompt
 - key Alt+Esc to clear filter prompt and redraw
 - support Esc to cancel remove operation
 - gpge & gpgd: encrypt and decrypt with GPG
 - blknew: create new files and directories in bulk
 - preview-tui:
   - unified to support tmux/kitty/xterm/$TERMINAL
   - auto-determine split orientation based on terminal height and width
   - provision to use scope.sh and pistol
   - various other improvements
 - upload: send to Firefox Send if ffsend is found
 - hexview: add hx as alternative hex viewer
 - nuke and imgview: add imv as alternative image viewer
 - add find (with fd) and grep (with rg) examples in plugins doc
 - key Esc or left click to resend hovered file path to NNN_FIFO
 - show + instead of s in status bar on selection
 - F5 removed (misfit for toggle hidden), ^S removed (often masked,
   redundant)
 - handle abnormal program termination and remove NNN_PIPE and/or
   NNN_FIFO
 - clear selection after successful batch rename, link creation
 - make option O_CTX8 for 8 contexts (NOT backward compatible with 4
   contexts)
 - fix issue with child window resize (see #656)
 - fix issue with NNNLVL on macOS (see #639)
 - fix issue with restoring session with du/au enabled

Package changes:
 - New 8 context mode is enabled
 - Patches have been merged
2020-07-14 12:51:01 +00:00

73 lines
2.2 KiB
Makefile

# $NetBSD: Makefile,v 1.21 2020/07/14 12:51:01 sjmulder Exp $
DISTNAME= nnn-3.3
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_GITHUB:=jarun/}
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= sjmulder@NetBSD.org
HOMEPAGE= https://github.com/jarun/nnn/
COMMENT= Optimized, feature-packed terminal file manager
LICENSE= 2-clause-bsd
USE_TOOLS+= gmake pkg-config
USE_CURSES= wide set_escdelay
INSTALLATION_DIRS+= share/bash-completion/completions
INSTALLATION_DIRS+= share/fish/vendor_completions.d
INSTALLATION_DIRS+= share/zsh/site-functions
.include "../../mk/bsd.prefs.mk"
# 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
# clock_gettime() on older glibc (eg RHEL 6). See:
# https://github.com/jarun/nnn/issues/453
MAKE_ENV.Linux+= LDLIBS=-lrt
CFLAGS+= -DCTX8
CFLAGS.SunOS+= -D__EXTENSIONS__
.include "../../mk/compiler.mk"
# nnn uses -std=c11 for `restrict` but c99 has it too, so use that on
# old GCC versions that don't support c11.
# https://github.com/jarun/nnn/issues/605
.if !empty(CC_VERSION:Mgcc-[123].*) || \
!empty(CC_VERSION:Mgcc-4.[0123456].*)
SUBST_CLASSES+= c11
SUBST_MESSAGE.c11= Use c99 on old GCC instead of c11
SUBST_STAGE.c11= pre-configure
SUBST_FILES.c11= Makefile
SUBST_SED.c11= -e 's/-std=c11/-std=c99/'
.endif
MAKE_ENV+= MANPREFIX=${PREFIX}/${PKGMANDIR}
MAKE_ENV+= CFLAGS_OPTIMIZATION=
MAKE_ENV+= CFLAGS_CURSES=${BUILDLINK_CFLAGS.curses:Q}
MAKE_ENV+= LDLIBS_CURSES=${BUILDLINK_LDADD.curses:Q}
post-install:
${INSTALL_DATA} \
${WRKSRC}/misc/auto-completion/bash/nnn-completion.bash \
${DESTDIR}${PREFIX}/share/bash-completion/completions/nnn
${INSTALL_DATA} \
${WRKSRC}/misc/auto-completion/fish/nnn.fish \
${DESTDIR}${PREFIX}/share/fish/vendor_completions.d/
${INSTALL_DATA} \
${WRKSRC}/misc/auto-completion/zsh/_nnn \
${DESTDIR}${PREFIX}/share/zsh/site-functions
.include "options.mk"
.include "../../mk/curses.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"