View | Details | Raw Unified | Return to bug 215346
Collapse All | Expand All

(-)b/devel/protobuf/Makefile (-1 / +11 lines)
Lines 12-28 COMMENT= Data interchange format library Link Here
12
LICENSE=	BSD3CLAUSE
12
LICENSE=	BSD3CLAUSE
13
LICENSE_FILE=	${WRKSRC}/LICENSE
13
LICENSE_FILE=	${WRKSRC}/LICENSE
14
14
15
TEST_DEPENDS=	googletest>0:devel/googletest \
16
		googlemock>0:devel/googlemock
17
15
BROKEN_sparc64=	fails to compile: no atomic ops available
18
BROKEN_sparc64=	fails to compile: no atomic ops available
16
19
17
CFLAGS+=	-DGOOGLE_PROTOBUF_NO_RTTI
20
CFLAGS+=	-DGOOGLE_PROTOBUF_NO_RTTI
18
GNU_CONFIGURE=	yes
21
GNU_CONFIGURE=	yes
19
INSTALL_TARGET=	install-strip
22
INSTALL_TARGET=	install-strip
20
TEST_TARGET=	check
23
TEST_TARGET=	check
24
TEST_ARGS=	${MAKE_ARGS} ${_MAKE_JOBS}
21
USE_CSTD=	c99	# for audio/clementine-player support
25
USE_CSTD=	c99	# for audio/clementine-player support
22
USE_LDCONFIG=	yes
26
USE_LDCONFIG=	yes
23
USES=		autoreconf gmake libtool pathfix pkgconfig
27
USES=		autoreconf gmake libtool localbase pathfix pkgconfig
24
28
25
GH_ACCOUNT=	google
29
GH_ACCOUNT=	google
26
USE_GITHUB=	yes
30
USE_GITHUB=	yes
27
31
32
post-patch:
33
	@${REINPLACE_CMD} -e 's/^check-local/&-disabled/' \
34
		${WRKSRC}/Makefile.am
35
	@${REINPLACE_CMD} -Ee '/gtest|mock/s/.*lib(.*)\.la/		-l\1/' \
36
		${WRKSRC}/src/Makefile.am
37
28
.include <bsd.port.mk>
38
.include <bsd.port.mk>
(-)b/devel/protobuf/files/patch-src_google_protobuf_testing_zcgunzip.cc (+10 lines)
Added Link Here
1
--- src/google/protobuf/testing/zcgunzip.cc.orig	2014-10-21 00:06:06 UTC
2
+++ src/google/protobuf/testing/zcgunzip.cc
3
@@ -44,6 +44,7 @@
4
 #include <stdio.h>
5
 #include <stdlib.h>
6
 #include <fcntl.h>
7
+#include <unistd.h> // STDOUT_FILENO
8
 
9
 #include <google/protobuf/io/gzip_stream.h>
10
 #include <google/protobuf/io/zero_copy_stream_impl.h>
(-)b/devel/protobuf/files/patch-src_google_protobuf_testing_zcgzip.cc (+10 lines)
Added Link Here
1
--- src/google/protobuf/testing/zcgzip.cc.orig	2014-10-21 00:06:06 UTC
2
+++ src/google/protobuf/testing/zcgzip.cc
3
@@ -43,6 +43,7 @@
4
 #include <stdio.h>
5
 #include <stdlib.h>
6
 #include <fcntl.h>
7
+#include <unistd.h> // STDOUT_FILENO
8
 
9
 #include <google/protobuf/io/gzip_stream.h>
10
 #include <google/protobuf/io/zero_copy_stream_impl.h>

Return to bug 215346