head	1.11;
access;
symbols
	pkgsrc-2022Q3:1.10.0.2
	pkgsrc-2022Q3-base:1.10
	pkgsrc-2022Q2:1.9.0.10
	pkgsrc-2022Q2-base:1.9
	pkgsrc-2022Q1:1.9.0.8
	pkgsrc-2022Q1-base:1.9
	pkgsrc-2021Q4:1.9.0.6
	pkgsrc-2021Q4-base:1.9
	pkgsrc-2021Q3:1.9.0.4
	pkgsrc-2021Q3-base:1.9
	pkgsrc-2021Q2:1.9.0.2
	pkgsrc-2021Q2-base:1.9
	pkgsrc-2021Q1:1.7.0.6
	pkgsrc-2021Q1-base:1.7
	pkgsrc-2020Q4:1.7.0.4
	pkgsrc-2020Q4-base:1.7
	pkgsrc-2020Q3:1.7.0.2
	pkgsrc-2020Q3-base:1.7
	pkgsrc-2020Q2:1.6.0.2
	pkgsrc-2020Q2-base:1.6
	pkgsrc-2020Q1:1.5.0.2
	pkgsrc-2020Q1-base:1.5
	pkgsrc-2019Q4:1.4.0.4
	pkgsrc-2019Q4-base:1.4
	pkgsrc-2019Q3:1.3.0.2
	pkgsrc-2019Q3-base:1.3
	pkgsrc-2019Q2:1.2.0.8
	pkgsrc-2019Q2-base:1.2
	pkgsrc-2019Q1:1.2.0.6
	pkgsrc-2019Q1-base:1.2
	pkgsrc-2018Q4:1.2.0.4
	pkgsrc-2018Q4-base:1.2
	pkgsrc-2018Q3:1.2.0.2
	pkgsrc-2018Q3-base:1.2;
locks; strict;
comment	@# @;


1.11
date	2022.10.01.11.25.51;	author bsiegert;	state dead;
branches;
next	1.10;
commitid	ooi4cH67J60wv0WD;

1.10
date	2022.06.28.11.34.13;	author wiz;	state Exp;
branches;
next	1.9;
commitid	D2UoJrTHpoHEANJD;

1.9
date	2021.05.24.19.52.33;	author wiz;	state Exp;
branches;
next	1.8;
commitid	qokaiStTApGMcrUC;

1.8
date	2021.05.13.09.32.26;	author nia;	state Exp;
branches;
next	1.7;
commitid	taVyI16KGR2h9YSC;

1.7
date	2020.08.31.18.09.50;	author wiz;	state Exp;
branches;
next	1.6;
commitid	7zxRbfOkDOoxbfmC;

1.6
date	2020.05.01.14.09.15;	author tnn;	state Exp;
branches;
next	1.5;
commitid	jS3Z6eVKxNzDNx6C;

1.5
date	2020.01.26.17.31.28;	author rillig;	state Exp;
branches;
next	1.4;
commitid	4fBBvoSLJaGd0eUB;

1.4
date	2019.11.03.19.04.01;	author rillig;	state Exp;
branches;
next	1.3;
commitid	puQpdVbj8afCdrJB;

1.3
date	2019.08.11.13.21.21;	author wiz;	state Exp;
branches;
next	1.2;
commitid	Ifet9Pg6Qt99ZByB;

1.2
date	2018.08.22.09.45.20;	author wiz;	state Exp;
branches;
next	1.1;
commitid	YLub8g3ofvFGb6PA;

1.1
date	2018.07.08.17.59.07;	author bsiegert;	state Exp;
branches;
next	;
commitid	6z93WvgdSV1ynmJA;


desc
@@


1.11
log
@go19, go110, go116, go117: remove

Go 1.9 and 1.10 are no longer useful because they do not support
module-based builds, which is most other packages now.

Go 1.16 and 1.17 are end of life.

ok to remove from gdt@@ on tech-pkg@@.
@
text
@# $NetBSD: Makefile,v 1.10 2022/06/28 11:34:13 wiz Exp $

PKGREVISION= 5
.include "../../lang/go/version.mk"
.include "../../lang/go/bootstrap.mk"

DISTNAME=	go${GO19_VERSION}.src
PKGNAME=	go19-${GO19_VERSION}
CATEGORIES=	lang
MASTER_SITES=	https://storage.googleapis.com/golang/

MAINTAINER=	bsiegert@@NetBSD.org
HOMEPAGE=	https://golang.org/
COMMENT=	The Go programming language, version 1.9
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}

