# $Id: eigen-2.0.9-r3.smage2 3972 2009-11-14 14:39:24Z niro $ PNAME="eigen" PVER="2.0.15" PBUILD="r1" PCATEGORIE="dev-cpp" STATE="unstable" DESCRIPTION="Eigen is a C++ template library for linear algebra: vectors, matrices, and related algorithms." HOMEPAGE="http://eigen.tuxfamily.org/" DEPEND=">= virtual/glibc" SRCFILE="${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}2" sminclude cmake SRC_URI=( http://bitbucket.org/${PNAME}/${PNAME}/get/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd ${HOMEPAGE} | grep 'latest stable' | sed 's:.*Eigen\ \(.*\)\.\ .*:\1:'" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fix hardcoded lib pathes sed -i -e "s:DESTINATION lib:DESTINATION $(mlibdir):g" \ Eigen/CMakeLists.txt \ CMakeLists.txt || die } src_compile() { cd ${SRCDIR} # disabled benchmarks test, as they have a lot of dependencies # and disabled demos # but enabled the library cmake_configure \ -DEIGEN_BUILD_BTL=OFF \ -DEIGEN_BUILD_DEMOS=OFF \ -DEIGEN_BUILD_LIB=ON \ || die mmake || die }