fftw3 fix deps

This commit is contained in:
Ertuğrul Erata
2015-07-07 01:05:38 +03:00
parent 69842c3994
commit 7aa7384549
4 changed files with 185 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
<PISI>
<Name>science.mathematics</Name>
</PISI>
+94
View File
@@ -0,0 +1,94 @@
#!/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")
+73
View File
@@ -0,0 +1,73 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>fftw3</Name>
<Homepage>http://www.fftw.org</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<IsA>library</IsA>
<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>
<Archive sha1sum="fd508bac8ac13b3a46152c54b7ac885b69734262" type="targz">http://www.fftw.org/fftw-3.3.4.tar.gz</Archive>
<BuildDependencies>
<Dependency>libgfortran</Dependency>
<Dependency>libquadmath</Dependency>
<Dependency>gettext</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>fftw3</Name>
<RuntimeDependencies>
<Dependency>libquadmath</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="info">/usr/share/info</Path>
</Files>
</Package>
<Package>
<Name>fftw3-devel</Name>
<Summary>Development files for fftw3</Summary>
<RuntimeDependencies>
<Dependency release="current">fftw3</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="data">/usr/lib/pkgconfig</Path>
<Path fileType="header">/usr/include</Path>
<Path fileType="doc">/usr/share/doc/fftw3/html</Path>
</Files>
</Package>
<History>
<Update release="3">
<Date>2014-05-25</Date>
<Version>3.3.4</Version>
<Comment>Version bump.</Comment>
<Name>Alihan Öztürk</Name>
<Email>alihan@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2014-01-24</Date>
<Version>3.3.3</Version>
<Comment>Rebuild</Comment>
<Name>Stefan Gronewold(groni)</Name>
<Email>groni@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2013-01-07</Date>
<Version>3.3.3</Version>
<Comment>First release</Comment>
<Name>Erdinç Gültekin</Name>
<Email>admins@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,15 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>fftw3</Name>
<Summary xml:lang="tr">Ayrık Fourier dönüşümü hesaplamak için bir kütüphane</Summary>
<Description xml:lang="tr">fftw3, ayrık Fourier dönüşümü hesaplamak için kullanılabilecek bir C kütüphanesidir.</Description>
<Description xml:lang="fr">FFTW v3 est une librairie sous-routine C pour le calcul discret de transformation de Fourier (DFT) dans une ou plusieurs dimensions, pour une entrée de taille arbitraire, aussi bien pour des données réeles ou complexes (ainsi que les données paires/impaires, i.e. la transformation discrète cosinus/sinus ou DCT/DST).</Description>
<Description xml:lang="es">FFTW v3 es una librería con subrutinas C para computar la transformación Fourier discreta (DFT) en una o más dimensiones, con longitud de entrada arbitraria, para datos reales y complejos (y también de datos par/impar, i.e. transformación discreta coseno/seno DCT/DST).</Description>
</Source>
<Package>
<Name>fftw3-devel</Name>
<Summary xml:lang="tr">fftw3 için geliştirme dosyaları</Summary>
</Package>
</PISI>