e3babd4c52
Changes: - support macOS iterm2 in plugin preview-tui (#1196) - use selection at native command prompt with `%j` and `%J` - docs - https://github.com/jarun/nnn/wiki/concepts#special-variables - scroll strings longer than columns in rename/new prompts (#1213, #279) - batch rename symlink targets in listing mode (#1214) - option for recursive rename in plugin .nmv (#1186) - more frequent checks for cancellation during du (#1236) - picker mode: enable auto-proceed - picker mode: don't pick hovered file on <kbd>Enter</kbd> if selection exists - picker mode: fix issue in plugin `fzopen` when used to pick files - send file to explorer FIFO on double left click instead of opening it - new neovim plugin [nnn.nvim](https://github.com/luukvbaal/nnn.nvim) - nvim-only, featuring explorer mode (`-F` flag) - explorer mode for [nnn.vim](https://github.com/mcchrish/nnn.vim#explorer) - remove option `-w`: always place HW cursor on current entry - accept link name when linking a single target (#1201) - option `-i` to show current file information in info bar - force GNU sed on *BSD and Solaris - add `nsxiv` support to nuke, preview-tabbed and imgview (#1230) - fix preview-tui without `-a` (#1208) - pass `pts` in env var for preview-tui to use in `tput` (#1235) - disable editing file in picker mode (#1183) - save session in picker mode (#1190) - use nerd icons for gitstatus patch (#1220) Package changes: - Now includes plugins in share/examples/nnn/plugins
80 lines
2.4 KiB
Makefile
80 lines
2.4 KiB
Makefile
# $NetBSD: Makefile,v 1.29 2021/11/23 23:20:14 sjmulder Exp $
|
|
|
|
DISTNAME= nnn-4.4
|
|
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 gsed:run
|
|
USE_CURSES= wide set_escdelay
|
|
|
|
INSTALLATION_DIRS+= share/bash-completion/completions
|
|
INSTALLATION_DIRS+= share/fish/vendor_completions.d
|
|
INSTALLATION_DIRS+= share/zsh/site-functions
|
|
INSTALLATION_DIRS+= share/examples/nnn/plugins
|
|
|
|
.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} \
|
|
${WRKSRC}/plugins/* \
|
|
${DESTDIR}${PREFIX}/share/examples/nnn/plugins
|
|
${INSTALL_DATA} \
|
|
${WRKSRC}/plugins/README.md \
|
|
${DESTDIR}${PREFIX}/share/examples/nnn/plugins
|
|
${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"
|