summaryrefslogtreecommitdiff
path: root/net/krakend-ce/Makefile
blob: ca9fbaf01cefab58bfcb9e0b52e6b14cfa918633 (plain)
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
PORTNAME=	krakend-ce
DISTVERSIONPREFIX=	v
DISTVERSION=	2.5.1
PORTREVISION=	4
CATEGORIES=	net

MAINTAINER=	jrm@FreeBSD.org
COMMENT=	High-performance, stateless, declarative, API Gateway
WWW=		https://github.com/krakend/krakend-ce/

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

NOT_FOR_ARCHS=	i386
NOT_FOR_ARCHS_REASON=	Build failure: math.MaxInt64 overflow

USES=		go:modules
GO_MODULE=	github.com/krakendio/krakend-ce/v2
GO_TARGET=	./cmd/${PORTNAME}

GO_BUILDFLAGS=	-ldflags="-X github.com/luraproject/lura/v2/core.KrakendVersion=${DISTVERSION} \
	-X github.com/luraproject/lura/v2/core.GoVersion=${GO_VERSION}"

PLIST_FILES=	bin/${PORTNAME}

.include <bsd.port.mk>