|
Last change
on this file since 24686 was 24686, checked in by Mathieu Morlighem, 6 years ago |
|
merged trunk-jpl and trunk for revision 24684
|
-
Property svn:executable
set to
*
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | #!/bin/bash
|
|---|
| 2 | #set -eu # Do not `run set -eu` because it causes some targets to fail
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 | ## Constants
|
|---|
| 6 | #
|
|---|
| 7 | VER="1_55_0"
|
|---|
| 8 |
|
|---|
| 9 | ## Environment
|
|---|
| 10 | #
|
|---|
| 11 | export BOOST_ROOT="${ISSM_DIR}/externalpackages/boost"
|
|---|
| 12 | export CXXFLAGS='-std=c++98' # Setting CXXFLAGS to deal with C++11 incompatibility with Matlab's Boost
|
|---|
| 13 |
|
|---|
| 14 | # Download source
|
|---|
| 15 | $ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/boost_${VER}.tar.gz" "boost_${VER}.tar.gz"
|
|---|
| 16 |
|
|---|
| 17 | # Unpack source
|
|---|
| 18 | tar -zxvf boost_${VER}.tar.gz
|
|---|
| 19 |
|
|---|
| 20 | # Cleanup
|
|---|
| 21 | rm -rf install src
|
|---|
| 22 | mkdir install src
|
|---|
| 23 |
|
|---|
| 24 | # Move source into 'src' directory
|
|---|
| 25 | mv boost_${VER}/* src/
|
|---|
| 26 | rm -rf boost_${VER}
|
|---|
| 27 |
|
|---|
| 28 | # Copy customized source and configuration files to 'src' directory
|
|---|
| 29 | cp configs/1.55/boost/multi_index/ordered_index.hpp src/boost/multi_index
|
|---|
| 30 |
|
|---|
| 31 | # Configure
|
|---|
| 32 | cd src
|
|---|
| 33 | ./bootstrap.sh \
|
|---|
| 34 | --prefix=${BOOST_ROOT}/install \
|
|---|
| 35 | --with-python=python2.7
|
|---|
| 36 |
|
|---|
| 37 | # Modify project config to enable MPI
|
|---|
| 38 | printf "\n# Enable MPI\nusing mpi ;\n" >> project-config.jam
|
|---|
| 39 |
|
|---|
| 40 | # Compile and install
|
|---|
| 41 | ./bjam toolset=darwin link=static install
|
|---|
| 42 |
|
|---|
| 43 | # Copy binary to install directory
|
|---|
| 44 | mkdir ${BOOST_ROOT}/install/bin
|
|---|
| 45 | cp bjam ${BOOST_ROOT}/install/bin
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.