From ecda6af3d1c25638879b4a35a85f8b54289f3af8 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Mon, 20 Nov 2017 17:27:36 +0100 Subject: [PATCH] Compiler/eigen3 - build-block added --- Compiler/eigen3/3/variants | 1 + Compiler/eigen3/build | 29 +++++++++++++++++++++++++++++ Compiler/eigen3/modulefile | 11 +++++++++++ 3 files changed, 41 insertions(+) create mode 100644 Compiler/eigen3/3/variants create mode 100755 Compiler/eigen3/build create mode 100644 Compiler/eigen3/modulefile diff --git a/Compiler/eigen3/3/variants b/Compiler/eigen3/3/variants new file mode 100644 index 0000000..59fe042 --- /dev/null +++ b/Compiler/eigen3/3/variants @@ -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 diff --git a/Compiler/eigen3/build b/Compiler/eigen3/build new file mode 100755 index 0000000..f69eef1 --- /dev/null +++ b/Compiler/eigen3/build @@ -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 + diff --git a/Compiler/eigen3/modulefile b/Compiler/eigen3/modulefile new file mode 100644 index 0000000..5e4e3fa --- /dev/null +++ b/Compiler/eigen3/modulefile @@ -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 " + +module-help " +Eigen is a C++ template library for linear algebra: matrices, vectors, +numerical solvers, and related algorithms. +"