source: issm/trunk/externalpackages/gdal/install-3.0.sh@ 24686

Last change on this file since 24686 was 24686, checked in by Mathieu Morlighem, 5 years ago

merged trunk-jpl and trunk for revision 24684

  • Property svn:executable set to *
File size: 720 bytes
Line 
1#!/bin/bash
2set -eu
3
4
5# Constants
6#
7VER="3.0.2"
8PROJ_ROOT="${ISSM_DIR}/externalpackages/proj/install"
9
10# Cleanup
11rm -rf install src
12mkdir install src
13
14# Download source
15$ISSM_DIR/scripts/DownloadExternalPackage.sh "http://issm.jpl.nasa.gov/files/externalpackages/gdal-${VER}.tar.gz" "gdal-${VER}.tar.gz"
16
17# Unpack source
18tar -zxvf gdal-${VER}.tar.gz
19
20# Move source into 'src' directory
21mv gdal-$VER/* src
22rm -rf gdal-$VER
23
24# Configure
25cd src
26./configure \
27 --prefix="${ISSM_DIR}/externalpackages/gdal/install" \
28 --without-hdf5 \
29 --without-netcdf \
30 --with-proj="${PROJ_ROOT}"
31
32# Compile and install
33if [ $# -eq 0 ]; then
34 make
35 make install
36else
37 make -j $1
38 make -j $1 install
39fi
40
41# Return to initial directory
42cd ..
Note: See TracBrowser for help on using the repository browser.