git: 44751f5f0219 - main - devel/libgit2: fix build problem with openssl3 and libressl

From: Matthias Fechner <mfechner_at_FreeBSD.org>
Date: Wed, 13 Sep 2023 05:49:21 UTC
The branch main has been updated by mfechner:

URL: https://cgit.FreeBSD.org/ports/commit/?id=44751f5f02191e232afe5c327cad3d50382ba497

commit 44751f5f02191e232afe5c327cad3d50382ba497
Author:     Matthias Fechner <mfechner@FreeBSD.org>
AuthorDate: 2023-09-13 05:48:02 +0000
Commit:     Matthias Fechner <mfechner@FreeBSD.org>
CommitDate: 2023-09-13 05:48:57 +0000

    devel/libgit2: fix build problem with openssl3 and libressl
    
    Make cmake aware of the selected ssl lib
    PR:             273609
---
 devel/libgit2/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/devel/libgit2/Makefile b/devel/libgit2/Makefile
index 6077ec583236..57dea0d9397e 100644
--- a/devel/libgit2/Makefile
+++ b/devel/libgit2/Makefile
@@ -24,7 +24,10 @@ USE_LDCONFIG=	yes
 CMAKE_TESTING_ON=	BUILD_TESTS
 
 CMAKE_ARGS=	-DREGEX_BACKEND=pcre2 -DUSE_HTTP_PARSER=system \
-		-DCMAKE_CTEST_ARGUMENTS="-E;'invasive|online'"
+		-DCMAKE_CTEST_ARGUMENTS="-E;'invasive|online'" \
+		-DOPENSSL_ROOT_DIR=${OPENSSLBASE} \
+		-DOPENSSL_ENGINES_DIR=${ENGINESDIR}
+
 CMAKE_OFF=	BUILD_TESTS
 
 PLIST_SUB=	DISTVERSION=${DISTVERSION} \