source: issm/trunk-jpl/externalpackages/gdal/install-3.0-macOS_64-python.sh@ 24321

Last change on this file since 24321 was 24321, checked in by jdquinn, 5 years ago

CHG: Installation script changes and others, cleanup in support of macOS Examples build.

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