Last change
on this file since 24706 was 24706, checked in by jdquinn, 5 years ago |
CHG: No need to explicitly call darwin toolset
|
-
Property svn:executable
set to
*
|
File size:
1018 bytes
|
Rev | Line | |
---|
[24663] | 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_72_0"
|
---|
| 8 |
|
---|
| 9 | ## Environment
|
---|
| 10 | #
|
---|
| 11 | export BOOST_ROOT="${ISSM_DIR}/externalpackages/boost"
|
---|
| 12 |
|
---|
| 13 | # Download source
|
---|
| 14 | $ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/boost_${VER}.tar.gz" "boost_${VER}.tar.gz"
|
---|
| 15 |
|
---|
| 16 | # Unpack source
|
---|
| 17 | tar -zxvf boost_${VER}.tar.gz
|
---|
| 18 |
|
---|
| 19 | # Cleanup
|
---|
| 20 | rm -rf install src
|
---|
| 21 | mkdir install src
|
---|
| 22 |
|
---|
| 23 | # Move source into 'src' directory
|
---|
| 24 | mv boost_${VER}/* src/
|
---|
| 25 | rm -rf boost_${VER}
|
---|
| 26 |
|
---|
| 27 | # Configure
|
---|
| 28 | cd src
|
---|
| 29 | ./bootstrap.sh \
|
---|
| 30 | --prefix=${BOOST_ROOT}/install \
|
---|
| 31 | --with-python=python2.7
|
---|
| 32 |
|
---|
| 33 | # Modify project config to enable MPI
|
---|
| 34 | printf "\n# Enable MPI\nusing mpi ;\n" >> project-config.jam
|
---|
| 35 |
|
---|
| 36 | # Compile and install
|
---|
[24706] | 37 | ./b2 install
|
---|
[24663] | 38 |
|
---|
| 39 | # Copy binary to install directory
|
---|
| 40 | mkdir ${BOOST_ROOT}/install/bin
|
---|
| 41 | cp bjam ${BOOST_ROOT}/install/bin
|
---|
| 42 |
|
---|
| 43 | # Set install_name for all shared libraries
|
---|
| 44 | cd ${BOOST_ROOT}/install/lib
|
---|
| 45 | for name in *.dylib; do
|
---|
| 46 | install_name_tool -id ${BOOST_ROOT}/install/lib/${name} ${name}
|
---|
| 47 | done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.