source: issm/trunk/externalpackages/boost/install-1.55-mac-static.sh@ 24686

Last change on this file since 24686 was 24686, checked in by Mathieu Morlighem, 5 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#
7VER="1_55_0"
8
9## Environment
10#
11export BOOST_ROOT="${ISSM_DIR}/externalpackages/boost"
12export 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
18tar -zxvf boost_${VER}.tar.gz
19
20# Cleanup
21rm -rf install src
22mkdir install src
23
24# Move source into 'src' directory
25mv boost_${VER}/* src/
26rm -rf boost_${VER}
27
28# Copy customized source and configuration files to 'src' directory
29cp configs/1.55/boost/multi_index/ordered_index.hpp src/boost/multi_index
30
31# Configure
32cd src
33./bootstrap.sh \
34 --prefix=${BOOST_ROOT}/install \
35 --with-python=python2.7
36
37# Modify project config to enable MPI
38printf "\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
44mkdir ${BOOST_ROOT}/install/bin
45cp bjam ${BOOST_ROOT}/install/bin
Note: See TracBrowser for help on using the repository browser.