git: aa317719dce6 - main - security/botan3: fix build on powerpc64

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Mon, 03 Jun 2024 15:12:35 UTC
The branch main has been updated by pkubaj:

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

commit aa317719dce6823865184565afe1d0540fe43036
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-06-03 06:32:01 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-06-03 15:11:59 +0000

    security/botan3: fix build on powerpc64
    
    In file included from src/lib/block/aes/aes_power8/aes_power8.cpp:16:
    /usr/lib/clang/18/include/altivec.h:17365:10: error: '__builtin_altivec_crypto_vcipher' needs target feature power8-vector
     17365 |   return __builtin_altivec_crypto_vcipher(__a, __b);
---
 security/botan3/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/security/botan3/Makefile b/security/botan3/Makefile
index 645b97f019a2..1580c5aafdb1 100644
--- a/security/botan3/Makefile
+++ b/security/botan3/Makefile
@@ -68,6 +68,9 @@ SQLITE3_CONFIGURE_WITH=	sqlite3
 CONFIGURE_ARGS+=	--cc-abi="-march=armv8-a+crypto"
 .elif ${ARCH:Mpowerpc64*}
 CONFIGURE_ARGS+=	--cpu="ppc64"
+.if !defined(MACHINE_CPU) || (defined(MACHINE_CPU) && !${MACHINE_ABI:Mvsx2})
+CONFIGURE_ARGS+=	--disable-powercrypto
+.endif
 .endif
 
 .if ${ARCH} == i386 || ${ARCH} == amd64