diff --git a/devel/protobuf/Makefile b/devel/protobuf/Makefile index db428322d11b..94375bbf830c 100644 --- a/devel/protobuf/Makefile +++ b/devel/protobuf/Makefile @@ -1,41 +1,43 @@ # Created by: vanilla PORTNAME= protobuf PORTVERSION= 3.17.3 DISTVERSIONPREFIX= cpp- PORTEPOCH= 1 CATEGORIES= devel MASTER_SITES= https://github.com/protocolbuffers/protobuf/releases/download/v${PORTVERSION}/ MAINTAINER= sunpoet@FreeBSD.org COMMENT= Data interchange format library LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_sparc64= fails to compile: no atomic ops available TEST_DEPENDS= googletest>=0:devel/googletest -USES= compiler:c++11-lang gmake libtool localbase pathfix pkgconfig +USES= compiler:c++11-lang cpe gmake libtool localbase pathfix pkgconfig + +CPE_VENDOR= google CFLAGS+= -D_THREAD_SAFE -DGOOGLE_PROTOBUF_NO_RTTI -I${WRKSRC}/src CONFIGURE_ENV= CC_FOR_BUILD="${CC}" \ CFLAGS_FOR_BUILD="${CFLAGS}" \ CPPFLAGS_FOR_BUILD="${CPPFLAGS}" \ CXX_FOR_BUILD="${CXX}" \ CXXFLAGS_FOR_BUILD="${CXXFLAGS}" \ LDFLAGS_FOR_BUILD="${LDFLAGS}" GNU_CONFIGURE= yes INSTALL_TARGET= install-strip TEST_ARGS= ${MAKE_ARGS} ${_MAKE_JOBS} TEST_TARGET= check USE_CXXSTD= c++11 USE_LDCONFIG= yes WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} post-patch: @${REINPLACE_CMD} -e 's|^check-local:|disabled-&|' ${WRKSRC}/Makefile.in @${REINPLACE_CMD} -Ee 's,[^ ]*lib(gtest|gmock.*)\.la,-l\1,' ${WRKSRC}/src/Makefile.in .include