PORTNAME=	infracost
DISTVERSIONPREFIX=	v
DISTVERSION=	0.10.42
PORTREVISION=	2
CATEGORIES=	sysutils

MAINTAINER=	dutra@FreeBSD.org
COMMENT=	Cloud cost estimates for Terraform
WWW=		https://github.com/infracost/infracos

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

ONLY_FOR_ARCHS=	aarch64 amd64 powerpc64 powerpc64le riscv64
ONLY_FOR_ARCHS_REASON=	Requires 64-bit processor

RUN_DEPENDS=	terraform:sysutils/terraform \
		terragrunt:sysutils/terragrunt

USES=		go:modules

GO_MODULE=	github.com/${PORTNAME}/${PORTNAME}

GO_BUILDFLAGS=	-ldflags="-X github.com/infracost/infracost/internal/version.Version=v${PORTVERSION}"
GO_TARGET=	./cmd/${PORTNAME}

PLIST_FILES=	bin/${PORTNAME}

.include <bsd.port.mk>
