summaryrefslogtreecommitdiff
path: root/math/fftw
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2021-05-15 10:19:33 +0000
committernia <nia@pkgsrc.org>2021-05-15 10:19:33 +0000
commit858f7e75a4c6f8d8eefe108daa2d3a08e8790a48 (patch)
tree501c4487bd12abf5f04cb70ba8ce5b3e6c4f4f92 /math/fftw
parent1f4df760b7abff35dfe1466532cf8c35ef3c1dfc (diff)
downloadpkgsrc-858f7e75a4c6f8d8eefe108daa2d3a08e8790a48.tar.gz
ughhhhh
Diffstat (limited to 'math/fftw')
-rw-r--r--math/fftw/Makefile7
-rw-r--r--math/fftw/buildlink3.mk4
2 files changed, 5 insertions, 6 deletions
diff --git a/math/fftw/Makefile b/math/fftw/Makefile
index 95d3b3ea48d..d2e7e4bdbf0 100644
--- a/math/fftw/Makefile
+++ b/math/fftw/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.69 2021/05/15 10:12:31 nia Exp $
+# $NetBSD: Makefile,v 1.70 2021/05/15 10:19:33 nia Exp $
DISTNAME= fftw-3.3.9
PKGREVISION= 5
@@ -50,7 +50,7 @@ MAKE_DIRS+= build/${p}
.endfor
# SIMD stuff needs some baseline.
-GCC_REQD+= 4.8
+GCC_REQD+= 4.9
# FFTW offers SIMD runtime detection, but wants explicit build options.
# These should be generic for all platforms. Compiler needs intrinsics
@@ -61,11 +61,8 @@ FFTW_DOUBLE_OPTS= --enable-generic-simd128 --enable-generic-simd256
.if ${MACHINE_ARCH} == "x86_64"
FFTW_FLOAT_OPTS+= --enable-sse --enable-sse2 --enable-avx
FFTW_DOUBLE_OPTS+= --enable-sse2 --enable-avx
-# From gcc-4.9 on, these should work trouble-free.
-. if empty(CC_VERSION:Mgcc-4.*) || !empty(CC_VERSION:Mgcc-4.9.*)
FFTW_FLOAT_OPTS+= --enable-avx2 --enable-avx512 --enable-avx-128-fma
FFTW_DOUBLE_OPTS+= --enable-avx2 --enable-avx512 --enable-avx-128-fma
-. endif
.endif
# TODO: Add the above for other architectures.
diff --git a/math/fftw/buildlink3.mk b/math/fftw/buildlink3.mk
index aaef405b17e..5dd45e17ba2 100644
--- a/math/fftw/buildlink3.mk
+++ b/math/fftw/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.9 2021/04/29 23:30:15 thor Exp $
+# $NetBSD: buildlink3.mk,v 1.10 2021/05/15 10:19:33 nia Exp $
BUILDLINK_TREE+= fftw
@@ -9,6 +9,8 @@ BUILDLINK_API_DEPENDS.fftw+= fftw>=3.0
BUILDLINK_ABI_DEPENDS.fftw+= fftw>=3.1nb1
BUILDLINK_PKGSRCDIR.fftw?= ../../math/fftw
+GCC_REQD+= 4.9
+
pkgbase := fftw
.include "../../mk/pkg-build-options.mk"
.if ${PKG_BUILD_OPTIONS.fftw:Mmpi}