blob: 91b7d5dc528aeb393c6eb190da526d7a1d53ff38 (
plain)
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
44
45
46
|
# $NetBSD: Makefile,v 1.34 2020/12/06 10:50:11 wiz Exp $
DISTNAME= grpc-1.34.0
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GITHUB:=grpc/}
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= minskim@NetBSD.org
HOMEPAGE= https://grpc.io/
COMMENT= High performance, open-source universal RPC framework
LICENSE= apache-2.0
USE_CMAKE= yes
USE_LANGUAGES+= c c++11
USE_TOOLS+= pkg-config
CMAKE_ARGS+= -DBUILD_SHARED_LIBS=ON
# use cmake's find_package() to locate a pre-installed dependency
CMAKE_ARGS+= -DgRPC_ABSL_PROVIDER=package
CMAKE_ARGS+= -DgRPC_BENCHMARK_PROVIDER=package
CMAKE_ARGS+= -DgRPC_CARES_PROVIDER=package
CMAKE_ARGS+= -DgRPC_GFLAGS_PROVIDER=package
CMAKE_ARGS+= -DgRPC_PROTOBUF_PROVIDER=package
CMAKE_ARGS+= -DgRPC_RE2_PROVIDER=package
CMAKE_ARGS+= -DgRPC_SSL_PROVIDER=package
CMAKE_ARGS+= -DgRPC_ZLIB_PROVIDER=package
.include "../../mk/bsd.prefs.mk"
# 64 bit atomic ops are required
.if ${MACHINE_ARCH} == "i386"
CFLAGS+= -march=i586
CXXFLAGS+= -march=i586
.endif
.include "../../benchmarks/google-benchmark/buildlink3.mk"
.include "../../devel/abseil/buildlink3.mk"
.include "../../devel/gflags/buildlink3.mk"
BUILDLINK_API_DEPENDS.protobuf+= protobuf>=3.5
.include "../../devel/protobuf/buildlink3.mk"
.include "../../devel/re2/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
BUILDLINK_API_DEPENDS.libcares+= libcares>=1.15.0nb1
.include "../../net/libcares/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|