1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00
freebsd-ports/textproc/ov/Makefile

40 lines
848 B
Makefile

PORTNAME= ov
DISTVERSIONPREFIX= v
DISTVERSION= 0.9.4
CATEGORIES= textproc
MAINTAINER= lcook@FreeBSD.org
COMMENT= Feature rich terminal pager
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:modules
_BUILD_VERSION= ${DISTVERSIONFULL}
_BUILD_REVISION= baf0bee
GO_MODULE= github.com/noborus/${PORTNAME}
GO_BUILDFLAGS= -ldflags "\
-s -w \
-X main.Version=${_BUILD_VERSION} \
-X main.Revision=${_BUILD_REVISION}"
PLIST_FILES= bin/${PORTNAME}
PORTDOCS= README.md
PORTEXAMPLES= ${PORTNAME}-less.yaml ${PORTNAME}.yaml
OPTIONS_DEFINE= DOCS EXAMPLES
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} \
${STAGEDIR}${DOCSDIR}
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/|} \
${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>