Files
MX_Pmodule/scripts/Compiler/boost/build
Achim Gsell b129a8d05d - em.xyz renamed to pmodules.xxy
- underscore removed as prefix of function names
- keyword function removed
2015-06-04 20:38:33 +02:00

48 lines
886 B
Bash
Executable File

#!/bin/bash
source "$(dirname $0)/../../../lib/libpmodules.bash"
# :TODO: detect compiler
TOOLSET=gcc
pmodules.configure() {
cd "${MODULE_SRCDIR}"
"${MODULE_SRCDIR}"/bootstrap.sh \
--prefix="${PREFIX}" \
--with-libraries=all \
--with-python-root="${PYTHON_PREFIX}" \
|| exit 1
}
pmodules.build() {
cd "${MODULE_SRCDIR}"
./b2 \
--build-type=minimal \
--build-dir="${MODULE_BUILDDIR}" \
--layout=system \
--without-mpi \
variant=release \
link=static \
threading=multi \
stage
}
pmodules.install() {
cd "${MODULE_SRCDIR}"
./b2 \
--build-type=minimal \
--build-dir="${MODULE_BUILDDIR}" \
--layout=system \
--without-mpi \
variant=release \
link=static \
threading=multi \
install
}
pmodules.add_to_group 'Compiler'
pmodules.set_runtime_dependencies "${COMPILER}"
pmodules.set_build_dependencies "${COMPILER}" 'Python'
pmodules.make_all