mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-09 06:51:44 +00:00
f4acead636
- Bump PORTREVISION of dependent ports for shlib change Changes: https://github.com/protocolbuffers/protobuf/releases PR: 257026 Exp-run by: antoine
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
# Created by: vanilla@
|
|
|
|
PORTNAME= grpc
|
|
PORTVERSION= 1.38.1
|
|
DISTVERSIONPREFIX= v
|
|
PORTREVISION= 2
|
|
PORTEPOCH= 2
|
|
CATEGORIES= devel
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= HTTP/2-based RPC framework
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
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 localbase:ldflags pkgconfig ssl
|
|
|
|
USE_GITHUB= yes
|
|
|
|
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_ON= BUILD_SHARED_LIBS
|
|
USE_LDCONFIG= yes
|
|
|
|
PLIST_SUB= SHLIB_MAJOR=${PORTVERSION:R} \
|
|
SHLIB_MINOR=${PORTVERSION:E}
|
|
|
|
.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-CMakeLists.txt
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|