aboutsummaryrefslogtreecommitdiff
path: root/lang/go/Makefile
blob: 014b718ecae037de4db5a99c2bfdd49fafd1a664 (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
PORTNAME=	go
DISTVERSION=	${GO_DEFAULT}
PORTREVISION=	2
PORTEPOCH=	2
CATEGORIES=	lang
MASTER_SITES=	# not applicable
DISTFILES=	# not applicable

MAINTAINER=	go@FreeBSD.org
COMMENT=	Meta-port for the default version of the Go programming language
WWW=		https://golang.org

RUN_DEPENDS=	go${GO_SUFFIX}:lang/go${GO_SUFFIX}

NO_ARCH=	yes
NO_BUILD=	yes

PLIST_FILES=	bin/go bin/gofmt

GO_SUFFIX=	${GO_DEFAULT:S/.//:C/.*-devel/-devel/}

do-install:
.for f in go gofmt
	@${LN} -sf ${f}${GO_SUFFIX} ${STAGEDIR}${PREFIX}/bin/${f}
.endfor

.include <bsd.port.mk>