git: 6585097aaeec - main - security/libfido2: Skip libcrypto.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:34:15 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6585097aaeec97f823903be95540cdc759da8908

commit 6585097aaeec97f823903be95540cdc759da8908
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-04-05 17:13:54 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-04-05 17:29:52 +0000

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

diff --git a/security/libfido2/Makefile b/security/libfido2/Makefile
index f353514c09e0..555174d59a0c 100644
--- a/security/libfido2/Makefile
+++ b/security/libfido2/Makefile
@@ -23,8 +23,8 @@ OPTIONS_DEFINE=	DOCS
 
 .include <bsd.port.pre.mk>
 
-# we do not ship libcrypto.pc in base system
-.if ${SSL_DEFAULT} == base
+# Skip libcrypto.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/libcrypto.pc)
 EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-openssl
 .endif