[Midnightbsd-cvs] mports [24841] trunk/math/fftw3: fftw 3.3.8
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Fri Feb 1 21:39:33 EST 2019
Revision: 24841
http://svnweb.midnightbsd.org/mports/?rev=24841
Author: laffer1
Date: 2019-02-01 21:39:32 -0500 (Fri, 01 Feb 2019)
Log Message:
-----------
fftw 3.3.8
Modified Paths:
--------------
trunk/math/fftw3/Makefile
trunk/math/fftw3/distinfo
trunk/math/fftw3/pkg-descr
trunk/math/fftw3/pkg-plist
Added Paths:
-----------
trunk/math/fftw3/files/
trunk/math/fftw3/files/extrapatch-tests_fftw-bench.c
trunk/math/fftw3/files/patch-configure
Modified: trunk/math/fftw3/Makefile
===================================================================
--- trunk/math/fftw3/Makefile 2019-02-02 02:31:50 UTC (rev 24840)
+++ trunk/math/fftw3/Makefile 2019-02-02 02:39:32 UTC (rev 24841)
@@ -1,13 +1,13 @@
# $MidnightBSD$
PORTNAME= fftw3
-PORTVERSION= 3.3.3
-PORTREVISION?= 1
+DISTVERSION= 3.3.8
+PORTREVISION?= 0
CATEGORIES= math
MASTER_SITES= http://www.fftw.org/ \
ftp://ftp.fftw.org/pub/fftw/
PKGNAMESUFFIX= ${FFTW3_PKGNAMESUFFIX}
-DISTNAME= fftw-${PORTVERSION}
+DISTNAME= fftw-${DISTVERSION}
MAINTAINER= ports at MidnightBSD.org
COMMENT?= Fast C routines to compute the Discrete Fourier Transform
@@ -20,11 +20,14 @@
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
-USES= libtool pathfix perl5 pkgconfig
+TEST_TARGET= smallcheck #bigcheck check exhaustive-check paranoid-check
+TEST_WRKSRC= ${WRKSRC}/tests
+USES= gmake libtool makeinfo pathfix perl5 pkgconfig
USE_PERL5= build
USE_LDCONFIG= yes
-CONFIGURE_ARGS= --enable-shared --enable-threads --disable-fortran
+CONFIGURE_ARGS= --enable-shared --enable-threads --disable-fortran
+MPIDIR?= ${LOCALBASE}/mpi/openmpi
.if ${FFTW3_FLAVOR} == "default"
INFO= fftw3
@@ -31,46 +34,63 @@
.else
#For non-default flavors, build and install the flavor-dependent components
#only, so that these flavors may coexist with the default flavor
-INSTALL_TARGET= install-pkgconfigDATA install-libLTLIBRARIES install-exec
+INSTALL_TARGET= install-cmakeDATA install-pkgconfigDATA install-libLTLIBRARIES install-exec
.endif
-OPTIONS_DEFINE= G77_WRAPPERS OPENMP OPTIMIZED_CFLAGS
+OPTIONS_DEFINE= G77_WRAPPERS OPENMP OPENMPI OPTIMIZED_CFLAGS SIMD
+OPTIONS_DEFAULT= OPTIMIZED_CFLAGS SIMD
+.if ${FFTW3_FLAVOR} == "quad"
+OPTIONS_EXCLUDE+= OPENMPI
+.endif
+OPTIONS_SUB= yes
-G77_WRAPPERS_DESC= Alter Fortran wrappers for use with g77
-OPENMP_DESC= Build OpenMP multithreaded libraries
+G77_WRAPPERS_DESC= Alter Fortran wrappers for use with g77
-OPTIONS_DEFAULT= OPTIMIZED_CFLAGS
+OPENMP_DESC= Build OpenMP multithreaded libraries
+OPENMP_USES= compiler:openmp
+OPENMP_USES_OFF= compiler:env
+OPENMP_CONFIGURE_ENABLE= openmp
+OPENMP_EXTRA_PATCHES= ${FILESDIR}/extrapatch-tests_fftw-bench.c
+OPENMPI_DESC= Build OpenMPI parallel libraries
+OPENMPI_LIB_DEPENDS= libmpi.so:net/openmpi
+OPENMPI_CONFIGURE_ENABLE= mpi
+OPENMPI_CONFIGURE_ENV= MPICC=${MPIDIR}/bin/mpicc \
+ MPIRUN=${MPIDIR}/bin/mpirun
+
.include <bsd.mport.options.mk>
-.if ${PORT_OPTIONS:MOPENMP}
-CONFIGURE_ARGS+= --enable-openmp
-PLIST_SUB+= OPENMP=""
-USES+= compiler:openmp
-.else
-CONFIGURE_ARGS+= --disable-openmp
-PLIST_SUB+= OPENMP="@comment "
-USES+= compiler:env
-.endif
-
#Users must add altivec to MACHINE_CPU when desired:
#this is not currently done in bsd.cpu.mk
.if ${FFTW3_FLAVOR} == "default"
-. if !empty(MACHINE_CPU:Mavx)
+. if ${PORT_OPTIONS:MSIMD}
+. if !empty(MACHINE_CPU:Mavx)
CONFIGURE_ARGS+=--enable-avx
-. elif !empty(MACHINE_CPU:Msse2)
+. endif
+. if !empty(MACHINE_CPU:Mavx2)
+CONFIGURE_ARGS+=--enable-avx2 --enable-fma
+. endif
+. if !empty(MACHINE_CPU:Msse2)
CONFIGURE_ARGS+=--enable-sse2
+. endif
. endif
.elif ${FFTW3_FLAVOR} == "float"
FFTW3_SUFX= f
FFTW3_PKGNAMESUFFIX= -float
CONFIGURE_ARGS+=--enable-float
-. if !empty(MACHINE_CPU:Mavx)
+. if ${PORT_OPTIONS:MSIMD}
+. if !empty(MACHINE_CPU:Mavx)
CONFIGURE_ARGS+=--enable-avx
-. elif !empty(MACHINE_CPU:Msse)
-CONFIGURE_ARGS+=--enable-sse
-. elif !empty(ARCH:Mpowerpc*) && !empty(MACHINE_CPU:Maltivec)
+. endif
+. if !empty(MACHINE_CPU:Mavx2)
+CONFIGURE_ARGS+=--enable-avx2 --enable-fma
+. endif
+. if !empty(MACHINE_CPU:Msse)
+CONFIGURE_ARGS+=--enable-sse2
+. endif
+. if !empty(ARCH:Mpowerpc*) && !empty(MACHINE_CPU:Maltivec)
CONFIGURE_ARGS+=--enable-altivec
+. endif
. endif
.elif ${FFTW3_FLAVOR} == "long"
FFTW3_SUFX= l
@@ -80,6 +100,7 @@
FFTW3_SUFX= q
FFTW3_PKGNAMESUFFIX= -quad
CONFIGURE_ARGS+=--enable-quad-precision
+ONLY_FOR_ARCHS= i386 amd64
USE_GCC= yes
.endif
@@ -94,11 +115,11 @@
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
-CFLAGS+= -O3 -ffast-math -fstrict-aliasing
+CFLAGS+= -O3 -fstrict-aliasing
. if !defined(WITH_DEBUG)
CFLAGS+= -fomit-frame-pointer
. endif
-. if ${ARCH} == "i386" && (${COMPILER_TYPE} == "gcc" || !empty(USE_GCC))
+. if ${ARCH} == "i386" && (${COMPILER_TYPE} == "gcc" || !empty(USE_GCC)) && !${PORT_OPTIONS:MOPENMPI}
CFLAGS+= -malign-double
. endif
WITHOUT_NO_STRICT_ALIASING= yes
@@ -116,7 +137,6 @@
/[^\]$$/s/[^[:blank:]]*fftw-wisdom-to-conf[^[:blank:]]*//' \
${WRKSRC}/tools/Makefile.in
.endif
- @${FIND} ${WRKSRC} -type f \( -name \*.bak -or -name \*.orig \) -delete
post-configure:
#After issuing --disable-fortran in order to avoid using a Fortran compiler
@@ -126,21 +146,14 @@
@${ECHO_CMD} "#define F77_FUNC(name,NAME) name ## _" >> ${WRKSRC}/config.h
@${ECHO_CMD} "#define F77_FUNC_(name,NAME) name ## _" >> ${WRKSRC}/config.h
@${ECHO_CMD} "#define F77_FUNC_EQUIV 1" >> ${WRKSRC}/config.h
-.if ${PORT_OPTIONS:MG77_WRAPPERS}
+
+post-configure-G77_WRAPPERS-on:
@${ECHO_CMD} "#define WITH_G77_WRAPPERS 1" >> ${WRKSRC}/config.h
-.endif
.if ${FFTW3_FLAVOR} != "default"
post-install:
- @${INSTALL_MAN} ${WRKSRC}/tools/fftw${FFTW3_SUFX}-wisdom.1 ${PREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/tools/fftw${FFTW3_SUFX}-wisdom.1 ${STAGEDIR}${PREFIX}/man/man1
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib*.so
.endif
-regression-test test: smallcheck
-
-.for t in bigcheck check exhaustive-check paranoid-check smallcheck
-${t}: build
- @(cd ${WRKSRC}/tests && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \
- ${MAKE_ARGS} ${t})
-.endfor
-
.include <bsd.port.post.mk>
Modified: trunk/math/fftw3/distinfo
===================================================================
--- trunk/math/fftw3/distinfo 2019-02-02 02:31:50 UTC (rev 24840)
+++ trunk/math/fftw3/distinfo 2019-02-02 02:39:32 UTC (rev 24841)
@@ -1,2 +1,3 @@
-SHA256 (fftw-3.3.3.tar.gz) = 85cdfc0a0ba10d8fa4f0f8e733aac1a5936c859832a9e3d5c0731fb5c54a97f3
-SIZE (fftw-3.3.3.tar.gz) = 3920661
+TIMESTAMP = 1532686553
+SHA256 (fftw-3.3.8.tar.gz) = 6113262f6e92c5bd474f2875fa1b01054c4ad5040f6b0da7c03c98821d9ae303
+SIZE (fftw-3.3.8.tar.gz) = 4110137
Added: trunk/math/fftw3/files/extrapatch-tests_fftw-bench.c
===================================================================
--- trunk/math/fftw3/files/extrapatch-tests_fftw-bench.c (rev 0)
+++ trunk/math/fftw3/files/extrapatch-tests_fftw-bench.c 2019-02-02 02:39:32 UTC (rev 24841)
@@ -0,0 +1,11 @@
+Fix regression tests when OPENMP option is enabled.
+--- tests/fftw-bench.c.orig 2016-10-25 22:27:48 UTC
++++ tests/fftw-bench.c
+@@ -110,7 +110,6 @@ void rdwisdom(void)
+ if (threads_ok) {
+ BENCH_ASSERT(FFTW(init_threads)());
+ FFTW(plan_with_nthreads)(nthreads);
+- FFTW(make_planner_thread_safe)();
+ #ifdef _OPENMP
+ omp_set_num_threads(nthreads);
+ #endif
Property changes on: trunk/math/fftw3/files/extrapatch-tests_fftw-bench.c
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/math/fftw3/files/patch-configure
===================================================================
--- trunk/math/fftw3/files/patch-configure (rev 0)
+++ trunk/math/fftw3/files/patch-configure 2019-02-02 02:39:32 UTC (rev 24841)
@@ -0,0 +1,11 @@
+--- configure.orig 2016-07-30 20:34:50 UTC
++++ configure
+@@ -14397,7 +14397,7 @@ fi
+ esac
+
+ case "${ax_cv_c_compiler_vendor}" in
+- gnu|intel)
++ gnu|intel|clang)
+ # SSE/SSE2
+ if test "$have_sse2" = "yes" -a "x$SSE2_CFLAGS" = x; then
+ if test "$PRECISION" = d; then flag=msse2; else flag=msse; fi
Property changes on: trunk/math/fftw3/files/patch-configure
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Modified: trunk/math/fftw3/pkg-descr
===================================================================
--- trunk/math/fftw3/pkg-descr 2019-02-02 02:31:50 UTC (rev 24840)
+++ trunk/math/fftw3/pkg-descr 2019-02-02 02:39:32 UTC (rev 24841)
@@ -9,7 +9,7 @@
The FFTW package was developed at MIT by Matteo Frigo and Steven G.
Johnson. Please send email to fftw at theory.lcs.mit.edu so that we can keep
-track of users and send you information about new releases. The latest
+track of users and send you information about new releases. The latest
version of FFTW, benchmarks, links, and other information can be found at
the FFTW home page.
Modified: trunk/math/fftw3/pkg-plist
===================================================================
--- trunk/math/fftw3/pkg-plist 2019-02-02 02:31:50 UTC (rev 24840)
+++ trunk/math/fftw3/pkg-plist 2019-02-02 02:39:32 UTC (rev 24841)
@@ -1,22 +1,31 @@
bin/fftw%%FFTW3_SUFX%%-wisdom
%%DEF%%bin/fftw-wisdom-to-conf
+%%DEF%%%%OPENMPI%%include/fftw3-mpi.f03
+%%DEF%%%%OPENMPI%%include/fftw3-mpi.h
%%DEF%%include/fftw3.f
%%DEF%%include/fftw3.f03
%%DEF%%include/fftw3.h
+%%DEF%%%%OPENMPI%%include/fftw3l-mpi.f03
%%DEF%%include/fftw3l.f03
%%DEF%%include/fftw3q.f03
+lib/cmake/fftw3/FFTW3%%FFTW3_SUFX%%Config.cmake
+lib/cmake/fftw3/FFTW3%%FFTW3_SUFX%%ConfigVersion.cmake
lib/libfftw3%%FFTW3_SUFX%%.a
lib/libfftw3%%FFTW3_SUFX%%.so
lib/libfftw3%%FFTW3_SUFX%%.so.3
-lib/libfftw3%%FFTW3_SUFX%%.so.3.3.2
+lib/libfftw3%%FFTW3_SUFX%%.so.3.5.8
+%%OPENMPI%%lib/libfftw3%%FFTW3_SUFX%%_mpi.a
+%%OPENMPI%%lib/libfftw3%%FFTW3_SUFX%%_mpi.so
+%%OPENMPI%%lib/libfftw3%%FFTW3_SUFX%%_mpi.so.3
+%%OPENMPI%%lib/libfftw3%%FFTW3_SUFX%%_mpi.so.3.5.8
%%OPENMP%%lib/libfftw3%%FFTW3_SUFX%%_omp.a
%%OPENMP%%lib/libfftw3%%FFTW3_SUFX%%_omp.so
%%OPENMP%%lib/libfftw3%%FFTW3_SUFX%%_omp.so.3
-%%OPENMP%%lib/libfftw3%%FFTW3_SUFX%%_omp.so.3.3.2
+%%OPENMP%%lib/libfftw3%%FFTW3_SUFX%%_omp.so.3.5.8
lib/libfftw3%%FFTW3_SUFX%%_threads.a
lib/libfftw3%%FFTW3_SUFX%%_threads.so
lib/libfftw3%%FFTW3_SUFX%%_threads.so.3
-lib/libfftw3%%FFTW3_SUFX%%_threads.so.3.3.2
+lib/libfftw3%%FFTW3_SUFX%%_threads.so.3.5.8
libdata/pkgconfig/fftw3%%FFTW3_SUFX%%.pc
%%DEF%%man/man1/fftw-wisdom.1.gz
%%DEF%%man/man1/fftw-wisdom-to-conf.1.gz
More information about the Midnightbsd-cvs
mailing list