From 5a83593ac83ff725ad6e6c992e297370106b42f6 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Tue, 15 Jul 2014 14:17:15 +0200 Subject: [PATCH] boost: added --- config/versions.conf | 1 + scripts/boost.build | 45 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100755 scripts/boost.build diff --git a/config/versions.conf b/config/versions.conf index f309e03..d84582c 100644 --- a/config/versions.conf +++ b/config/versions.conf @@ -1,5 +1,6 @@ autoconf 2.69 automake 1.14 +boost 1.55.0 cmake 2.8.12.2 emacs 24.3 filebench 1.4.9.1 diff --git a/scripts/boost.build b/scripts/boost.build new file mode 100755 index 0000000..b54eee5 --- /dev/null +++ b/scripts/boost.build @@ -0,0 +1,45 @@ +#!/bin/bash + +source "$(dirname $0)/../lib/libem.bash" + +# :TODO: detect compiler +TOOLSET=gcc + +function em.configure() { + cd "${EM_SRCDIR}" + "${EM_SRCDIR}"/bootstrap.sh \ + --prefix="${PREFIX}" \ + --with-toolset=${TOOLSET} \ + --with-libraries=all \ + --with-python-root="${PYTHON_PREFIX}" \ + || exit 1 +} + +function em.build() { + cd "${EM_SRCDIR}" + ./b2 \ + --build-type=minimal \ + --build-dir="${EM_BUILDDIR}" \ + --layout=system \ + variant=release \ + link=static \ + threading=multi \ + stage +} + +function em.install() { + cd "${EM_SRCDIR}" + ./b2 \ + --build-type=minimal \ + --build-dir="${EM_BUILDDIR}" \ + --layout=system \ + variant=release \ + link=static \ + threading=multi \ + install +} + +em.add_to_family 'Compiler' +em.set_build_dependencies "${COMPILER}" 'python' +em.make_all +