Last change
on this file since 9709 was 9709, checked in by Eric.Larour, 14 years ago |
boost package
|
-
Property svn:executable
set to
*
|
File size:
509 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | #get number of CPUS
|
---|
4 | NUMCPUS=$1;
|
---|
5 |
|
---|
6 | #version of boost
|
---|
7 | version=`echo *.tar.gz | sed 's/\.tar\.gz//g' | sed 's/boost_//g'`
|
---|
8 | echo $version
|
---|
9 |
|
---|
10 | #Some cleanup
|
---|
11 | rm -rf install boost_$version src
|
---|
12 |
|
---|
13 | #Create install directories
|
---|
14 | mkdir install src
|
---|
15 |
|
---|
16 | #Untar
|
---|
17 | tar -zxvf boost_$version.tar.gz
|
---|
18 |
|
---|
19 | #Move boost into install directory
|
---|
20 | mv boost_$version/* src
|
---|
21 | rm -rf boost_$version
|
---|
22 |
|
---|
23 | #Apply patches
|
---|
24 | cd src
|
---|
25 |
|
---|
26 | #Configure
|
---|
27 | ./bootstrap.sh --prefix=$ISSM_TIER/externalpackages/boost/install
|
---|
28 |
|
---|
29 | #Compile boost
|
---|
30 | ./bjam -j$NUMCPUS install
|
---|
Note:
See
TracBrowser
for help on using the repository browser.