[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / protobuf

File: [cvs.NetBSD.org] / pkgsrc / devel / protobuf / Makefile (download)

Revision 1.21, Fri Jul 12 19:57:03 2019 UTC (10 months, 2 weeks ago) by adam
Branch: MAIN
Changes since 1.20: +2 -2 lines

protobuf: updated to 3.9.0

Protocol Buffers v3.9.0

C++

Optimize and simplify implementation of RepeatedPtrFieldBase
Don't create unnecessary unknown field sets.
Remove branch from accessors to repeated field element array.
Added delimited parse and serialize util.
Reduce size by not emitting constants for fieldnumbers
Fix a bug when comparing finite and infinite field values with explicit tolerances.
TextFormat::Parser should use a custom Finder to look up extensions by number if one is provided.
Add MessageLite::Utf8DebugString() to make MessageLite more compatible with Message.
Fail fast for better performance in DescriptorPool::FindExtensionByNumber() if descriptor has no defined extensions.
Adding the file name to help debug colliding extensions
Added FieldDescriptor::PrintableNameForExtension() and DescriptorPool::FindExtensionByPrintableName().
The latter will replace Reflection::FindKnownExtensionByName().
Replace NULL with nullptr
Created a new Add method in repeated field that allows adding a range of elements all at once.
Enabled enum name-to-value mapping functions for C++ lite
Avoid dynamic initialization in descriptor.proto generated code
Move stream functions to MessageLite from Message.
Move all zero_copy_stream functionality to io_lite.
Do not create array of matched fields for simple repeated fields
Enabling silent mode by default to reduce make compilation noise.

# $NetBSD: Makefile,v 1.21 2019/07/12 19:57:03 adam Exp $

DISTNAME=	protobuf-cpp-3.9.0
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"