/[gentoo-x86]/sci-libs/levmar/levmar-2.6.ebuild
Gentoo

Contents of /sci-libs/levmar/levmar-2.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Aug 7 16:55:20 2014 UTC (5 years, 11 months ago) by amynka
Branch: MAIN
CVS Tags: HEAD
Initial commit. Package will be used by meshlab

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 34E69781)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=5
6
7 inherit cmake-utils eutils toolchain-funcs
8
9 DESCRIPTION="Levenberg-Marquardt nonlinear least squares C library"
10 HOMEPAGE="http://www.ics.forth.gr/~lourakis/levmar/"
11 SRC_URI="${HOMEPAGE}/${P}.tgz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
16 IUSE="test"
17
18 RDEPEND="
19 virtual/blas
20 virtual/lapack"
21 DEPEND="${RDEPEND}
22 virtual/pkgconfig"
23
24 PATCHES=(
25 "${FILESDIR}"/${P}-shared.patch
26 "${FILESDIR}"/${P}-demo-underlinking.patch
27 )
28
29 src_configure() {
30 local mycmakeargs+=(
31 -DNEED_F2C=OFF
32 -DHAVE_LAPACK=ON
33 -DLAPACKBLAS_LIB_NAMES="$($(tc-getPKG_CONFIG) --libs blas lapack)"
34 $(cmake-utils_use test BUILD_DEMO)
35 )
36 cmake-utils_src_configure
37 }
38
39 src_test() {
40 cd ${CMAKE_BUILD_DIR}
41 ./lmdemo || die
42 }
43
44 src_install() {
45 dolib.so ${CMAKE_BUILD_DIR}/liblevmar.so
46 insinto /usr/include
47 doins levmar.h
48 }

  ViewVC Help
Powered by ViewVC 1.1.20