pkgsrc/net/grpc/Makefile
adam 5b19e9cdfe grpc: updated to 1.47.1
v1.47.1

Core

[Backport] Using string rep for status-time
[Backport] Tell MSVC to build grpc with utf-8
[Backport] Ring hash: fix picker propagation bug in xds_cluster_manager policy
2022-07-18 07:30:01 +00:00

50 lines
1.7 KiB
Makefile

# $NetBSD: Makefile,v 1.59 2022/07/18 07:30:01 adam Exp $
DISTNAME= grpc-1.47.1
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
# This should be included in the distfile, but it's not,
# so CMakeFile.txt will try to download it.
CENSUS_DIST= v0.3.0.tar.gz
SITES.${CENSUS_DIST}= ${MASTER_SITE_GITHUB:=census-instrumentation/opencensus-proto/archive/}
DISTFILES= ${DEFAULT_DISTFILES} ${CENSUS_DIST}
post-extract:
cd ${WRKSRC}/third_party/opencensus-proto && \
${LN} -s ${WRKDIR}/opencensus-proto-0.3.0/src src
.include "../../mk/atomic64.mk"
.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"