source: issm/trunk-jpl/externalpackages/gdal/install-macosx64.sh@ 13851

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

CHG: renamed installation scripts

  • Property svn:executable set to *
File size: 713 bytes
RevLine 
[13848]1#!/bin/bash
2set -eu
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 \
23 --prefix="$ISSM_DIR/externalpackages/gdal/install" \
24 --without-python \
25 --without-png \
26 --with-netcdf=no \
27 --with-jasper=no \
28 --without-ld-shared \
29 --with-unix-stdio-64=no \
30 --with-expat-lib=/usr/lib64/libexpat.so
31
32#Compile and install gdal
33if [ $# -eq 0 ]; then
34 make
35else
36 make -j $1
37fi
38make install
Note: See TracBrowser for help on using the repository browser.