freebsd-ports/www/amfora/Makefile
2021-05-13 18:59:48 +01:00

41 lines
902 B
Makefile

PORTNAME= amfora
DISTVERSIONPREFIX= v
DISTVERSION= 1.8.0
PORTREVISION= 1
CATEGORIES= www
MAINTAINER= lcook@FreeBSD.org
COMMENT= Fancy terminal browser for the Gemini protocol
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:modules
_BUILD_VERSION= ${DISTVERSIONFULL}
_BUILD_COMMIT= 71385e9
GO_MODULE= github.com/makeworld-the-better-one/${PORTNAME}
GO_BUILDFLAGS= -ldflags "\
-s -w \
-X main.version=${_BUILD_VERSION} \
-X main.commit=${_BUILD_COMMIT}"
PLIST_FILES= bin/${PORTNAME}
PORTDOCS= NOTES.md README.md THANKS.md
PORTEXAMPLES= default-config.toml
OPTIONS_DEFINE= DOCS EXAMPLES
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} \
${STAGEDIR}${DOCSDIR}
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTEXAMPLES} \
${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>