diff options
author | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2021-06-30 20:35:19 +0000 |
---|---|---|
committer | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2021-06-30 20:43:33 +0000 |
commit | 914f790c120f9de0ba7ef37aae9a4fd3bed475ee (patch) | |
tree | 7bf8937dc61bfb45cdf54ef15c45707df90c9818 | |
parent | 6a1ef0b214b17274261437ad88a4044990e89640 (diff) | |
download | ports-914f790c120f9de0ba7ef37aae9a4fd3bed475ee.tar.gz ports-914f790c120f9de0ba7ef37aae9a4fd3bed475ee.zip |
devel/grpc: Fix pkgconfig file
- Bump PORTREVISION for package change
-rw-r--r-- | devel/grpc/Makefile | 10 | ||||
-rw-r--r-- | devel/grpc/files/extra-patch-CMakeLists.txt | 13 |
2 files changed, 22 insertions, 1 deletions
diff --git a/devel/grpc/Makefile b/devel/grpc/Makefile index 0aad80558e16..de0629308967 100644 --- a/devel/grpc/Makefile +++ b/devel/grpc/Makefile @@ -3,6 +3,7 @@ PORTNAME= grpc PORTVERSION= 1.38.1 DISTVERSIONPREFIX= v +PORTREVISION= 1 PORTEPOCH= 2 CATEGORIES= devel @@ -38,4 +39,11 @@ USE_LDCONFIG= yes PLIST_SUB= SHLIB_MAJOR=${PORTVERSION:R} \ SHLIB_MINOR=${PORTVERSION:E} -.include <bsd.port.mk> +.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> diff --git a/devel/grpc/files/extra-patch-CMakeLists.txt b/devel/grpc/files/extra-patch-CMakeLists.txt new file mode 100644 index 000000000000..07020b8e727b --- /dev/null +++ b/devel/grpc/files/extra-patch-CMakeLists.txt @@ -0,0 +1,13 @@ +Remove openssl from grpc.pc because we do not ship openssl.pc in base system + +--- CMakeLists.txt.orig 2021-06-19 00:53:16 UTC ++++ CMakeLists.txt +@@ -15696,7 +15696,7 @@ generate_pkgconfig( + "gRPC" + "high performance general RPC framework" + "${gRPC_CORE_VERSION}" +- "gpr openssl absl_base absl_bind_front absl_flat_hash_map absl_inlined_vector absl_memory absl_optional absl_status absl_statusor absl_str_format absl_strings absl_synchronization absl_time" ++ "gpr absl_base absl_bind_front absl_flat_hash_map absl_inlined_vector absl_memory absl_optional absl_status absl_statusor absl_str_format absl_strings absl_synchronization absl_time" + "-lgrpc -laddress_sorting -lre2 -lupb -lcares -lz" + "" + "grpc.pc") |