f6269e4136
This release now needs the previous one (lang/go14) to build. The biggest developments in the implementation are: * The compiler and runtime are now written entirely in Go (with a little assembler). C is no longer involved in the implementation, and so the C compiler that was once necessary for building the distribution is gone. * The garbage collector is now concurrent and provides dramatically lower pause times by running, when possible, in parallel with other goroutines. * By default, Go programs run with GOMAXPROCS set to the number of cores available; in prior releases it defaulted to 1. * Support for internal packages is now provided for all repositories, not just the Go core. * The go command now provides experimental support for "vendoring" external dependencies. * A new go tool trace command supports fine-grained tracing of program execution. * A new go doc command (distinct from godoc) is customized for command-line use. Full release notes are at https://golang.org/doc/go1.5.
80 lines
2.3 KiB
Makefile
80 lines
2.3 KiB
Makefile
# $NetBSD: Makefile,v 1.30 2015/08/22 10:51:20 bsiegert Exp $
|
|
|
|
.include "version.mk"
|
|
|
|
DISTNAME= go${GO_VERSION}.src
|
|
PKGNAME= go-${GO_VERSION}
|
|
CATEGORIES= lang
|
|
MASTER_SITES= https://storage.googleapis.com/golang/
|
|
|
|
MAINTAINER= bsiegert@NetBSD.org
|
|
HOMEPAGE= http://golang.org/
|
|
COMMENT= The Go programming language
|
|
LICENSE= modified-bsd
|
|
|
|
WRKSRC= ${WRKDIR}/go
|
|
USE_TOOLS+= bash:run perl:run pax
|
|
|
|
# uses ulimit -T
|
|
BUILD_DEPENDS+= bash>=4.2nb3:../../shells/bash
|
|
|
|
# cgo compiles under TMPDIR
|
|
TMPDIR?= /tmp
|
|
BUILDLINK_PASSTHRU_DIRS+= ${TMPDIR}
|
|
|
|
# bash script may use unportable bash constructs
|
|
CHECK_PORTABILITY_SKIP= lib/time/update.bash
|
|
|
|
GOROOT_FINAL= ${PREFIX}/go
|
|
INSTALLATION_DIRS= bin
|
|
|
|
REPLACE_BASH+= doc/articles/wiki/test.bash
|
|
REPLACE_BASH+= doc/codewalk/run
|
|
REPLACE_BASH+= lib/time/update.bash
|
|
REPLACE_BASH+= misc/arm/a
|
|
REPLACE_BASH+= misc/benchcmp
|
|
REPLACE_BASH+= misc/cgo/errors/test.bash
|
|
REPLACE_BASH+= misc/cgo/testgodefs/test.bash
|
|
REPLACE_BASH+= misc/nacl/go_nacl_386_exec
|
|
REPLACE_BASH+= misc/nacl/go_nacl_amd64p32_exec
|
|
REPLACE_BASH+= misc/nacl/go_nacl_arm_exec
|
|
REPLACE_BASH+= src/all.bash
|
|
REPLACE_BASH+= src/androidtest.bash
|
|
REPLACE_BASH+= src/clean.bash
|
|
REPLACE_BASH+= src/make.bash
|
|
REPLACE_BASH+= src/nacltest.bash
|
|
REPLACE_BASH+= src/race.bash
|
|
REPLACE_BASH+= src/run.bash
|
|
REPLACE_BASH+= src/runtime/mknacl.sh
|
|
REPLACE_BASH+= src/syscall/mkall.sh
|
|
REPLACE_BASH+= src/syscall/mkerrors.sh
|
|
REPLACE_BASH+= src/syscall/mksysnum_plan9.sh
|
|
REPLACE_BASH+= test/bench/shootout/timing.sh
|
|
|
|
REPLACE_PERL+= src/net/http/cgi/testdata/test.cgi
|
|
REPLACE_PERL+= src/regexp/syntax/make_perl_groups.pl
|
|
REPLACE_PERL+= src/syscall/*.pl
|
|
REPLACE_PERL+= test/errchk
|
|
|
|
# uses /bin/rc (for Plan 9)
|
|
CHECK_INTERPRETER_SKIP+= go/include/plan9/mklibc.rc
|
|
CHECK_INTERPRETER_SKIP+= go/src/all.rc
|
|
CHECK_INTERPRETER_SKIP+= go/src/clean.rc
|
|
CHECK_INTERPRETER_SKIP+= go/src/make.rc
|
|
CHECK_INTERPRETER_SKIP+= go/src/run.rc
|
|
|
|
BUILD_DEPENDS+= go14-1.4*:../../lang/go14
|
|
GOROOT_BOOTSTRAP= ${PREFIX}/go14
|
|
|
|
do-build:
|
|
cd ${WRKSRC}/src && env GOROOT_BOOTSTRAP=${GOROOT_BOOTSTRAP:Q} GOROOT_FINAL=${GOROOT_FINAL:Q} ${BASH} ./make.bash
|
|
|
|
do-install:
|
|
cd ${WRKSRC} && rm -rf .hgignore .hgtags pkg/obj
|
|
cd ${WRKDIR} && pax -rw go ${DESTDIR}${PREFIX}
|
|
find ${DESTDIR}${PREFIX}/go -name \*.orig -exec rm {} \;
|
|
.for cmd in go gofmt
|
|
cd ${DESTDIR}${PREFIX}/bin && ln -sf ../go/bin/${cmd} ${cmd}
|
|
.endfor
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|