2020-04-17 03:19:20 +02:00
|
|
|
# $NetBSD: Makefile,v 1.40 2020/04/17 01:19:20 gutteridge Exp $
|
2015-03-10 22:28:45 +01:00
|
|
|
|
2020-02-03 15:46:07 +01:00
|
|
|
DISTNAME= go-net-20200130
|
2020-04-12 13:01:37 +02:00
|
|
|
PKGREVISION= 2
|
2015-03-10 22:28:45 +01:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=golang/}
|
2015-03-12 21:55:48 +01:00
|
|
|
GITHUB_PROJECT= net
|
2020-02-03 15:46:07 +01:00
|
|
|
GITHUB_TAG= 1617124
|
2015-03-10 22:28:45 +01:00
|
|
|
|
|
|
|
MAINTAINER= bsiegert@NetBSD.org
|
2020-01-26 18:30:40 +01:00
|
|
|
HOMEPAGE= https://golang.org/
|
2015-03-10 22:28:45 +01:00
|
|
|
COMMENT= Supplementary network libraries for Go
|
|
|
|
LICENSE= modified-bsd
|
|
|
|
|
|
|
|
GO_SRCPATH= golang.org/x/net
|
2015-03-12 21:55:48 +01:00
|
|
|
GO_DIST_BASE= ${GITHUB_PROJECT}-${GITHUB_TAG}*
|
2015-03-10 22:28:45 +01:00
|
|
|
|
2017-07-22 21:32:40 +02:00
|
|
|
CHECK_RELRO_SKIP+= bin/h2i
|
|
|
|
|
2019-12-09 11:11:35 +01:00
|
|
|
.include "../../lang/go/go-vars.mk"
|
2016-12-10 20:07:20 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2017-12-31 16:59:24 +01:00
|
|
|
PLIST_VARS+= h2i route
|
2016-12-10 20:07:20 +01:00
|
|
|
|
2017-12-31 16:59:24 +01:00
|
|
|
.if ${OPSYS} == "SunOS"
|
2016-12-10 20:07:20 +01:00
|
|
|
# route support is not yet implemented for sunos
|
2020-04-17 03:19:20 +02:00
|
|
|
PLIST.h2i= yes
|
2017-12-31 16:59:24 +01:00
|
|
|
.elif ${OPSYS} == "Linux"
|
|
|
|
PLIST.h2i= yes
|
|
|
|
.else
|
|
|
|
PLIST.h2i= yes
|
|
|
|
PLIST.route= yes
|
2016-12-10 20:07:20 +01:00
|
|
|
.endif
|
|
|
|
|
2020-02-03 15:46:07 +01:00
|
|
|
pre-patch:
|
|
|
|
${RM} -rf ${WRKSRC}/http2/h2demo
|
|
|
|
|
2015-03-10 22:28:45 +01:00
|
|
|
.include "../../textproc/go-text/buildlink3.mk"
|
2017-03-20 23:53:45 +01:00
|
|
|
.include "../../security/go-crypto/buildlink3.mk"
|
2015-03-10 22:28:45 +01:00
|
|
|
.include "../../lang/go/go-package.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|