git: c26542c1afd4 - main - security/openssl_tpm_engine: force target engine directory

From: Baptiste Daroussin <bapt_at_FreeBSD.org>
Date: Tue, 06 Sep 2022 07:25:08 UTC
The branch main has been updated by bapt:

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

commit c26542c1afd4570b2eb9b86c47e697bdc2889312
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2022-09-06 07:07:55 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2022-09-06 07:25:00 +0000

    security/openssl_tpm_engine: force target engine directory
    
    With the upcoming pc files for the base openssl the configure
    script detects automatically the target from the pkg-config variable
    with openssl base, it ends up not respecting prefix anymore.
    
    Thanksfully the configure script allows to define a target directory.
    
    PR:     266051
---
 security/openssl_tpm_engine/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/security/openssl_tpm_engine/Makefile b/security/openssl_tpm_engine/Makefile
index d4c4dfcee604..481982b19e20 100644
--- a/security/openssl_tpm_engine/Makefile
+++ b/security/openssl_tpm_engine/Makefile
@@ -19,7 +19,8 @@ USE_LDCONFIG=	yes
 
 GH_ACCOUNT=	mgerstner
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--with-openssl="${OPENSSLBASE}"
+CONFIGURE_ARGS=	--with-openssl="${OPENSSLBASE}" \
+		--with-enginedir="${PREFIX}/lib/openssl/engines"
 SUB_FILES=	pkg-message
 PLIST_FILES=	bin/create_tpm_key
 INSTALL_TARGET=	install-strip