git: 208fb31e968e - main - security/openssl31-quictls: correctly detect architecture on powerpc64* / riscv64

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Wed, 24 Apr 2024 21:21:48 UTC
The branch main has been updated by pkubaj:

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

commit 208fb31e968ef9f85102dcee9ce9c4679a95c403
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-04-20 20:09:11 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-04-24 21:21:15 +0000

    security/openssl31-quictls: correctly detect architecture on powerpc64* / riscv64
---
 security/openssl31-quictls/Makefile | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/security/openssl31-quictls/Makefile b/security/openssl31-quictls/Makefile
index 4f829d9afa6e..0952ba0f9da9 100644
--- a/security/openssl31-quictls/Makefile
+++ b/security/openssl31-quictls/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	openssl
 DISTVERSIONPREFIX=	${PORTNAME}-
 DISTVERSION=	3.1.5
-PORTREVISION=	2
+PORTREVISION=	3
 DISTVERSIONSUFFIX=	-quic1
 CATEGORIES=	security devel
 PKGNAMESUFFIX=	31-quictls
@@ -141,6 +141,16 @@ SHLIBS=			lib/engines-${OPENSSL_SHLIBVER}/loader_attic.so
 
 PORTSCOUT=		limit=^3\.1\.
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc64
+CONFIGURE_ARGS+=	BSD-ppc64
+.elif ${ARCH} == powerpc64le
+CONFIGURE_ARGS+=	BSD-ppc64le
+.elif ${ARCH} == riscv64
+CONFIGURE_ARGS+=	BSD-riscv64
+.endif
+
 .include <bsd.port.pre.mk>
 .if ${PREFIX} == /usr
 IGNORE=	the OpenSSL port can not be installed over the base version