blob: 9a077a900d509819f652297ec0518823cb67c7e8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Created by: vanilla@
# $FreeBSD$
PORTNAME= grpc
PORTVERSION= 1.13.0
DISTVERSIONPREFIX= v
PORTREVISION= 0
CATEGORIES= devel
MAINTAINER= vanilla@FreeBSD.org
COMMENT= HTTP/2-based RPC framework
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN_SSL= openssl-devel
BROKEN_SSL_REASON_openssl-devel= use of undeclared identifier 'SSL_get0_next_proto_negotiated'
BUILD_DEPENDS= go:lang/go \
yasm:devel/yasm
LIB_DEPENDS= libgflags.so:devel/gflags \
libprotobuf.so:devel/protobuf \
libcares.so:dns/c-ares
USES= cmake localbase:ldflags perl5 pkgconfig ssl
USE_GITHUB= yes
GH_TUPLE= google:benchmark:v1.4.1:benchmark/third_party/benchmark
USE_LDCONFIG= yes
USE_PERL5= build
PLIST_SUB+= SOVERSION=${PORTVERSION}
LDFLAGS+= -lcares
CMAKE_ARGS= -DgRPC_ZLIB_PROVIDER:STRING="package" \
-DgRPC_PROTOBUF_PROVIDER:STRING="package" \
-DgRPC_GFLAGS_PROVIDER:STRING="package" \
-DgRPC_SSL_PROVIDER:STRING="package" \
-DgRPC_CARES_PROVIDER:STRING="package" \
-DgRPC_BENCHMARK_PROVIDER:STRING="module" \
-DBENCHMARK_USE_LIBCXX=ON \
-DBENCHMARK_ENABLE_TESTING=OFF \
-DBUILD_SHARED_LIBS=ON
.include <bsd.port.mk>
|