source: issm/trunk/externalpackages/mpich2/install-1.4-macosx64.sh@ 13395

Last change on this file since 13395 was 13395, checked in by Mathieu Morlighem, 12 years ago

merged trunk-jpl and trunk for revision 13393

  • Property svn:executable set to *
File size: 706 bytes
RevLine 
[11101]1#!/bin/bash
2
3#Some cleanup
4rm -rf src install mpich2-1.4
5mkdir src install
6
[12332]7#Download from ISSM server
8$ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/mpich2-1.4.tar.gz' 'mpich2-1.4.tar.gz'
9
[11101]10#Untar
11tar -zxvf mpich2-1.4.tar.gz
12
13#Move mpich2 into src directory
14mv mpich2-1.4/* src
15rm -rf mpich2-1.4
16
17#Configure mpich2
18cd src
19export FCFLAGS=" -m64"
20export FFLAGS=" -m64"
21export CFLAGS=" -arch x86_64"
22export CXXFLAGS=" -arch x86_64"
23./configure \
[12332]24 --prefix="$ISSM_DIR/externalpackages/mpich2/install" \
[11101]25 --enable-f91 \
26 --enable-sharedlibs=osx-gcc \
27 --enable-shared \
28 --enable-fc
29
30#Compile mpich2
[13395]31if [ $# -eq 0 ]; then
[11128]32 make
33else
34 make -j $1
35fi
[11101]36make install
Note: See TracBrowser for help on using the repository browser.