GOROOT_FINAL=		${PREFIX}/go19
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/fortran/test.bash
REPLACE_BASH+=	misc/cgo/testcshared/test.bash
REPLACE_BASH+=	misc/cgo/testgodefs/test.bash
REPLACE_BASH+=	misc/cgo/testplugin/test.bash
REPLACE_BASH+=	misc/cgo/testsanitizers/test.bash
REPLACE_BASH+=	misc/cgo/testplugin/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/bootstrap.bash
REPLACE_BASH+=	src/buildall.bash
REPLACE_BASH+=	src/clean.bash
REPLACE_BASH+=	src/cmd/dist/mkdeps.bash
REPLACE_BASH+=	src/cmd/go/mkalldocs.sh
REPLACE_BASH+=	src/internal/trace/mkcanned.bash
REPLACE_BASH+=	src/iostest.bash
REPLACE_BASH+=	src/make.bash
REPLACE_BASH+=	src/naclmake.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_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 own linker, which does not support relro on NetBSD
CHECK_RELRO_SKIP+=		go19/bin/go
CHECK_RELRO_SKIP+=		go19/bin/gofmt
CHECK_RELRO_SKIP+=		go19/pkg/bootstrap/bin/asm
CHECK_RELRO_SKIP+=		go19/pkg/bootstrap/bin/compile
CHECK_RELRO_SKIP+=		go19/pkg/bootstrap/bin/link

# uses /bin/rc (for Plan 9)
CHECK_INTERPRETER_SKIP+=	go19/include/plan9/mklibc.rc
CHECK_INTERPRETER_SKIP+=	go19/src/all.rc
CHECK_INTERPRETER_SKIP+=	go19/src/clean.rc
CHECK_INTERPRETER_SKIP+=	go19/src/make.rc
CHECK_INTERPRETER_SKIP+=	go19/src/run.rc

PLIST_VARS+=	route

.if ${OPSYS} != "Linux" && ${OPSYS} != "SunOS"
PLIST.route=	yes
.endif

do-build:
	cd ${WRKSRC}/src && env GOROOT_BOOTSTRAP=${GOROOT_BOOTSTRAP:Q} GOROOT_FINAL=${GOROOT_FINAL:Q} ${GOOPT} ${BASH} ./make.bash
# for RELRO build:
#	cd ${WRKSRC}/src && env GOROOT_BOOTSTRAP=${GOROOT_BOOTSTRAP:Q} GOROOT_FINAL=${GOROOT_FINAL:Q} GO_LDFLAGS="-buildmode=pie" ${GOOPT} ${BASH} ./make.bash

do-install:
	cd ${WRKSRC} && rm -rf .hgignore .hgtags pkg/obj
	cd ${WRKSRC} && pax -rw . ${DESTDIR}${GOROOT_FINAL}
	find ${DESTDIR}${GOROOT_FINAL} -name \*.orig -exec rm {} \;

do-test:
	cd ${WRKSRC}/src && GOROOT=${WRKSRC} PATH=${WRKSRC}/bin:${PATH} ${GOOPT} ${BASH} run.bash --no-rebuild --banner ""

.include "../../mk/bsd.pkg.mk"
@


1.10
log
@*: recursive bump for perl 5.36
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2021/05/24 19:52:33 wiz Exp $
@


1.9
log
@*: recursive bump for perl 5.34
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2021/05/13 09:32:26 nia Exp $
d3 1
a3 1
PKGREVISION= 4
@


1.8
log
@go*: remove bsdtar requirement

was likely introduced as a workaround for pax-as-tar in netbsd 8 and
prior being unable to deal with complex archives. now we deal with
this in the pkgsrc infrastructure and this just unfairly adds a
dependency on platforms where the native tar is perfectly fine.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2020/08/31 18:09:50 wiz Exp $
d3 1
a3 1
PKGREVISION= 3
@


1.7
log
@*: bump PKGREVISION for perl-5.32.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2020/05/01 14:09:15 tnn Exp $
a10 1
EXTRACT_USING=	bsdtar
@


1.6
log
@go*: move definition of GOROOT_BOOTSTRAP to go/bootstrap.mk.

NFC. But will later need to do something else when MACHINE_ARCH == aarch64.
Also drop dup include of bsd.prefs.mk. go/version.mk does this already.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2020/01/26 17:31:28 rillig Exp $
d3 1
a3 1
PKGREVISION= 2
@


1.5
log
@all: migrate homepages from http to https

pkglint -r --network --only "migrate"

As a side-effect of migrating the homepages, pkglint also fixed a few
indentations in unrelated lines. These and the new homepages have been
checked manually.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2019/11/03 19:04:01 rillig Exp $
d5 1
a83 5
BUILD_DEPENDS+=		go14-1.4*:../../lang/go14
GOROOT_BOOTSTRAP=	${PREFIX}/go14

.include "../../mk/bsd.prefs.mk"

@


1.4
log
@lang: align variable assignments

pkglint -Wall -F --only aligned --only indent -r

No manual corrections.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2019/08/11 13:21:21 wiz Exp $
d13 1
a13 1
HOMEPAGE=	http://golang.org/
@


1.3
log
@Bump PKGREVISIONs for perl 5.30.0
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2018/08/22 09:45:20 wiz Exp $
d27 2
a28 2
GOROOT_FINAL=	${PREFIX}/go19
INSTALLATION_DIRS= bin
@


1.2
log
@Recursive bump for perl5-5.28.0
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2018/07/08 17:59:07 bsiegert Exp $
d3 1
a3 1
PKGREVISION= 1
@


1.1
log
@Re-add Go 1.9.4 as lang/go19.

Changes to the previous iteration when it was lang/go:

- everything installs in PREFIX/go19
- go and gofmt symlinks are maintained by pkg_alternatives
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.61 2018/01/30 17:05:21 jperkin Exp $
d3 1
@

