# $NetBSD: version.mk,v 1.4 2015/01/16 11:27:03 wiz Exp $ .include "../../mk/bsd.prefs.mk" GO_VERSION= 1.4.1 ONLY_FOR_PLATFORM= *-*-i386 *-*-x86_64 *-*-evbarm NOT_FOR_PLATFORM= SunOS-*-i386 .if ${MACHINE_ARCH} == "i386" GOARCH= 386 GOCHAR= 8 .elif ${MACHINE_ARCH} == "x86_64" GOARCH= amd64 GOCHAR= 6 .elif ${MACHINE_ARCH} == "evbarm" GOARCH= arm GOCHAR= 5 .endif PLIST_SUBST+= GO_PLATFORM=${LOWER_OPSYS:Q}_${GOARCH:Q} GOARCH=${GOARCH:Q} PLIST_SUBST+= GOCHAR=${GOCHAR:Q}