Magellan Linux

Contents of /branches/magellan-next/extras/eigen/eigen-2.0.15-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7096 - (show annotations) (download)
Tue Sep 28 20:02:30 2010 UTC (13 years, 8 months ago) by niro
File size: 1048 byte(s)
auto added: ver bump to 2.0.15-r1
1 # $Id: eigen-2.0.9-r3.smage2 3972 2009-11-14 14:39:24Z niro $
2
3 PNAME="eigen"
4 PVER="2.0.15"
5 PBUILD="r1"
6
7 PCATEGORIE="dev-cpp"
8 STATE="unstable"
9
10 DESCRIPTION="Eigen is a C++ template library for linear algebra: vectors, matrices, and related algorithms."
11 HOMEPAGE="http://eigen.tuxfamily.org/"
12
13 DEPEND=">= virtual/glibc"
14
15 SRCFILE="${PVER}.tar.bz2"
16 SRCDIR="${BUILDDIR}/${PNAME}2"
17
18 sminclude cmake
19
20 SRC_URI=(
21 http://bitbucket.org/${PNAME}/${PNAME}/get/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE}
23 )
24
25 UP2DATE="updatecmd ${HOMEPAGE} | grep 'latest stable' | sed 's:.*Eigen\ \(.*\)\.\ .*:\1:'"
26
27 src_prepare()
28 {
29 munpack ${SRCFILE} || die
30 cd ${SRCDIR}
31
32 # fix hardcoded lib pathes
33 sed -i -e "s:DESTINATION lib:DESTINATION $(mlibdir):g" \
34 Eigen/CMakeLists.txt \
35 CMakeLists.txt || die
36 }
37
38 src_compile()
39 {
40 cd ${SRCDIR}
41
42 # disabled benchmarks test, as they have a lot of dependencies
43 # and disabled demos
44 # but enabled the library
45 cmake_configure \
46 -DEIGEN_BUILD_BTL=OFF \
47 -DEIGEN_BUILD_DEMOS=OFF \
48 -DEIGEN_BUILD_LIB=ON \
49 || die
50
51 mmake || die
52 }