summaryrefslogtreecommitdiff
path: root/net/go-net/Makefile
blob: 3f4059aefcdb4272430f1f5d78ab9b0573b53c91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# $NetBSD: Makefile,v 1.35 2020/01/26 17:31:50 rillig Exp $

DISTNAME=		go-net-20170308
PKGREVISION=		16
CATEGORIES=		net
MASTER_SITES=		${MASTER_SITE_GITHUB:=golang/}
GITHUB_PROJECT=		net
GITHUB_TAG=		a6577fa

MAINTAINER=		bsiegert@NetBSD.org
HOMEPAGE=		https://golang.org/
COMMENT=		Supplementary network libraries for Go
LICENSE=		modified-bsd

GO_SRCPATH=		golang.org/x/net
GO_DIST_BASE=		${GITHUB_PROJECT}-${GITHUB_TAG}*

CHECK_RELRO_SKIP+=	bin/h2i

.include "../../lang/go/go-vars.mk"
.include "../../mk/bsd.prefs.mk"

PLIST_VARS+=	h2i route

.if ${OPSYS} == "SunOS"
# route support is not yet implemented for sunos
# h2i is missing terminal.MakeRaw and terminal.Restore
.elif ${OPSYS} == "Linux"
PLIST.h2i=	yes
.else
PLIST.h2i=	yes
PLIST.route=	yes
.endif

.include "../../textproc/go-text/buildlink3.mk"
.include "../../security/go-crypto/buildlink3.mk"
.include "../../lang/go/go-package.mk"
.include "../../mk/bsd.pkg.mk"