source: issm/trunk/externalpackages/boost/install-1.55-macosx-el_capitan-static.sh@ 23929

Last change on this file since 23929 was 23929, checked in by jdquinn, 6 years ago

CHG: Updated permissions and remove extended attributes

  • Property svn:executable set to *
File size: 1.5 KB
Line 
1#!/bin/bash
2set -eu
3
4# NOTE: Stop after boostrap phase, and run
5#
6# bjam --debug-configuration
7#
8# to figure out which paths boost is using to include python. Make sure everyone
9# of these paths is covered by python. If not, just make symlinks in
10# externalpackages/python to what boost is expecting. There is NO WAY to get the
11# boost library to include python support without doing that.
12
13#Some cleanup
14rm -rf install boost_1_55_0 src
15mkdir install src
16
17#Download from ISSM server
18$ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/boost_1_55_0.tar.gz' 'boost_1_55_0.tar.gz'
19
20#Untar
21tar -zxvf boost_1_55_0.tar.gz
22
23#Move boost into install directory
24mv boost_1_55_0/* src
25rm -rf boost_1_55_0
26
27patch src/boost/atomic/detail/cas128strong.hpp ./configs/1.55/cas128strong.hpp.patch
28patch src/boost/atomic/detail/gcc-atomic.hpp ./configs/1.55/gcc-atomic.hpp.patch
29patch src/tools/build/v2/user-config.jam ./configs/1.55/user-config.jam.patch
30patch src/tools/build/v2/tools/darwin.jam ./configs/1.55/darwin.jam.patch
31patch src/tools/build/v2/tools/darwin.py ./configs/1.55/darwin.py.patch
32
33#Configure and compile
34cd src
35./bootstrap.sh \
36 --prefix="$ISSM_DIR/externalpackages/boost/install" \
37 --with-python=python
38
39#Compile boost
40# Need gcc with iconv installed in a location that has been added to your path
41# export CC=/usr/local/gfortan/bin/gcc
42# export CXX=/usr/local/gfortran/bin/g++
43./bjam toolset=darwin link=static runtime-link=static install
44
45#put bjam into install also:
46mkdir ../install/bin
47cp bjam ../install/bin
Note: See TracBrowser for help on using the repository browser.