blob: 58f0a3d46a1a231a78a9b20b60208ba1b6369f96 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils
DESCRIPTION="Levenberg-Marquardt nonlinear least squares algorithms ANSI C implementation"
HOMEPAGE="http://www.ics.forth.gr/~lourakis/levmar/"
SRC_URI="http://www.ics.forth.gr/~lourakis/${PN}/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=">=dev-lang/f2c-20060507
>=virtual/blas-1.0
>=virtual/lapack-3.1"
RDEPEND="${DEPEND}"
MIN_CMAKE="dev-util/cmake-1.4"
src_prepare() {
epatch "${FILESDIR}"/${PV}-f2c_main.patch "${FILESDIR}"/${PV}-cmake.patch
}
src_compile() {
if has_version ">=${MIN_CMAKE}"
then
cmake . || die "cmake failed"
fi
emake || die "make failed"
}
src_install() {
local my_include_dir=/usr/include/${PN}
insinto ${my_include_dir}
doins *.h
dolib liblevmar.a
}
|