Go 1.10 no longer builds a .a file from the testdata (which are not supposed to be compiled anyway). Remove from PLIST and remove it explicitly in the build, so this can be compiled with older Go too.
25 lines
663 B
Makefile
25 lines
663 B
Makefile
# $NetBSD: Makefile,v 1.8 2018/03/11 19:45:21 bsiegert Exp $
|
|
|
|
DISTNAME= go-protobuf-20160829
|
|
PKGREVISION= 5
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=golang/}
|
|
GITHUB_PROJECT= protobuf
|
|
GITHUB_TAG= 1f49d83
|
|
|
|
HOMEPAGE= http://godoc.org/${GO_SRCPATH}
|
|
COMMENT= Go support for Google protocol buffers
|
|
LICENSE= modified-bsd
|
|
|
|
GO_SRCPATH= github.com/golang/protobuf
|
|
GO_DIST_BASE= ${GITHUB_PROJECT}-${GITHUB_TAG}*
|
|
|
|
REPLACE_SH+= ptypes/regen.sh
|
|
|
|
CHECK_RELRO_SKIP+= bin/protoc-gen-go
|
|
|
|
pre-install:
|
|
${RM} -f ${WRKSRC}/pkg/${GO_PLATFORM}/github.com/golang/protobuf/proto/testdata.a
|
|
|
|
.include "../../lang/go/go-package.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|