source: issm/trunk/externalpackages/gdal/install-murdo.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: 730 bytes
RevLine 
[13223]1#!/bin/bash
[13246]2set -eu
[13223]3
4#Some cleanup
5rm -rf src
6rm -rf install
7rm -rf gdal-1.6.0
8mkdir src install
9
10#Download from ISSM server
11$ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/gdal-1.6.0.tar.gz' 'gdal-1.6.0.tar.gz'
12
13#Untar
14tar -zxvf gdal-1.6.0.tar.gz
15
16#Move gdal into src directory
17mv gdal-1.6.0/* src
18rm -rf gdal-1.6.0
19
20#Configure gdal
21cd src
22./configure --prefix="$ISSM_DIR/externalpackages/gdal/install" \
23 --without-python \
24 --without-png \
25 --with-netcdf=no \
26 --with-jasper=no \
27 --without-ld-shared \
28 --with-unix-stdio-64=no
29
30#Patch GDALmake.opt
31patch GDALmake.opt ../GDALmake.opt.patch
32
33#Compile and install gdal
[13249]34if [ $# -eq 0 ]; then
[13223]35 make
36else
37 make -j $1
38fi
39make install
Note: See TracBrowser for help on using the repository browser.