mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
7ee9017a5f
Do not bump PORTREVISION because they are identical now. PR: 266577
68 lines
2.1 KiB
Makefile
68 lines
2.1 KiB
Makefile
PORTNAME= grpc
|
|
PORTVERSION= 1.49.1
|
|
DISTVERSIONPREFIX= v
|
|
PORTREVISION= 1
|
|
PORTEPOCH= 2
|
|
CATEGORIES= devel
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= HTTP/2-based RPC framework
|
|
WWW= https://grpc.io/
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/xxhash.h:devel/xxhash
|
|
LIB_DEPENDS= libabsl_base.so:devel/abseil \
|
|
libbenchmark.so:devel/benchmark \
|
|
libcares.so:dns/c-ares \
|
|
libgflags.so:devel/gflags \
|
|
libprotobuf.so:devel/protobuf \
|
|
libre2.so:devel/re2
|
|
|
|
USES= cmake compiler:c++17-lang cpe localbase:ldflags pkgconfig ssl
|
|
|
|
USE_GITHUB= yes
|
|
GH_TUPLE= census-instrumentation:opencensus-proto:v0.3.0:census_instrumentation_opencensus_proto/third_party/opencensus-proto/src \
|
|
cncf:xds:1e77728:cncf_xds/third_party/xds
|
|
|
|
CMAKE_ARGS= -DCMAKE_CXX_STANDARD=17 \
|
|
-DgRPC_ABSL_PROVIDER=package \
|
|
-DgRPC_BENCHMARK_PROVIDER=package \
|
|
-DgRPC_CARES_PROVIDER=package \
|
|
-DgRPC_GFLAGS_PROVIDER=package \
|
|
-DgRPC_PROTOBUF_PROVIDER=package \
|
|
-DgRPC_RE2_PROVIDER=package \
|
|
-DgRPC_SSL_PROVIDER=package \
|
|
-DgRPC_ZLIB_PROVIDER=package
|
|
CMAKE_OFF= gRPC_BACKWARDS_COMPATIBILITY_MODE gRPC_BUILD_TESTS
|
|
CMAKE_ON= BUILD_SHARED_LIBS gRPC_BUILD_CODEGEN gRPC_BUILD_CSHARP_EXT gRPC_BUILD_GRPC_CPP_PLUGIN gRPC_BUILD_GRPC_CSHARP_PLUGIN gRPC_BUILD_GRPC_NODE_PLUGIN gRPC_BUILD_GRPC_OBJECTIVE_C_PLUGIN gRPC_BUILD_GRPC_PHP_PLUGIN gRPC_BUILD_GRPC_PYTHON_PLUGIN gRPC_BUILD_GRPC_RUBY_PLUGIN
|
|
USE_CSTD= c11
|
|
USE_CXXSTD= c++17
|
|
USE_LDCONFIG= yes
|
|
|
|
PLIST_SUB= SHLIB_MAJOR=${PORTVERSION:R} \
|
|
SHLIB_MINOR=${PORTVERSION:E}
|
|
|
|
CONFLICTS_INSTALL= grpc130 grpc134 grpc142
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
# Remove openssl from grpc.pc because we do not ship openssl.pc in base system
|
|
.if ${SSL_DEFAULT} == base
|
|
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-openssl
|
|
.endif
|
|
|
|
post-patch:
|
|
# Clean up bundled libraries
|
|
@${RM} -r ${WRKSRC}/third_party/abseil-cpp/
|
|
@${RM} -r ${WRKSRC}/third_party/benchmark/
|
|
@${RM} -r ${WRKSRC}/third_party/boringssl-with-bazel/
|
|
@${RM} -r ${WRKSRC}/third_party/cares/
|
|
@${RM} -r ${WRKSRC}/third_party/protobuf/
|
|
@${RM} -r ${WRKSRC}/third_party/re2/
|
|
@${RM} -r ${WRKSRC}/third_party/xxhash/
|
|
@${RM} -r ${WRKSRC}/third_party/zlib/
|
|
|
|
.include <bsd.port.post.mk>
|