| @@ -1,89 +1,92 @@ | | | @@ -1,89 +1,92 @@ |
1 | # $NetBSD: Makefile,v 1.22 2020/08/31 18:09:50 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.23 2020/10/20 11:22:27 nia Exp $ |
2 | | | 2 | |
3 | .include "../../lang/go/version.mk" | | 3 | .include "../../lang/go/version.mk" |
4 | | | 4 | |
5 | DISTNAME= go${GO14_VERSION}.src | | 5 | DISTNAME= go${GO14_VERSION}.src |
6 | PKGNAME= go14-${GO14_VERSION} | | 6 | PKGNAME= go14-${GO14_VERSION} |
7 | PKGREVISION= 11 | | 7 | PKGREVISION= 11 |
8 | CATEGORIES= lang | | 8 | CATEGORIES= lang |
9 | MASTER_SITES= https://storage.googleapis.com/golang/ | | 9 | MASTER_SITES= https://storage.googleapis.com/golang/ |
10 | PATCH_SITES= https://codereview.appspot.com/download/ | | 10 | PATCH_SITES= https://codereview.appspot.com/download/ |
11 | | | 11 | |
12 | MAINTAINER= bsiegert@NetBSD.org | | 12 | MAINTAINER= bsiegert@NetBSD.org |
13 | HOMEPAGE= https://golang.org/ | | 13 | HOMEPAGE= https://golang.org/ |
14 | COMMENT= The Go programming language | | 14 | COMMENT= The Go programming language |
15 | LICENSE= modified-bsd | | 15 | LICENSE= modified-bsd |
16 | | | 16 | |
17 | WRKSRC= ${WRKDIR}/go | | 17 | WRKSRC= ${WRKDIR}/go |
18 | USE_TOOLS+= bash:run perl:run pax | | 18 | USE_TOOLS+= bash:run perl:run pax |
19 | | | 19 | |
20 | # uses ulimit -T | | 20 | # uses ulimit -T |
21 | BUILD_DEPENDS+= bash>=4.2nb3:../../shells/bash | | 21 | BUILD_DEPENDS+= bash>=4.2nb3:../../shells/bash |
22 | | | 22 | |
23 | # cgo compiles under TMPDIR | | 23 | # cgo compiles under TMPDIR |
24 | TMPDIR?= /tmp | | 24 | TMPDIR?= /tmp |
25 | BUILDLINK_PASSTHRU_DIRS+= ${TMPDIR} | | 25 | BUILDLINK_PASSTHRU_DIRS+= ${TMPDIR} |
26 | | | 26 | |
27 | GOROOT_FINAL= ${PREFIX}/go14 | | 27 | GOROOT_FINAL= ${PREFIX}/go14 |
28 | INSTALLATION_DIRS= go14 | | 28 | INSTALLATION_DIRS= go14 |
29 | | | 29 | |
30 | MAKE_ENV+= GOROOT_FINAL=${GOROOT_FINAL:Q} | | 30 | MAKE_ENV+= GOROOT_FINAL=${GOROOT_FINAL:Q} |
31 | MAKE_ENV+= CGO_ENABLED=0 | | 31 | MAKE_ENV+= CGO_ENABLED=0 |
32 | | | 32 | |
33 | REPLACE_BASH+= doc/articles/wiki/test.bash | | 33 | REPLACE_BASH+= doc/articles/wiki/test.bash |
34 | REPLACE_BASH+= doc/codewalk/run | | 34 | REPLACE_BASH+= doc/codewalk/run |
35 | REPLACE_BASH+= doc/progs/run | | 35 | REPLACE_BASH+= doc/progs/run |
36 | REPLACE_BASH+= doc/progs/update.bash | | 36 | REPLACE_BASH+= doc/progs/update.bash |
37 | REPLACE_BASH+= lib/codereview/test.sh | | 37 | REPLACE_BASH+= lib/codereview/test.sh |
38 | REPLACE_BASH+= lib/time/update.bash | | 38 | REPLACE_BASH+= lib/time/update.bash |
39 | REPLACE_BASH+= misc/arm/a | | 39 | REPLACE_BASH+= misc/arm/a |
40 | REPLACE_BASH+= misc/benchcmp | | 40 | REPLACE_BASH+= misc/benchcmp |
41 | REPLACE_BASH+= misc/cgo/errors/test.bash | | 41 | REPLACE_BASH+= misc/cgo/errors/test.bash |
42 | REPLACE_BASH+= misc/cgo/testcdefs/test.bash | | 42 | REPLACE_BASH+= misc/cgo/testcdefs/test.bash |
43 | REPLACE_BASH+= misc/cgo/testgodefs/test.bash | | 43 | REPLACE_BASH+= misc/cgo/testgodefs/test.bash |
44 | REPLACE_BASH+= misc/cgo/testso/test.bash | | 44 | REPLACE_BASH+= misc/cgo/testso/test.bash |
45 | REPLACE_BASH+= misc/nacl/go_nacl_386_exec | | 45 | REPLACE_BASH+= misc/nacl/go_nacl_386_exec |
46 | REPLACE_BASH+= misc/nacl/go_nacl_amd64p32_exec | | 46 | REPLACE_BASH+= misc/nacl/go_nacl_amd64p32_exec |
47 | REPLACE_BASH+= misc/nacl/go_nacl_arm_exec | | 47 | REPLACE_BASH+= misc/nacl/go_nacl_arm_exec |
48 | REPLACE_BASH+= src/all.bash | | 48 | REPLACE_BASH+= src/all.bash |
49 | REPLACE_BASH+= src/androidtest.bash | | 49 | REPLACE_BASH+= src/androidtest.bash |
50 | REPLACE_BASH+= src/clean.bash | | 50 | REPLACE_BASH+= src/clean.bash |
51 | REPLACE_BASH+= src/cmd/go/mkdoc.sh | | 51 | REPLACE_BASH+= src/cmd/go/mkdoc.sh |
52 | REPLACE_BASH+= src/cmd/go/test.bash | | 52 | REPLACE_BASH+= src/cmd/go/test.bash |
53 | REPLACE_BASH+= src/make.bash | | 53 | REPLACE_BASH+= src/make.bash |
54 | REPLACE_BASH+= src/nacltest.bash | | 54 | REPLACE_BASH+= src/nacltest.bash |
55 | REPLACE_BASH+= src/race.bash | | 55 | REPLACE_BASH+= src/race.bash |
56 | REPLACE_BASH+= src/run.bash | | 56 | REPLACE_BASH+= src/run.bash |
57 | REPLACE_BASH+= src/runtime/mknacl.sh | | 57 | REPLACE_BASH+= src/runtime/mknacl.sh |
58 | REPLACE_BASH+= src/sudo.bash | | 58 | REPLACE_BASH+= src/sudo.bash |
59 | REPLACE_BASH+= src/syscall/mkall.sh | | 59 | REPLACE_BASH+= src/syscall/mkall.sh |
60 | REPLACE_BASH+= src/syscall/mkerrors.sh | | 60 | REPLACE_BASH+= src/syscall/mkerrors.sh |
61 | REPLACE_BASH+= src/syscall/mksysnum_plan9.sh | | 61 | REPLACE_BASH+= src/syscall/mksysnum_plan9.sh |
62 | REPLACE_BASH+= test/bench/shootout/timing.sh | | 62 | REPLACE_BASH+= test/bench/shootout/timing.sh |
63 | REPLACE_BASH+= test/run | | 63 | REPLACE_BASH+= test/run |
64 | | | 64 | |
65 | REPLACE_PERL+= src/net/http/cgi/testdata/test.cgi | | 65 | REPLACE_PERL+= src/net/http/cgi/testdata/test.cgi |
66 | REPLACE_PERL+= src/regexp/syntax/make_perl_groups.pl | | 66 | REPLACE_PERL+= src/regexp/syntax/make_perl_groups.pl |
67 | REPLACE_PERL+= src/syscall/*.pl | | 67 | REPLACE_PERL+= src/syscall/*.pl |
68 | REPLACE_PERL+= test/errchk | | 68 | REPLACE_PERL+= test/errchk |
69 | | | 69 | |
| | | 70 | NOT_FOR_PLATFORM+= *-*-aarch64 |
| | | 71 | NOT_FOR_PLATFORM+= *-*-aarch64eb |
| | | 72 | |
70 | # uses its own linker which does not support relro in 1.4.x | | 73 | # uses its own linker which does not support relro in 1.4.x |
71 | CHECK_RELRO_SKIP= go14/bin/go | | 74 | CHECK_RELRO_SKIP= go14/bin/go |
72 | CHECK_RELRO_SKIP+= go14/bin/gofmt | | 75 | CHECK_RELRO_SKIP+= go14/bin/gofmt |
73 | | | 76 | |
74 | # uses /bin/rc (for Plan 9) | | 77 | # uses /bin/rc (for Plan 9) |
75 | CHECK_INTERPRETER_SKIP+= go14/include/plan9/mklibc.rc | | 78 | CHECK_INTERPRETER_SKIP+= go14/include/plan9/mklibc.rc |
76 | CHECK_INTERPRETER_SKIP+= go14/src/all.rc | | 79 | CHECK_INTERPRETER_SKIP+= go14/src/all.rc |
77 | CHECK_INTERPRETER_SKIP+= go14/src/clean.rc | | 80 | CHECK_INTERPRETER_SKIP+= go14/src/clean.rc |
78 | CHECK_INTERPRETER_SKIP+= go14/src/make.rc | | 81 | CHECK_INTERPRETER_SKIP+= go14/src/make.rc |
79 | CHECK_INTERPRETER_SKIP+= go14/src/run.rc | | 82 | CHECK_INTERPRETER_SKIP+= go14/src/run.rc |
80 | | | 83 | |
81 | do-build: | | 84 | do-build: |
82 | cd ${WRKSRC}/src && ${PKGSRC_SETENV} ${MAKE_ENV} ${GOOPT} ${BASH} ./make.bash | | 85 | cd ${WRKSRC}/src && ${PKGSRC_SETENV} ${MAKE_ENV} ${GOOPT} ${BASH} ./make.bash |
83 | | | 86 | |
84 | do-install: | | 87 | do-install: |
85 | cd ${WRKSRC} && rm -rf .hgignore .hgtags pkg/obj | | 88 | cd ${WRKSRC} && rm -rf .hgignore .hgtags pkg/obj |
86 | cd ${WRKDIR}/go && pax -rw * ${DESTDIR}${GOROOT_FINAL} | | 89 | cd ${WRKDIR}/go && pax -rw * ${DESTDIR}${GOROOT_FINAL} |
87 | find ${DESTDIR}${GOROOT_FINAL} -name \*.orig -exec rm {} \; | | 90 | find ${DESTDIR}${GOROOT_FINAL} -name \*.orig -exec rm {} \; |
88 | | | 91 | |
89 | .include "../../mk/bsd.pkg.mk" | | 92 | .include "../../mk/bsd.pkg.mk" |