fftw-3.3.10
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
from pisi.actionsapi import shelltools
|
from pisi.actionsapi import shelltools
|
||||||
from pisi.actionsapi import autotools
|
from pisi.actionsapi import autotools
|
||||||
from pisi.actionsapi import pisitools
|
from pisi.actionsapi import pisitools
|
||||||
|
from pisi.actionsapi import cmaketools
|
||||||
from pisi.actionsapi import get
|
from pisi.actionsapi import get
|
||||||
|
|
||||||
WorkDir="fftw-%s" % get.srcVERSION()
|
WorkDir="fftw-%s" % get.srcVERSION()
|
||||||
@@ -17,12 +18,14 @@ def setup():
|
|||||||
shelltools.copytree("../fftw-%s" % get.srcVERSION(), "../fftw-%s-double" % get.srcVERSION())
|
shelltools.copytree("../fftw-%s" % get.srcVERSION(), "../fftw-%s-double" % get.srcVERSION())
|
||||||
shelltools.copytree("../fftw-%s" % get.srcVERSION(), "../fftw-%s-long-double" % get.srcVERSION())
|
shelltools.copytree("../fftw-%s" % get.srcVERSION(), "../fftw-%s-long-double" % get.srcVERSION())
|
||||||
shelltools.copytree("../fftw-%s" % get.srcVERSION(), "../fftw-%s-quad" % get.srcVERSION())
|
shelltools.copytree("../fftw-%s" % get.srcVERSION(), "../fftw-%s-quad" % get.srcVERSION())
|
||||||
|
shelltools.copytree("../fftw-%s" % get.srcVERSION(), "../fftw-%s-cmake" % get.srcVERSION())
|
||||||
|
|
||||||
autotools.configure("--enable-sse \
|
autotools.configure("--enable-sse \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
--disable-static \
|
--disable-static \
|
||||||
--disable-dependency-tracking \
|
--disable-dependency-tracking \
|
||||||
--enable-threads \
|
--enable-threads \
|
||||||
|
--enable-mpi \
|
||||||
--enable-fortran \
|
--enable-fortran \
|
||||||
--enable-single")
|
--enable-single")
|
||||||
|
|
||||||
@@ -52,6 +55,22 @@ def setup():
|
|||||||
--enable-fortran \
|
--enable-fortran \
|
||||||
--enable-long-double")
|
--enable-long-double")
|
||||||
|
|
||||||
|
shelltools.cd("../fftw-%s-cmake" % get.srcVERSION())
|
||||||
|
shelltools.system("sed -e 's/3.6.9/3.6.10/' -i CMakeLists.txt")
|
||||||
|
cmaketools.configure("-B build \
|
||||||
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
||||||
|
-D CMAKE_BUILD_TYPE=None \
|
||||||
|
-D ENABLE_OPENMP=ON \
|
||||||
|
-D ENABLE_THREADS=ON \
|
||||||
|
-D ENABLE_FLOAT=ON \
|
||||||
|
-D ENABLE_LONG_DOUBLE=ON \
|
||||||
|
-D ENABLE_QUAD_PRECISION=ON \
|
||||||
|
")
|
||||||
|
# -D ENABLE_AVX2=ON \
|
||||||
|
# -D ENABLE_AVX=ON \
|
||||||
|
# -D ENABLE_SSE=ON \
|
||||||
|
# -D ENABLE_SSE2=ON \
|
||||||
|
|
||||||
#def check():
|
#def check():
|
||||||
#autotools.make("check")
|
#autotools.make("check")
|
||||||
|
|
||||||
@@ -76,7 +95,17 @@ def build():
|
|||||||
shelltools.cd("../fftw-%s-quad" % get.srcVERSION())
|
shelltools.cd("../fftw-%s-quad" % get.srcVERSION())
|
||||||
autotools.make()
|
autotools.make()
|
||||||
|
|
||||||
|
shelltools.cd("../fftw-%s-cmake" % get.srcVERSION())
|
||||||
|
shelltools.system("export F77='gfortran'")
|
||||||
|
shelltools.export("CFLAGS", " -O3 -fomit-frame-pointer -malign-double -fstrict-aliasing -ffast-math")
|
||||||
|
shelltools.cd("build")
|
||||||
|
cmaketools.make()
|
||||||
|
|
||||||
|
# shelltools.cd("../fftw-%s-cmake" % get.srcVERSION())
|
||||||
|
shelltools.system("""sed -e 's|\(IMPORTED_LOCATION_NONE\).*|\1 "/usr/lib/libfftw3.so.3"|' -i FFTW3LibraryDepends.cmake""")
|
||||||
|
|
||||||
def install():
|
def install():
|
||||||
|
# shelltools.cd("../fftw-%s" % get.srcVERSION())
|
||||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||||
|
|
||||||
shelltools.cd("../fftw-%s-double" % get.srcVERSION())
|
shelltools.cd("../fftw-%s-double" % get.srcVERSION())
|
||||||
@@ -90,5 +119,11 @@ def install():
|
|||||||
|
|
||||||
shelltools.cd("../fftw-%s" % get.srcVERSION())
|
shelltools.cd("../fftw-%s" % get.srcVERSION())
|
||||||
|
|
||||||
pisitools.dohtml("doc/html/*")
|
shelltools.cd("../fftw-%s-cmake" % get.srcVERSION())
|
||||||
|
shelltools.cd("build")
|
||||||
|
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||||
|
pisitools.insinto("/usr/lib/cmake/fftw3", "FFTW3LibraryDepends.cmake")
|
||||||
|
|
||||||
|
pisitools.dohtml("../doc/html/*")
|
||||||
|
shelltools.cd("..")
|
||||||
pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "NEWS", "README", "TODO", "CONVENTIONS")
|
pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "NEWS", "README", "TODO", "CONVENTIONS")
|
||||||
|
|||||||
@@ -12,11 +12,12 @@
|
|||||||
<IsA>library</IsA>
|
<IsA>library</IsA>
|
||||||
<Summary>A library for computing the discrete Fourier transform (DFT)</Summary>
|
<Summary>A library for computing the discrete Fourier transform (DFT)</Summary>
|
||||||
<Description>fftw3 is a C subroutine library for computing the discrete Fourier transform (DFT) in one or more dimensions, of arbitrary input size, and of both real and complex data (as well as of even/odd data, i.e. the discrete cosine/sine transforms or DCT/DST).</Description>
|
<Description>fftw3 is a C subroutine library for computing the discrete Fourier transform (DFT) in one or more dimensions, of arbitrary input size, and of both real and complex data (as well as of even/odd data, i.e. the discrete cosine/sine transforms or DCT/DST).</Description>
|
||||||
<Archive sha1sum="59831bd4b2705381ee395e54aa6e0069b10c3626" type="targz">ftp://ftp.fftw.org/pub/fftw/fftw-3.3.8.tar.gz</Archive>
|
<Archive sha1sum="6abe7321c8c35ef52e56e299e66a9b967baf148a" type="targz">ftp://ftp.fftw.org/pub/fftw/fftw-3.3.10.tar.gz</Archive>
|
||||||
<BuildDependencies>
|
<BuildDependencies>
|
||||||
|
<Dependency>cmake</Dependency>
|
||||||
<Dependency>libgfortran</Dependency>
|
<Dependency>libgfortran</Dependency>
|
||||||
<Dependency>libquadmath</Dependency>
|
<Dependency>libquadmath</Dependency>
|
||||||
<Dependency>gettext</Dependency>
|
<Dependency>openmpi-devel</Dependency>
|
||||||
</BuildDependencies>
|
</BuildDependencies>
|
||||||
</Source>
|
</Source>
|
||||||
|
|
||||||
@@ -48,6 +49,13 @@
|
|||||||
</Package>
|
</Package>
|
||||||
|
|
||||||
<History>
|
<History>
|
||||||
|
<Update release="6">
|
||||||
|
<Date>2023-11-02</Date>
|
||||||
|
<Version>3.3.10</Version>
|
||||||
|
<Comment>Version bump.</Comment>
|
||||||
|
<Name>Mustafa Cinasal</Name>
|
||||||
|
<Email>muscnsl@gmail.com</Email>
|
||||||
|
</Update>
|
||||||
<Update release="5">
|
<Update release="5">
|
||||||
<Date>2020-01-12</Date>
|
<Date>2020-01-12</Date>
|
||||||
<Version>3.3.8</Version>
|
<Version>3.3.8</Version>
|
||||||
|
|||||||
Reference in New Issue
Block a user