47 lines
1.2 KiB
Makefile
47 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.12 2020/11/17 06:11:28 rsadowski Exp $
|
|
|
|
COMMENT = the missing terminal file browser for X
|
|
|
|
V = 3.5
|
|
DISTNAME = nnn-v${V}
|
|
PKGNAME = nnn-${V}
|
|
|
|
CATEGORIES = sysutils
|
|
|
|
HOMEPAGE = https://github.com/jarun/nnn/
|
|
|
|
MAINTAINER = Martin Ziemer <horrad@horrad.de>
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB = c curses readline
|
|
|
|
MASTER_SITES = https://github.com/jarun/nnn/releases/download/v${V}/
|
|
|
|
# Uses -std=c11 so cannot use base-gcc
|
|
COMPILER = base-clang ports-gcc
|
|
COMPILER_LANGS = c
|
|
|
|
MAKE_FLAGS = CFLAGS_OPTIMIZATION=
|
|
FAKE_FLAGS = MANPREFIX="$(PREFIX)/man" \
|
|
PREFIX="${PREFIX}"
|
|
|
|
USE_GMAKE = Yes
|
|
NO_TEST = Yes
|
|
|
|
WRKDIST = ${WRKDIR}/nnn-${V}
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/bash-completion/completions/
|
|
${INSTALL_DATA} ${WRKSRC}/misc/auto-completion/bash/nnn-completion.bash \
|
|
${PREFIX}/share/bash-completion/completions/nnn
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/fish/completions/
|
|
${INSTALL_DATA} ${WRKSRC}/misc/auto-completion/fish/nnn.fish \
|
|
${PREFIX}/share/fish/completions/
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/zsh/site-functions/
|
|
${INSTALL_DATA} ${WRKSRC}/misc/auto-completion/zsh/_nnn \
|
|
${PREFIX}/share/zsh/site-functions/
|
|
|
|
.include <bsd.port.mk>
|