2013-02-22 10:11:11 +04:00
|
|
|
# Copyright 1999-2013 Gentoo Foundation
|
2011-11-09 11:33:19 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2013-02-22 10:11:11 +04:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/sci-libs/itpp/itpp-4.2-r1.ebuild,v 1.15 2013/02/21 21:30:40 jlec Exp $
|
2011-11-09 11:33:19 +04:00
|
|
|
|
|
|
|
EAPI=4
|
2011-12-18 19:30:13 +04:00
|
|
|
|
2012-07-16 10:49:19 +04:00
|
|
|
AUTOTOOLS_AUTORECONF=yes
|
|
|
|
|
2013-02-22 10:11:11 +04:00
|
|
|
inherit autotools-utils flag-o-matic toolchain-funcs
|
2011-11-09 11:33:19 +04:00
|
|
|
|
|
|
|
DESCRIPTION="C++ library of mathematical, signal processing and communication"
|
|
|
|
HOMEPAGE="http://itpp.sourceforge.net/"
|
|
|
|
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
|
|
|
|
|
|
|
|
SLOT="0"
|
2011-12-18 19:30:13 +04:00
|
|
|
LICENSE="GPL-3"
|
2012-03-09 18:05:22 +04:00
|
|
|
KEYWORDS="amd64 ppc ppc64 x86"
|
2011-11-09 11:33:19 +04:00
|
|
|
IUSE="blas debug doc fftw lapack minimal static-libs"
|
|
|
|
|
2011-12-18 19:30:13 +04:00
|
|
|
RDEPEND="
|
|
|
|
blas? ( virtual/blas lapack? ( virtual/lapack ) )
|
|
|
|
!minimal? ( fftw? ( >=sci-libs/fftw-3 ) )"
|
2011-11-09 11:33:19 +04:00
|
|
|
DEPEND="${RDEPEND}
|
2012-05-04 18:27:40 +04:00
|
|
|
blas? ( virtual/pkgconfig )
|
2011-12-18 19:30:13 +04:00
|
|
|
doc? ( app-doc/doxygen virtual/latex-base )
|
2012-05-04 18:27:40 +04:00
|
|
|
lapack? ( virtual/pkgconfig )"
|
2011-12-18 19:30:13 +04:00
|
|
|
|
|
|
|
PATCHES=(
|
|
|
|
"${FILESDIR}"/${PN}-4.0.7-fastica-fix-endless-loop.patch
|
2012-07-06 15:20:56 +04:00
|
|
|
"${FILESDIR}"/${P}-fastica-correct-dim.patch
|
|
|
|
"${FILESDIR}"/${P}-test-fftw.patch
|
2011-12-18 19:30:13 +04:00
|
|
|
)
|
2011-11-09 11:33:19 +04:00
|
|
|
|
|
|
|
src_prepare() {
|
2011-12-18 19:30:13 +04:00
|
|
|
# turn off performance critical debug code
|
2012-07-16 10:49:19 +04:00
|
|
|
use debug || append-cppflags -DNDEBUG
|
2011-12-18 19:30:13 +04:00
|
|
|
sed \
|
|
|
|
-e 's:-pipe::g' \
|
2012-07-06 15:20:56 +04:00
|
|
|
-e 's:-Werror::g' \
|
2011-12-18 19:30:13 +04:00
|
|
|
-i configure* || die
|
|
|
|
autotools-utils_src_prepare
|
2011-11-09 11:33:19 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
local blasconf="no"
|
2013-02-22 10:11:11 +04:00
|
|
|
use blas && blasconf="$($(tc-getPKG_CONFIG) --libs blas)"
|
2011-11-09 11:33:19 +04:00
|
|
|
local lapackconf="no"
|
2013-02-22 10:11:11 +04:00
|
|
|
use lapack && lapackconf="$($(tc-getPKG_CONFIG) --libs blas lapack)"
|
2011-12-18 19:30:13 +04:00
|
|
|
|
|
|
|
local myeconfargs=(
|
|
|
|
--docdir="${EPREFIX}/usr/share/doc/${PF}"
|
|
|
|
--enable-shared
|
|
|
|
$(use_enable doc html-doc)
|
|
|
|
$(use_enable debug)
|
|
|
|
$(use_enable !minimal comm)
|
|
|
|
$(use_enable !minimal fixed)
|
|
|
|
$(use_enable !minimal optim)
|
|
|
|
$(use_enable !minimal protocol)
|
|
|
|
$(use_enable !minimal signal)
|
|
|
|
$(use_enable !minimal srccode)
|
|
|
|
$(use_with fftw fft)
|
|
|
|
--with-blas="${blasconf}"
|
2011-11-09 11:33:19 +04:00
|
|
|
--with-lapack="${lapackconf}"
|
2011-12-18 19:30:13 +04:00
|
|
|
)
|
|
|
|
autotools-utils_src_configure
|
2011-11-09 11:33:19 +04:00
|
|
|
}
|