aboutsummaryrefslogtreecommitdiff
path: root/www/amfora/Makefile
blob: 40a7baa06696f86dc20f3bb6d28c342a741d4ce7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
PORTNAME=	amfora
DISTVERSIONPREFIX=	v
DISTVERSION=	1.9.2
PORTREVISION=	11
CATEGORIES=	www

MAINTAINER=	lcook@FreeBSD.org
COMMENT=	Fancy terminal browser for the Gemini protocol
WWW=		https://github.com/makeworld-the-better-one/amfora

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		go:modules

_BUILD_VERSION=	${DISTVERSIONFULL}
_BUILD_COMMIT=	61d8645

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>