2018-07-08 20:00:56 +02:00
|
|
|
# $NetBSD: version.mk,v 1.40 2018/07/08 18:00:56 bsiegert Exp $
|
2018-01-30 18:05:21 +01:00
|
|
|
|
|
|
|
SSP_SUPPORTED= no
|
2014-11-18 21:39:11 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2018-06-12 19:37:59 +02:00
|
|
|
GO_VERSION= 1.10.3
|
2018-07-08 20:00:56 +02:00
|
|
|
GO19_VERSION= 1.9.4
|
2015-09-26 19:37:01 +02:00
|
|
|
GO14_VERSION= 1.4.3
|
2014-11-18 21:39:11 +01:00
|
|
|
|
2018-07-08 15:53:42 +02:00
|
|
|
# How to find the Go tool
|
|
|
|
GOVERSSUFFIX?=
|
|
|
|
GO= ${PREFIX}/go${GOVERSSUFFIX}/bin/go
|
|
|
|
|
2018-01-20 17:55:05 +01:00
|
|
|
ONLY_FOR_PLATFORM= *-*-i386 *-*-x86_64 *-*-earmv[67]hf
|
2014-11-18 21:39:11 +01:00
|
|
|
NOT_FOR_PLATFORM= SunOS-*-i386
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
|
|
GOARCH= 386
|
2014-12-31 12:40:14 +01:00
|
|
|
GOCHAR= 8
|
2014-11-18 21:39:11 +01:00
|
|
|
.elif ${MACHINE_ARCH} == "x86_64"
|
|
|
|
GOARCH= amd64
|
2014-12-31 12:40:14 +01:00
|
|
|
GOCHAR= 6
|
2018-01-20 17:55:05 +01:00
|
|
|
.elif ${MACHINE_ARCH} == "earmv6hf" || ${MACHINE_ARCH} == "earmv7hf"
|
2014-11-18 21:39:11 +01:00
|
|
|
GOARCH= arm
|
2014-12-31 12:40:14 +01:00
|
|
|
GOCHAR= 5
|
2014-11-18 21:39:11 +01:00
|
|
|
.endif
|
2018-01-20 17:55:05 +01:00
|
|
|
.if ${MACHINE_ARCH} == "earmv6hf"
|
|
|
|
GOOPT= GOARM=6
|
|
|
|
.elif ${MACHINE_ARCH} == "earmv7hf"
|
|
|
|
GOOPT= GOARM=7
|
|
|
|
.endif
|
2014-11-18 21:39:11 +01:00
|
|
|
PLIST_SUBST+= GO_PLATFORM=${LOWER_OPSYS:Q}_${GOARCH:Q} GOARCH=${GOARCH:Q}
|
2014-12-31 12:40:14 +01:00
|
|
|
PLIST_SUBST+= GOCHAR=${GOCHAR:Q}
|