[BACK]Return to version.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / lang / go

Annotation of pkgsrc/lang/go/version.mk, Revision 1.69

1.69    ! bsiegert    1: # $NetBSD: version.mk,v 1.68 2019/09/17 04:39:20 dbj Exp $
1.33      jperkin     2:
1.51      jperkin     3: CTF_SUPPORTED=         no
1.50      jperkin     4: SSP_SUPPORTED=         no
                      5: STRIP_DEBUG_SUPPORTED= no
1.1       bsiegert    6:
                      7: .include "../../mk/bsd.prefs.mk"
                      8:
1.69    ! bsiegert    9: GO112_VERSION= 1.12.10
1.66      bsiegert   10: GO111_VERSION= 1.11.13
1.55      bsiegert   11: GO110_VERSION= 1.10.8
1.41      bsiegert   12: GO19_VERSION=  1.9.7
1.9       bsiegert   13: GO14_VERSION=  1.4.3
1.44      bsiegert   14: GO_VERSION=    ${GO110_VERSION}
1.1       bsiegert   15:
1.45      bsiegert   16: .if ${OPSYS} == "NetBSD" && ${OS_VERSION:M6.*}
                     17: # 1.9 is the last Go version to support NetBSD 6
                     18: GO_VERSION_DEFAULT?=   19
1.68      dbj        19: .elif ${OPSYS} == "Darwin" && ${OS_VERSION:R} < 14
                     20: # go 1.11 removed support for osx 10.8 and 10.9
                     21: # https://github.com/golang/go/issues/23122
                     22: # darwin version 13.4 is osx 10.9.5
                     23: GO_VERSION_DEFAULT?=   110
1.45      bsiegert   24: .else
1.57      bsiegert   25: GO_VERSION_DEFAULT?=   112
1.45      bsiegert   26: .endif
                     27:
                     28: .if !empty(GO_VERSION_DEFAULT)
                     29: GOVERSSUFFIX=          ${GO_VERSION_DEFAULT}
                     30: .endif
                     31:
1.39      bsiegert   32: # How to find the Go tool
                     33: GO=                    ${PREFIX}/go${GOVERSSUFFIX}/bin/go
                     34:
1.45      bsiegert   35: # Build dependency for Go
                     36: GO_PACKAGE_DEP=                go${GOVERSSUFFIX}-${GO${GOVERSSUFFIX}_VERSION}*:../../lang/go${GOVERSSUFFIX}
                     37:
1.31      christos   38: ONLY_FOR_PLATFORM=     *-*-i386 *-*-x86_64 *-*-earmv[67]hf
1.1       bsiegert   39: NOT_FOR_PLATFORM=      SunOS-*-i386
                     40: .if ${MACHINE_ARCH} == "i386"
                     41: GOARCH=                386
1.3       bsiegert   42: GOCHAR=                8
1.1       bsiegert   43: .elif ${MACHINE_ARCH} == "x86_64"
                     44: GOARCH=                amd64
1.3       bsiegert   45: GOCHAR=                6
1.31      christos   46: .elif ${MACHINE_ARCH} == "earmv6hf" || ${MACHINE_ARCH} == "earmv7hf"
1.1       bsiegert   47: GOARCH=                arm
1.3       bsiegert   48: GOCHAR=                5
1.1       bsiegert   49: .endif
1.31      christos   50: .if ${MACHINE_ARCH} == "earmv6hf"
                     51: GOOPT=         GOARM=6
                     52: .elif ${MACHINE_ARCH} == "earmv7hf"
                     53: GOOPT=         GOARM=7
                     54: .endif
1.47      leot       55: GO_PLATFORM=   ${LOWER_OPSYS}_${GOARCH}
                     56: PLIST_SUBST+=  GO_PLATFORM=${GO_PLATFORM:Q} GOARCH=${GOARCH:Q}
1.3       bsiegert   57: PLIST_SUBST+=  GOCHAR=${GOCHAR:Q}
1.47      leot       58:
                     59: PRINT_PLIST_AWK+=      { sub("/${GO_PLATFORM}/", "/$${GO_PLATFORM}/") }

CVSweb <webmaster@jp.NetBSD.org>