[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / lang / go111

Annotation of pkgsrc/lang/go111/Makefile, Revision 1.6

1.6     ! bsiegert    1: # $NetBSD: Makefile,v 1.5 2019/08/11 13:21:21 wiz Exp $
1.1       bsiegert    2:
                      3: .include "../../lang/go/version.mk"
                      4:
                      5: DISTNAME=      go${GO111_VERSION}.src
                      6: PKGNAME=       go111-${GO111_VERSION}
                      7: CATEGORIES=    lang
                      8: MASTER_SITES=  https://storage.googleapis.com/golang/
                      9: EXTRACT_USING= bsdtar
                     10:
                     11: MAINTAINER=    bsiegert@NetBSD.org
                     12: HOMEPAGE=      http://golang.org/
                     13: COMMENT=       The Go programming language
                     14: LICENSE=       modified-bsd
                     15:
                     16: GOVERSSUFFIX=  111
                     17: WRKSRC=                ${WRKDIR}/go
                     18: USE_TOOLS+=    bash:run perl:run pax
                     19:
                     20: # uses ulimit -T
                     21: # BUILD_DEPENDS+=      bash>=4.2nb3:../../shells/bash
                     22:
                     23: # cgo compiles under TMPDIR
                     24: TMPDIR?=       /tmp
                     25: BUILDLINK_PASSTHRU_DIRS+= ${TMPDIR}
                     26:
                     27: GOROOT_FINAL=          ${PREFIX}/go${GOVERSSUFFIX}
                     28: INSTALLATION_DIRS=     bin go${GOVERSSUFFIX}
                     29:
                     30: REPLACE_BASH+= doc/articles/wiki/test.bash
                     31: REPLACE_BASH+= doc/codewalk/run
                     32: REPLACE_BASH+= lib/time/update.bash
                     33: REPLACE_BASH+= misc/arm/a
                     34: REPLACE_BASH+= misc/benchcmp
                     35: REPLACE_BASH+= misc/cgo/fortran/test.bash
                     36: REPLACE_BASH+= misc/cgo/testgodefs/test.bash
                     37: REPLACE_BASH+= misc/cgo/testplugin/test.bash
                     38: REPLACE_BASH+= misc/nacl/go_nacl_386_exec
                     39: REPLACE_BASH+= misc/nacl/go_nacl_amd64p32_exec
                     40: REPLACE_BASH+= misc/nacl/go_nacl_arm_exec
                     41: REPLACE_BASH+= misc/wasm/go_js_wasm_exec
                     42: REPLACE_BASH+= src/all.bash
                     43: REPLACE_BASH+= src/androidtest.bash
                     44: REPLACE_BASH+= src/bootstrap.bash
                     45: REPLACE_BASH+= src/buildall.bash
                     46: REPLACE_BASH+= src/clean.bash
                     47: REPLACE_BASH+= src/cmd/go/mkalldocs.sh
                     48: REPLACE_BASH+= src/cmd/vendor/github.com/google/pprof/test.sh
                     49: REPLACE_BASH+= src/cmd/vendor/github.com/google/pprof/internal/binutils/testdata/build_mac.sh
                     50: REPLACE_BASH+= src/cmd/vendor/golang.org/x/sys/unix/mkall.sh
                     51: REPLACE_BASH+= src/cmd/vendor/golang.org/x/sys/unix/mkerrors.sh
                     52: REPLACE_BASH+= src/internal/trace/mkcanned.bash
                     53: REPLACE_BASH+= src/iostest.bash
                     54: REPLACE_BASH+= src/make.bash
                     55: REPLACE_BASH+= src/naclmake.bash
                     56: REPLACE_BASH+= src/nacltest.bash
                     57: REPLACE_BASH+= src/race.bash
                     58: REPLACE_BASH+= src/run.bash
                     59: REPLACE_BASH+= src/runtime/mknacl.sh
                     60: REPLACE_BASH+= src/syscall/mkall.sh
                     61: REPLACE_BASH+= src/syscall/mkerrors.sh
                     62: REPLACE_BASH+= src/syscall/mksysnum_plan9.sh
                     63:
                     64: REPLACE_PERL+= src/cmd/vendor/golang.org/x/sys/unix/*.pl
                     65: REPLACE_PERL+= src/net/http/cgi/testdata/test.cgi
                     66: REPLACE_PERL+= src/regexp/syntax/make_perl_groups.pl
                     67: REPLACE_PERL+= src/syscall/*.pl
                     68: REPLACE_PERL+= test/errchk
                     69:
                     70: # uses own linker, which does not support relro on NetBSD
                     71: CHECK_RELRO_SKIP+=             go${GOVERSSUFFIX}/bin/go
                     72: CHECK_RELRO_SKIP+=             go${GOVERSSUFFIX}/bin/gofmt
                     73: CHECK_RELRO_SKIP+=             go${GOVERSSUFFIX}/pkg/bootstrap/bin/asm
                     74: CHECK_RELRO_SKIP+=             go${GOVERSSUFFIX}/pkg/bootstrap/bin/compile
                     75: CHECK_RELRO_SKIP+=             go${GOVERSSUFFIX}/pkg/bootstrap/bin/link
                     76: CHECK_RELRO_SKIP+=             go${GOVERSSUFFIX}/pkg/bootstrap/bin/cgo
                     77: # also does not support SSP at this time
                     78: CHECK_SSP_SKIP=                        ${CHECK_RELRO_SKIP}
                     79:
                     80: # uses /bin/rc (for Plan 9)
                     81: CHECK_INTERPRETER_SKIP+=       go${GOVERSSUFFIX}/include/plan9/mklibc.rc
                     82: CHECK_INTERPRETER_SKIP+=       go${GOVERSSUFFIX}/src/all.rc
                     83: CHECK_INTERPRETER_SKIP+=       go${GOVERSSUFFIX}/src/clean.rc
                     84: CHECK_INTERPRETER_SKIP+=       go${GOVERSSUFFIX}/src/make.rc
                     85: CHECK_INTERPRETER_SKIP+=       go${GOVERSSUFFIX}/src/run.rc
                     86:
                     87: BUILD_DEPENDS+=                go14-1.4*:../../lang/go14
                     88: GOROOT_BOOTSTRAP=      ${PREFIX}/go14
                     89:
1.2       minskim    90: PLIST_SUBST+=  GOVERSSUFFIX=${GOVERSSUFFIX}
                     91:
1.1       bsiegert   92: .include "../../mk/bsd.prefs.mk"
                     93:
                     94: PLIST_VARS+=   pty route
                     95:
                     96: .if ${OPSYS} != "SunOS"
                     97: PLIST.pty=     yes
                     98: .endif
                     99:
                    100: .if ${OPSYS} != "Linux" && ${OPSYS} != "SunOS"
                    101: PLIST.route=   yes
                    102: .endif
                    103:
                    104: do-build:
                    105:        cd ${WRKSRC}/src && env GOROOT_BOOTSTRAP=${GOROOT_BOOTSTRAP:Q} GOROOT_FINAL=${GOROOT_FINAL:Q} ${GOOPT} ${BASH} ./make.bash
                    106: # for RELRO build:
                    107: #      cd ${WRKSRC}/src && env GOROOT_BOOTSTRAP=${GOROOT_BOOTSTRAP:Q} GOROOT_FINAL=${GOROOT_FINAL:Q} GO_LDFLAGS="-buildmode=pie" ${GOOPT} ${BASH} ./make.bash
                    108:
                    109: do-install:
1.4       bsiegert  110:        cd ${WRKSRC} && rm -rf .hgignore .hgtags pkg/obj pkg/bootstrap
1.1       bsiegert  111:        cd ${WRKSRC} && pax -rw . ${DESTDIR}${PREFIX}/go${GOVERSSUFFIX}
                    112:        find ${DESTDIR}${PREFIX}/go${GOVERSSUFFIX} -name \*.orig -exec rm {} \;
1.2       minskim   113: .for cmd in go gofmt
1.3       bsiegert  114:        ${LN} -sf ${PREFIX}/go111/bin/${cmd} ${DESTDIR}${PREFIX}/bin/${cmd}${GOVERSSUFFIX}
1.2       minskim   115: .endfor
1.1       bsiegert  116:
                    117: do-test:
                    118:        cd ${WRKSRC}/src && GOROOT=${WRKSRC} PATH=${WRKSRC}/bin:${PATH} ${GOOPT} ${BASH} run.bash --no-rebuild --banner ""
                    119:
                    120: .include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>