| @@ -1,32 +1,34 @@ | | | @@ -1,32 +1,34 @@ |
1 | # $NetBSD: version.mk,v 1.194 2023/11/10 15:39:34 bsiegert Exp $ | | 1 | # $NetBSD: version.mk,v 1.195 2023/11/15 15:54:40 jperkin Exp $ |
2 | | | 2 | |
3 | # | | 3 | # |
4 | # If bsd.prefs.mk is included before go-package.mk in a package, then this | | 4 | # If bsd.prefs.mk is included before go-package.mk in a package, then this |
5 | # file must be included directly in the package prior to bsd.prefs.mk. | | 5 | # file must be included directly in the package prior to bsd.prefs.mk. |
6 | # | | 6 | # |
7 | .include "go-vars.mk" | | 7 | .include "go-vars.mk" |
8 | | | 8 | |
9 | GO121_VERSION= 1.21.4 | | 9 | GO121_VERSION= 1.21.4 |
10 | GO120_VERSION= 1.20.11 | | 10 | GO120_VERSION= 1.20.11 |
11 | GO119_VERSION= 1.19.13 | | 11 | GO119_VERSION= 1.19.13 |
12 | GO118_VERSION= 1.18.10 | | 12 | GO118_VERSION= 1.18.10 |
13 | GO14_VERSION= 1.4.3 | | 13 | GO14_VERSION= 1.4.3 |
14 | | | 14 | |
15 | .include "../../mk/bsd.prefs.mk" | | 15 | .include "../../mk/bsd.prefs.mk" |
16 | | | 16 | |
17 | GO_VERSION_DEFAULT?= 121 | | 17 | GO_VERSION_DEFAULT?= 121 |
18 | | | 18 | |
19 | .if !empty(GO_VERSION_DEFAULT) | | 19 | .if defined(GO_VERSION_REQD) |
| | | 20 | GOVERSSUFFIX= ${GO_VERSION_REQD} |
| | | 21 | .elif !empty(GO_VERSION_DEFAULT) |
20 | GOVERSSUFFIX= ${GO_VERSION_DEFAULT} | | 22 | GOVERSSUFFIX= ${GO_VERSION_DEFAULT} |
21 | .endif | | 23 | .endif |
22 | | | 24 | |
23 | # How to find the Go tool | | 25 | # How to find the Go tool |
24 | GO= ${PREFIX}/go${GOVERSSUFFIX}/bin/go | | 26 | GO= ${PREFIX}/go${GOVERSSUFFIX}/bin/go |
25 | | | 27 | |
26 | # Build dependency for Go | | 28 | # Build dependency for Go |
27 | GO_PACKAGE_DEP= go${GOVERSSUFFIX}-${GO${GOVERSSUFFIX}_VERSION}*:../../lang/go${GOVERSSUFFIX} | | 29 | GO_PACKAGE_DEP= go${GOVERSSUFFIX}-${GO${GOVERSSUFFIX}_VERSION}*:../../lang/go${GOVERSSUFFIX} |
28 | | | 30 | |
29 | ONLY_FOR_PLATFORM= *-*-i386 *-*-x86_64 *-*-earmv[67]hf *-*-aarch64 | | 31 | ONLY_FOR_PLATFORM= *-*-i386 *-*-x86_64 *-*-earmv[67]hf *-*-aarch64 |
30 | NOT_FOR_PLATFORM= SunOS-*-i386 | | 32 | NOT_FOR_PLATFORM= SunOS-*-i386 |
31 | .if ${MACHINE_ARCH} == "i386" | | 33 | .if ${MACHINE_ARCH} == "i386" |
32 | GOARCH= 386 | | 34 | GOARCH= 386 |