147a913c3f
Protocol Buffers v3.7.1: C++ Avoid linking against libatomic in prebuilt protoc binaries Avoid marking generated C++ messages as final, though we will do this in a future release Miscellaneous build fixes
37 lines
954 B
Makefile
37 lines
954 B
Makefile
# $NetBSD: Makefile,v 1.19 2019/04/01 12:36:41 adam Exp $
|
|
|
|
DISTNAME= protobuf-cpp-3.7.1
|
|
PKGNAME= ${DISTNAME:S/-cpp//}
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=google/}
|
|
GITHUB_PROJECT= protobuf
|
|
GITHUB_RELEASE= v${PKGVERSION_NOREV}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://github.com/protocolbuffers/protobuf
|
|
COMMENT= Google protocol buffers
|
|
LICENSE= modified-bsd
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/-cpp//}
|
|
|
|
USE_LANGUAGES= c c++11
|
|
USE_LIBTOOL= yes
|
|
USE_TOOLS+= gmake
|
|
GNU_CONFIGURE= yes
|
|
PKGCONFIG_OVERRIDE+= protobuf-lite.pc.in
|
|
PKGCONFIG_OVERRIDE+= protobuf.pc.in
|
|
TEST_TARGET= check
|
|
|
|
SET_LIBDIR= yes
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
# 64 bit atomic ops are required
|
|
CXXFLAGS+= -march=i586
|
|
.endif
|
|
|
|
# included in third_party
|
|
#.include "../../devel/googletest/buildlink3.mk"
|
|
BUILDLINK_API_DEPENDS.zlib+= zlib>=1.2.0.4
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|