build 913 Bytes
Newer Older
gsell's avatar
gsell committed
1
#!/usr/bin/env modbuild
gsell's avatar
gsell committed
2 3

# :TODO: detect compiler
gsell's avatar
gsell committed
4 5 6
TOOLSET=intel-linux

BOOST_BUILD_PATH="${MODULE_BUILDDIR}"
gsell's avatar
gsell committed
7

gsell's avatar
gsell committed
8
pbuild::configure() {
9 10
	cd "${MODULE_SRCDIR}"
	"${MODULE_SRCDIR}"/bootstrap.sh \
gsell's avatar
gsell committed
11 12 13
		--prefix="${PREFIX}" \
		--with-libraries=all \
		--with-python-root="${PYTHON_PREFIX}" \
gsell's avatar
gsell committed
14
		-with-toolset=${TOOLSET} \
gsell's avatar
gsell committed
15 16 17
		|| exit 1
}

gsell's avatar
gsell committed
18
pbuild::build() {
19
	cd "${MODULE_SRCDIR}"
gsell's avatar
gsell committed
20 21
	./b2 \
		--build-type=minimal \
22
		--build-dir="${MODULE_BUILDDIR}" \
gsell's avatar
gsell committed
23
		--layout=system \
24
		--without-mpi \
gsell's avatar
gsell committed
25 26 27 28 29 30
		variant=release \
		link=static \
		threading=multi \
		stage
}

gsell's avatar
gsell committed
31
pbuild::install() {
32
	cd "${MODULE_SRCDIR}"
gsell's avatar
gsell committed
33 34
	./b2 \
		--build-type=minimal \
35
		--build-dir="${MODULE_BUILDDIR}" \
gsell's avatar
gsell committed
36
		--layout=system \
37
		--without-mpi \
gsell's avatar
gsell committed
38 39 40 41 42 43
		variant=release \
		link=static \
		threading=multi \
		install
}

gsell's avatar
gsell committed
44 45 46 47
pbuild::add_to_group 'Compiler'
pbuild::set_runtime_dependencies "${COMPILER}"
pbuild::set_build_dependencies "${COMPILER}" 'Python'
pbuild::make_all
gsell's avatar
gsell committed
48