git: 1a1f2fbd6cce - main - math/fftw3: fix altivec check

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Sun, 31 Oct 2021 11:17:37 UTC
The branch main has been updated by pkubaj:

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

commit 1a1f2fbd6ccefa2eb32a6966b0ec5c7ab4283985
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-10-31 11:13:07 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-10-31 11:13:07 +0000

    math/fftw3: fix altivec check
    
    MACHINE_CPU is actually empty on powerpc* so just enable altivec on powerpc64*,
    which should have altivec anyway.
---
 math/fftw3/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/math/fftw3/Makefile b/math/fftw3/Makefile
index 5c1f93409379..74e7e520b405 100644
--- a/math/fftw3/Makefile
+++ b/math/fftw3/Makefile
@@ -94,7 +94,7 @@ CONFIGURE_ARGS+=--enable-avx2 --enable-fma
 .    if !empty(MACHINE_CPU:Msse)
 CONFIGURE_ARGS+=--enable-sse2
 .    endif
-.    if !empty(ARCH:Mpowerpc*) && !empty(MACHINE_CPU:Maltivec)
+.    if !empty(ARCH:Mpowerpc64*)
 CONFIGURE_ARGS+=--enable-altivec
 .    endif
 .    if ${ARCH} == "aarch64"