source: issm/trunk-jpl/externalpackages/gsl/install-macosx64.sh@ 23435

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

CHG: Renamed download_external_package.bash -> DownloadExternalPackage.sh and updated calls to it in install scripts

  • Property svn:executable set to *
File size: 535 bytes
Line 
1#!/bin/bash
2set -eu
3
4#Some cleanup
5rm -rf src install gsl-1.15
6mkdir src install
7
8#Download from ISSM server
9$ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/gsl-1.15.tar.gz' 'gsl-1.15.tar.gz'
10
11#Untar
12tar -zxvf gsl-1.15.tar.gz
13
14#Move gsl into src directory
15mv gsl-1.15/* src
16rm -rf gsl-1.15
17
18#Configure gsl
19cd src
20
21export CFLAGS=" -arch x86_64"
22
23./configure \
24 --prefix="$ISSM_DIR/externalpackages/gsl/install"
25
26#Compile gsl
27if [ $# -eq 0 ]; then
28 make
29else
30 make -j $1
31fi
32make install
Note: See TracBrowser for help on using the repository browser.