all buildblocks moved one level up
This commit is contained in:
48
Compiler/boost/build
Executable file
48
Compiler/boost/build
Executable file
@@ -0,0 +1,48 @@
|
||||
#!/usr/bin/env modbuild
|
||||
|
||||
# :TODO: detect compiler
|
||||
TOOLSET=intel-linux
|
||||
|
||||
BOOST_BUILD_PATH="${MODULE_BUILDDIR}"
|
||||
|
||||
pbuild::configure() {
|
||||
cd "${MODULE_SRCDIR}"
|
||||
"${MODULE_SRCDIR}"/bootstrap.sh \
|
||||
--prefix="${PREFIX}" \
|
||||
--with-libraries=all \
|
||||
--with-python-root="${PYTHON_PREFIX}" \
|
||||
-with-toolset=${TOOLSET} \
|
||||
|| exit 1
|
||||
}
|
||||
|
||||
pbuild::build() {
|
||||
cd "${MODULE_SRCDIR}"
|
||||
./b2 \
|
||||
--build-type=minimal \
|
||||
--build-dir="${MODULE_BUILDDIR}" \
|
||||
--layout=system \
|
||||
--without-mpi \
|
||||
variant=release \
|
||||
link=static \
|
||||
threading=multi \
|
||||
stage
|
||||
}
|
||||
|
||||
pbuild::install() {
|
||||
cd "${MODULE_SRCDIR}"
|
||||
./b2 \
|
||||
--build-type=minimal \
|
||||
--build-dir="${MODULE_BUILDDIR}" \
|
||||
--layout=system \
|
||||
--without-mpi \
|
||||
variant=release \
|
||||
link=static \
|
||||
threading=multi \
|
||||
install
|
||||
}
|
||||
|
||||
pbuild::add_to_group 'Compiler'
|
||||
pbuild::set_runtime_dependencies "${COMPILER}"
|
||||
pbuild::set_build_dependencies "${COMPILER}" 'Python'
|
||||
pbuild::make_all
|
||||
|
||||
15
Compiler/boost/modulefile
Normal file
15
Compiler/boost/modulefile
Normal file
@@ -0,0 +1,15 @@
|
||||
#%Module1.0
|
||||
|
||||
set whatis "C++ libraries"
|
||||
set url "http://www.boost.org"
|
||||
set license "Boost Software License"
|
||||
set maintainer "Achim Gsell <achim.gsell@psi.ch>"
|
||||
set 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)
|
||||
"
|
||||
|
||||
source $env(PSI_LIBMODULES)
|
||||
Reference in New Issue
Block a user