blob: 5b01464f0ed126b37e9855599be0d8bd53a92ad9 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/itpp/itpp-3.10.12.ebuild,v 1.8 2008/02/21 15:52:00 markusle Exp $
inherit fortran
DESCRIPTION="C++ library of mathematical, signal/speech processing, and communications classes and functions"
LICENSE="GPL-2"
HOMEPAGE="http://itpp.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
SLOT="0"
KEYWORDS="amd64 ppc ppc64 sparc x86"
IUSE="blas cblas debug doc fftw lapack"
DEPEND="fftw? ( || ( >=sci-libs/fftw-3.0.0
>=sci-libs/acml-2.5.3 ) )
blas? ( virtual/blas
cblas? ( || ( >=sci-libs/gsl-1.4
>=sci-libs/acml-2.5.3
>=sci-libs/mkl-8.1
>=sci-libs/blas-atlas-3.6.0
sci-libs/cblas-reference ) )
lapack? ( virtual/lapack ) )
doc? ( app-doc/doxygen
virtual/tetex )"
pkg_setup() {
# lapack/cblas can only be used in conjunction with blas
if use cblas && ! use blas; then
die "USE=cblas requires USE=blas to be set"
fi
if use lapack && ! use blas; then
die "USE=lapack requires USE=blas to be set"
fi
}
src_compile() {
local myconf
if use blas; then
myconf="--with-blas=-lblas"
else
myconf="--without-blas"
fi
econf $(use_enable doc html-doc) \
$(use_enable debug) \
$(use_with cblas) \
$(use_with lapack) \
$(use_with fftw fft) \
"$myconf" \
|| die "econf failed"
emake || die "emake failed"
}
src_install() {
make install DESTDIR="${D}" || die "make install failed"
dodoc AUTHORS ChangeLog* INSTALL NEWS* README || \
die "failed to install docs"
}
|