Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | SUMMARY = "Go programming language compiler" |
| 2 | DESCRIPTION = " The Go programming language is an open source project to make \ |
| 3 | programmers more productive. Go is expressive, concise, clean, and\ |
| 4 | efficient. Its concurrency mechanisms make it easy to write programs\ |
| 5 | that get the most out of multicore and networked machines, while its\ |
| 6 | novel type system enables flexible and modular program construction.\ |
| 7 | Go compiles quickly to machine code yet has the convenience of\ |
| 8 | garbage collection and the power of run-time reflection. It's a\ |
| 9 | fast, statically typed, compiled language that feels like a\ |
| 10 | dynamically typed, interpreted language." |
| 11 | |
| 12 | HOMEPAGE = " http://golang.org/" |
| 13 | LICENSE = "BSD-3-Clause" |
| 14 | |
| 15 | inherit goarch |
| 16 | |
William A. Kennington III | ac69b48 | 2021-06-02 12:28:27 -0700 | [diff] [blame] | 17 | SRC_URI = "https://golang.org/dl/go${PV}.src.tar.gz;name=main" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 18 | S = "${WORKDIR}/go" |
| 19 | B = "${S}" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 20 | UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)\.src\.tar" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 21 | |
| 22 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" |
| 23 | SSTATE_SCAN_CMD = "true" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 24 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 25 | export GOROOT_OVERRIDE = "1" |
| 26 | export GOTMPDIR ?= "${WORKDIR}/go-tmp" |
| 27 | GOTMPDIR[vardepvalue] = "" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 28 | export CGO_ENABLED = "1" |
| 29 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 30 | export GOHOSTOS ?= "${BUILD_GOOS}" |
| 31 | export GOHOSTARCH ?= "${BUILD_GOARCH}" |
| 32 | export GOROOT_BOOTSTRAP ?= "${STAGING_LIBDIR_NATIVE}/go" |
| 33 | export GOOS ?= "${TARGET_GOOS}" |
| 34 | export GOARCH ?= "${TARGET_GOARCH}" |
| 35 | export GOARM ?= "${TARGET_GOARM}" |
| 36 | export GO386 ?= "${TARGET_GO386}" |
| 37 | export GOMIPS ?= "${TARGET_GOMIPS}" |
| 38 | export GOROOT_FINAL ?= "${libdir}/go" |
| 39 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 40 | do_compile_prepend() { |
| 41 | BUILD_CC=${BUILD_CC} |
| 42 | } |