aboutsummaryrefslogtreecommitdiff
blob: d44f96acf576cfb1bdd2a36f5f079c9b69a4bf6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4

inherit autotools eutils

DESCRIPTION="Parallel 3d FFT"
HOMEPAGE="http://www-user.tu-chemnitz.de/~mpip/software.php"
SRC_URI="http://www-user.tu-chemnitz.de/~mpip/software/${P//_}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="static-libs"

RDEPEND="
	=sci-libs/fftw-3.3*[mpi]
	virtual/mpi"
DEPEND="${RDEPEND}"

S="${WORKDIR}/${P//_}"

src_prepare() {
	local i
	for i in Makefile.am configure.ac libpfft.pc.in; do
		cp "${FILESDIR}"/"${PF//_}"-"${i}" "${i}" || die "cp of ${i} failed"
	done

	eautoreconf
}

src_configure() {
	econf --disable-la-files "$(use_enable static-libs static)"
}