1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- #!/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-pl1" % get.srcVERSION()
- def setup():
- autotools.autoreconf("-fi")
- shelltools.copytree("../fftw-%s-pl1" % get.srcVERSION(), "../fftw-%s-double" % get.srcVERSION())
- shelltools.copytree("../fftw-%s-pl1" % get.srcVERSION(), "../fftw-%s-long-double" % get.srcVERSION())
- shelltools.copytree("../fftw-%s-pl1" % 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-pl1" % get.srcVERSION())
- pisitools.dohtml("doc/html/*")
- pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "NEWS", "README", "TODO", "CONVENTIONS")
|