Files
main/science/mathematics/fftw3/actions.py
T
2018-08-03 12:31:24 +03:00

95 lines
3.3 KiB
Python

#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
WorkDir="fftw-%s" % get.srcVERSION()
def setup():
autotools.autoreconf("-fi")
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-quad" % get.srcVERSION())
autotools.configure("--enable-sse \
--enable-shared \
--disable-static \
--disable-dependency-tracking \
--enable-threads \
--enable-fortran \
--enable-single")
shelltools.cd("../fftw-%s-quad" % get.srcVERSION())
autotools.configure("--enable-quad-precision \
--enable-shared \
--disable-static \
--disable-dependency-tracking \
--enable-fortran \
--enable-threads")
# The only difference here is that there is no --enable-float
shelltools.cd("../fftw-%s-double" % get.srcVERSION())
autotools.configure("--enable-sse2 \
--enable-shared \
--disable-static \
--enable-fortran \
--disable-dependency-tracking \
--enable-threads")
# The only difference here is --enable-long-double
shelltools.cd("../fftw-%s-long-double" % get.srcVERSION())
autotools.configure("--enable-shared \
--disable-static \
--disable-dependency-tracking \
--enable-threads \
--enable-fortran \
--enable-long-double")
#def check():
#autotools.make("check")
#shelltools.cd("../fftw-%s-double" % get.srcVERSION())
#autotools.make("check")
#shelltools.cd("../fftw-%s-long-double" % get.srcVERSION())
#autotools.make("check")
#shelltools.cd("../fftw-%s-quad" % get.srcVERSION())
#autotools.make("check")
def build():
autotools.make()
shelltools.cd("../fftw-%s-double" % get.srcVERSION())
autotools.make()
shelltools.cd("../fftw-%s-long-double" % get.srcVERSION())
autotools.make()
shelltools.cd("../fftw-%s-quad" % get.srcVERSION())
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
shelltools.cd("../fftw-%s-double" % get.srcVERSION())
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
shelltools.cd("../fftw-%s-long-double" % get.srcVERSION())
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
shelltools.cd("../fftw-%s-quad" % get.srcVERSION())
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
shelltools.cd("../fftw-%s" % get.srcVERSION())
pisitools.dohtml("doc/html/*")
pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "NEWS", "README", "TODO", "CONVENTIONS")