pkgsrc/lang/go/version.mk
wen 6f185ae8fd Update to 1.7.5
Upstream changes:
go1.7.5 (released 2017/01/26) includes fixes to the compiler, runtime, and the crypto/x509 and time packages. See the Go 1.7.5 milestone on our issue tracker for details.
2017-01-30 03:04:53 +00:00

21 lines
498 B
Makefile

# $NetBSD: version.mk,v 1.22 2017/01/30 03:04:53 wen Exp $
.include "../../mk/bsd.prefs.mk"
GO_VERSION= 1.7.5
GO14_VERSION= 1.4.3
ONLY_FOR_PLATFORM= *-*-i386 *-*-x86_64 *-*-*arm*
NOT_FOR_PLATFORM= SunOS-*-i386
.if ${MACHINE_ARCH} == "i386"
GOARCH= 386
GOCHAR= 8
.elif ${MACHINE_ARCH} == "x86_64"
GOARCH= amd64
GOCHAR= 6
.elif !empty(MACHINE_ARCH:M*arm)
GOARCH= arm
GOCHAR= 5
.endif
PLIST_SUBST+= GO_PLATFORM=${LOWER_OPSYS:Q}_${GOARCH:Q} GOARCH=${GOARCH:Q}
PLIST_SUBST+= GOCHAR=${GOCHAR:Q}