[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / net / go-net

File: [cvs.NetBSD.org] / pkgsrc / net / go-net / Makefile (download)

Revision 1.17.6.1, Thu Jan 4 21:13:18 2018 UTC (13 months, 1 week ago) by spz
Branch: pkgsrc-2017Q4
Changes since 1.17: +8 -4 lines

Pullup ticket #5669 - requested by bsiegert
net/go-net: build fix

Revisions pulled up:
- net/go-net/Makefile                                           1.18
- net/go-net/PLIST                                              1.6

-------------------------------------------------------------------
   Module Name:	pkgsrc
   Committed By:	bsiegert
   Date:		Sun Dec 31 15:59:25 UTC 2017

   Modified Files:
    	pkgsrc/net/go-net: Makefile PLIST

   Log Message:
   Fix build on Linux.

   Linux has h2i but not the (BSD-specific) route package. Instead of having
   a PLIST var named notsunos, create two separate ones for h2i and route.


   To generate a diff of this commit:
   cvs rdiff -u -r1.17 -r1.18 pkgsrc/net/go-net/Makefile
   cvs rdiff -u -r1.5 -r1.6 pkgsrc/net/go-net/PLIST

# $NetBSD: Makefile,v 1.17.6.1 2018/01/04 21:13:18 spz Exp $

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

MAINTAINER=		bsiegert@NetBSD.org
HOMEPAGE=		http://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 "../../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"