MPI/boost
- added
This commit is contained in:
44
MPI/boost/build
Executable file
44
MPI/boost/build
Executable file
@@ -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
|
||||
|
||||
1
MPI/boost/files/variants
Normal file
1
MPI/boost/files/variants
Normal file
@@ -0,0 +1 @@
|
||||
boost/1.66.0 unstable gcc/7.3.0 openmpi/3.0.0 b:Python/2.7.14
|
||||
14
MPI/boost/modulefile
Normal file
14
MPI/boost/modulefile
Normal file
@@ -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 <achim.gsell@psi.ch>"
|
||||
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)
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user