blob: b88671a45e93eeea59852846994c653ff81133ff (
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
|
# Created by: vanilla@
# $FreeBSD$
PORTNAME= grpc
PORTVERSION= 1.7.3
DISTVERSIONPREFIX= v
PORTREVISION= 1
CATEGORIES= devel
MAINTAINER= vanilla@FreeBSD.org
COMMENT= HTTP/2-based RPC framework
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
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.3.0: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 \
-DBUILD_SHARED_LIBS=ON
.include <bsd.port.mk>
|