From 874657977abb652dca40b5c92db03f5871f97187 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Thu, 11 Oct 2018 10:53:54 +0200 Subject: [PATCH] MPI/boost - added --- MPI/boost/build | 44 ++++++++++++++++++++++++++++++++++++++++ MPI/boost/files/variants | 1 + MPI/boost/modulefile | 14 +++++++++++++ 3 files changed, 59 insertions(+) create mode 100755 MPI/boost/build create mode 100644 MPI/boost/files/variants create mode 100644 MPI/boost/modulefile diff --git a/MPI/boost/build b/MPI/boost/build new file mode 100755 index 0000000..67f0081 --- /dev/null +++ b/MPI/boost/build @@ -0,0 +1,44 @@ +#!/usr/bin/env modbuild + +pbuild::set_download_url "https://netcologne.dl.sourceforge.net/project/boost/boost/$V/boost_${V_MAJOR}_${V_MINOR}_${V_PATCHLVL}.tar.gz" + +pbuild::add_to_group 'MPI' + +BOOST_BUILD_PATH="${BUILD_DIR}" + +pbuild::configure() { + cd "${SRC_DIR}" + "${SRC_DIR}"/bootstrap.sh \ + --prefix="${PREFIX}" \ + --with-libraries=all \ + --with-python-root="${PYTHON_PREFIX}" \ + || exit 1 + echo "using mpi ;" >> "${SRC_DIR}/project-config.jam" +} + +pbuild::compile() { + cd "${SRC_DIR}" + ./b2 \ + --build-type=minimal \ + --build-dir="${BUILD_DIR}" \ + --layout=system \ + variant=release \ + link=shared,static \ + threading=multi \ + stage +} + +pbuild::install() { + cd "${SRC_DIR}" + ./b2 \ + --build-type=minimal \ + --build-dir="${BUILD_DIR}" \ + --layout=system \ + variant=release \ + link=shared,static \ + threading=multi \ + install +} + +pbuild::make_all + diff --git a/MPI/boost/files/variants b/MPI/boost/files/variants new file mode 100644 index 0000000..a427683 --- /dev/null +++ b/MPI/boost/files/variants @@ -0,0 +1 @@ +boost/1.66.0 unstable gcc/7.3.0 openmpi/3.0.0 b:Python/2.7.14 diff --git a/MPI/boost/modulefile b/MPI/boost/modulefile new file mode 100644 index 0000000..992ec8f --- /dev/null +++ b/MPI/boost/modulefile @@ -0,0 +1,14 @@ +#%Module1.0 + +module-whatis "C++ libraries" +module-url "http://www.boost.org" +module-license "Boost Software License" +module-maintainer "Achim Gsell " +module-help " +Boost is a set of libraries for the C++ programming language that provide +support for tasks and structures such as linear algebra, pseudorandom number +generation, multithreading, image processing, regular expressions, and unit +testing. It contains over eighty individual libraries. +(Wikipedia) +" +