Compiler/eigen3

- build-block added
This commit is contained in:
2017-11-20 17:27:36 +01:00
parent 920dc125f3
commit ecda6af3d1
3 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1 @@
eigen/3.3.4 unstable gcc/5.4.0 b:cmake/3.6.3 b:mpfr/3.1.5 b:gmp/6.1.2 b:UMFPACK/5.6.2 b:boost/1.62.0 b:SuperLU/5.2.1

29
Compiler/eigen3/build Executable file
View File

@@ -0,0 +1,29 @@
#!/usr/bin/env modbuild
#
# Notes:
# On Mac OS X VTK does not compile out of the box with self-compiled GCC.
# grep for "long-branch" and "pascal-string" in the cmake configuration
# and remove these strings.
#
SOURCE_URL="http://bitbucket.org/eigen/eigen/get/${V_MAJOR}.${V_MINOR}.${V_PATCHLVL}.tar.bz2"
pbuild::configure() {
export BOOST_ROOT="${BOOST_PREFIX}"
config_args=()
config_args+=( "-DUMFPACK_INCLUDES=${UMFPACK_INCLUDE_DIR}" )
config_args+=( "-DUMFPACK_LIBRARIES=${UMFPACK_LIBRARY_DIR}" )
config_args+=( "-DGMP_INCLUDES=${GMP_INCLUDE_DIR}" )
config_args+=( "-DGMP_LIBRARIES=${GMP_LIBRARY_DIR}" )
config_args+=( "-DMPFR_INCLUDES=${MPFR_INCLUDE_DIR}" )
config_args+=( "-DMPFR_LIBRARIES=${MPFR_LIBRARY_DIR}" )
config_args+=( "-DSUPERLU_INCLUDES=${SUPERLU_INCLUDE_DIR}" )
config_args+=( "-DSUPERLU_LIBRARIES=${SUPERLU_LIBRARY_DIR}" )
cmake -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX \
"${config_args[@]}" \
"${MODULE_SRCDIR}"
}
pbuild::add_to_group 'Compiler'
pbuild::make_all

View File

@@ -0,0 +1,11 @@
#%Module1.0
module-whatis "a C++ template library for linear algebra:"
module-url "http://eigen.tuxfamily.org/"
module-license "Mozilla Public License Version 2.0"
module-maintainer "Achim Gsell <achim.gsell@psi.ch>"
module-help "
Eigen is a C++ template library for linear algebra: matrices, vectors,
numerical solvers, and related algorithms.
"