Build: add ability to build with docker
[marnav.git] / bin / docker / install-boost.sh
blob0d23a68956ce9b3b24962cf4367b740dd7e069aa
1 #!/bin/bash -e
3 boost_version="${1}"
4 boost_file=$(echo ${boost_version} | tr '.' '_')
6 curl -o /tmp/boost.tar.bz2 -L https://dl.bintray.com/boostorg/release/${boost_version}/source/boost_${boost_file}.tar.bz2
7 cd /tmp
8 tar -xf boost.tar.bz2
9 rm -f boost.tar.bz2
10 cd boost_${boost_file}
11 ./bootstrap.sh --prefix=/opt/local --with-libraries=system
12 ./b2 -j3 --prefix=/opt/local threading=multi variant=release optimization=space install
13 cd /opt
14 rm -fr /tmp/boost_${boost_file}