aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2023-06-17 22:12:56 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2023-06-17 22:14:23 +0000
commit5e0e92cbca373cdfdb5defbb612402bde1b33f14 (patch)
treef82bb74cdf2f2cbddc6092ae2af20fb7bd3a646e
parentb9feb3d11e434f0411627b0117a3f6f2bbaf8327 (diff)
downloadports-5e0e92cbca373cdfdb5defbb612402bde1b33f14.tar.gz
ports-5e0e92cbca373cdfdb5defbb612402bde1b33f14.zip
math/fftw3-float: check for MACHINE_CPU on powerpc*
MACHINE_CPU for powerpc * has been added recently to bsd.cpu.mk. To provide compatibility with older FreeBSD, leave the check for powerpc64*.
-rw-r--r--math/fftw3/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/math/fftw3/Makefile b/math/fftw3/Makefile
index b2e9e1c4207c..e3065aeb5488 100644
--- a/math/fftw3/Makefile
+++ b/math/fftw3/Makefile
@@ -1,6 +1,6 @@
PORTNAME= fftw3
DISTVERSION= 3.3.10
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= math
MASTER_SITES= http://www.fftw.org/ \
ftp://ftp.fftw.org/pub/fftw/
@@ -99,7 +99,7 @@ CONFIGURE_ARGS+=--enable-avx2 --enable-fma
. if !empty(MACHINE_CPU:Msse)
CONFIGURE_ARGS+=--enable-sse2
. endif
-. if !empty(ARCH:Mpowerpc64*)
+. if !empty(MACHINE_CPU:Maltivec) || !empty(ARCH:Mpowerpc64*)
CONFIGURE_ARGS+=--enable-altivec
. endif
. if ${ARCH} == "aarch64"