diff options
author | George Shapovalov <george@gentoo.org> | 2002-04-19 01:49:04 +0000 |
---|---|---|
committer | George Shapovalov <george@gentoo.org> | 2002-04-19 01:49:04 +0000 |
commit | 39e214bf4f4831e24309f0417e310505c51d5a8b (patch) | |
tree | 31d873c0f3abf13f94c123eb635bff46cc7296da /dev-libs/fftw | |
parent | fixed rsync for build systems & libpopt dependency (diff) | |
download | gentoo-2-39e214bf4f4831e24309f0417e310505c51d5a8b.tar.gz gentoo-2-39e214bf4f4831e24309f0417e310505c51d5a8b.tar.bz2 gentoo-2-39e214bf4f4831e24309f0417e310505c51d5a8b.zip |
Added fftw package - discrete fourier transform library, needed for gromacs (molecular
dynamic package)
Diffstat (limited to 'dev-libs/fftw')
-rw-r--r-- | dev-libs/fftw/fftw-2.1.3.ebuild | 83 | ||||
-rw-r--r-- | dev-libs/fftw/files/digest-fftw-2.1.3 | 1 |
2 files changed, 84 insertions, 0 deletions
diff --git a/dev-libs/fftw/fftw-2.1.3.ebuild b/dev-libs/fftw/fftw-2.1.3.ebuild new file mode 100644 index 000000000000..99fbc5209d3d --- /dev/null +++ b/dev-libs/fftw/fftw-2.1.3.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Maintainer: George Shapovalov <george@gentoo.org> +# /space/gentoo/cvsroot/gentoo-x86/skel.ebuild,v 1.4 2002/03/12 16:05:09 tod Exp + +S="${WORKDIR}/${P}" + +DESCRIPTION="C subroutine library for computing the Discrete Fourier Transform (DFT)" + +SRC_URI="http://www.fftw.org/${P}.tar.gz" +HOMEPAGE="http://www.fftw.org" + +DEPEND="mpi? ( >=lam-6.5.6 )" +#will just leave this as a dependency on mpi for now until I test if lam does not brake anything on uniproc systems. + +RDEPEND="${DEPEND}" + +src_unpack() { + #doc suggests installing single and double precision versions via separate compilations + #will do in two separate source trees + #since some sed'ing is done during the build (?if --enable-type-prefix is set?) + + unpack "${P}.tar.gz" + cd "${WORKDIR}" + mv ${P} ${P}-single + + unpack "${P}.tar.gz" + cd "${WORKDIR}" + mv ${P} ${P}-double + + cd "${S}" +} + + +src_compile() { + + #here I need (surprise) to increase optimization: + #--enable-i386-hacks requires -fomit-frame-pointer to work properly + export CFLAGS="${CFLAGS/-fomit-frame-pointer/} -fomit-frame-pointer" + + local myconf="" + use mpi && myconf="${myconf} --enable-mpi" + #mpi is not a valid flag yet. In this revision it is used merely to block --enable-mpi option + #it might be needed if it is decided that lam is an optional dependence + + cd "${S}-single" + ./configure \ + --host=${CHOST} ${myconf} \ + --prefix=/usr \ + --enable-shared --enable-threads \ + --enable-type-prefix --enable-float \ + --enable-i386-hacks --enable-vec-recurse \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man || die "./configure failed" + emake || die + + #the only difference here is no --enable-float + cd "${S}-double" + ./configure \ + --host=${CHOST} ${myconf} \ + --prefix=/usr \ + --enable-shared --enable-threads \ + --enable-type-prefix \ + --enable-i386-hacks --enable-vec-recurse \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man || die "./configure failed" + emake || die +} + +src_install () { + #both builds are installed in the same place + #libs are distinguished by preffix (s or d), see docs for details + cd "${S}-single" + make DESTDIR=${D} install || die + + cd "${S}-double" + make DESTDIR=${D} install || die + + # Install documentation. + cd "${S}-single" + dodoc AUTHORS ChangeLog COPYING INSTALL NEWS TODO + dohtml doc/fftw*.html +} diff --git a/dev-libs/fftw/files/digest-fftw-2.1.3 b/dev-libs/fftw/files/digest-fftw-2.1.3 new file mode 100644 index 000000000000..6490784c2df3 --- /dev/null +++ b/dev-libs/fftw/files/digest-fftw-2.1.3 @@ -0,0 +1 @@ +MD5 c6c51a4243f0f998ae4c9416108ebba0 fftw-2.1.3.tar.gz 1139406 |