Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7098 - (show annotations) (download)
Tue Sep 28 20:05:11 2010 UTC (13 years, 7 months ago) by niro
File size: 1085 byte(s)
-fixed compilation
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}"
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 install -d ${BUILDDIR}/build
41 cd ${BUILDDIR}/build
42
43 # disabled benchmarks test, as they have a lot of dependencies
44 # and disabled demos
45 # but enabled the library
46 cmake_configure \
47 -DEIGEN_BUILD_BTL=OFF \
48 -DEIGEN_BUILD_DEMOS=OFF \
49 -DEIGEN_BUILD_LIB=ON \
50 || die
51
52 mmake || die
53 }