git: 254002b9034d - main - devel/grpc: Skip openssl.pc conditionally since both 13-STABLE and 14-CURRENT have it now

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 05 Apr 2023 17:33:47 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=254002b9034d0672aba4abdbf6ac2775c24d16ad

commit 254002b9034d0672aba4abdbf6ac2775c24d16ad
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-04-05 17:12:56 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-04-05 17:29:45 +0000

    devel/grpc: Skip openssl.pc conditionally since both 13-STABLE and 14-CURRENT have it now
---
 devel/grpc/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/devel/grpc/Makefile b/devel/grpc/Makefile
index ee0ea6df712f..d6e2567473c7 100644
--- a/devel/grpc/Makefile
+++ b/devel/grpc/Makefile
@@ -46,8 +46,8 @@ CONFLICTS_INSTALL=	grpc[0-9][0-9][0-9]
 
 .include <bsd.port.pre.mk>
 
-# Remove openssl from grpc.pc because we do not ship openssl.pc in base system
-.if ${SSL_DEFAULT} == base
+# Skip openssl.pc while using OpenSSL from base system on older FreeBSD versions which does not skip this file
+.if ${SSL_DEFAULT} == base && !exists(/usr/libdata/pkgconfig/openssl.pc)
 EXTRA_PATCHES+=	${PATCHDIR}/extra-patch-openssl
 .endif