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

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

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

CVSweb <webmaster@jp.NetBSD.org>