COMMENT=		tool for building, changing, and versioning infrastructure

VERSION=		1.15.5
PKGNAME=		terraform-${VERSION}
REVISION=		0

# terraform distfile generated by fetching archive from
# https://github.com/hashicorp/terraform/archive/v$VERSION/terraform-$VERSION.tar.gz
# and running "go mod tidy" + "go mod vendor"
DISTNAME=		terraform-vendored-${VERSION}
SITES=			https://distfiles.bsdfrog.org/
ALL_TARGET=		github.com/hashicorp/terraform

CATEGORIES=		sysutils net

HOMEPAGE=		https://www.terraform.io/

# BSL-1.1 (https://www.hashicorp.com/bsl)
PERMIT_PACKAGE=		Yes

WANTLIB += c pthread

MODULES=		lang/go
MODGO_GO111MODULE=	on
MODGO_LDFLAGS +=	-linkmode=external -X github.com/hashicorp/terraform/version.dev=no

.include <bsd.port.mk>
