1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00
freebsd-ports/textproc/fzf/Makefile

46 lines
1.2 KiB
Makefile

# Created by: Sascha Holzleiter <sascha@root-login.org>
PORTNAME= fzf
PORTVERSION= 0.27.0
CATEGORIES= textproc
MAINTAINER= dmgk@FreeBSD.org
COMMENT= Blazing fast command-line fuzzy finder
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:modules
# go get -d github.com/junegunn/fzf@$(make -V PORTVERSION)
GO_MODULE= github.com/junegunn/fzf@v0.0.0-20210406135359-19759ed36eda
GO_BUILDFLAGS= -ldflags="-X main.revision=${COMMIT_ID} -s -w"
COMMIT_ID= 6654239
SUB_FILES= pkg-message
PLIST_FILES= bin/fzf man/man1/fzf.1.gz
PORTEXAMPLES= shell/completion.bash shell/completion.zsh \
shell/key-bindings.bash shell/key-bindings.fish \
shell/key-bindings.zsh
OPTIONS_DEFINE= EXAMPLES TMUX
OPTIONS_DEFAULT= TMUX
TMUX_DESC= Install fzf-tmux (depends on BASH)
TMUX_RUN_DEPENDS= bash:shells/bash
TMUX_PLIST_FILES= bin/fzf-tmux man/man1/fzf-tmux.1.gz
post-install:
${INSTALL_MAN} ${WRKSRC}/man/man1/fzf.1 ${STAGEDIR}${MANPREFIX}/man/man1
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC} && \
${COPYTREE_SHARE} shell ${STAGEDIR}${EXAMPLESDIR})
post-install-TMUX-on:
${INSTALL_SCRIPT} ${WRKSRC}/bin/${PORTNAME}-tmux ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/man/man1/fzf-tmux.1 ${STAGEDIR}${MANPREFIX}/man/man1
.include <bsd.port.mk>