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
|
---|
2 | set -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 | #
|
---|
11 | VER="3.0.2"
|
---|
12 | PROJ_ROOT="${ISSM_DIR}/externalpackages/proj/install"
|
---|
13 |
|
---|
14 | # Cleanup
|
---|
15 | rm -rf install src
|
---|
16 | mkdir 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
|
---|
22 | tar -zxvf gdal-$VER.tar.gz
|
---|
23 |
|
---|
24 | # Move source into 'src' directory
|
---|
25 | mv gdal-$VER/* src
|
---|
26 | rm -rf gdal-$VER
|
---|
27 |
|
---|
28 | # Configure
|
---|
29 | cd 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
|
---|
38 | if [ $# -eq 0 ]; then
|
---|
39 | make
|
---|
40 | make install
|
---|
41 | else
|
---|
42 | make -j $1
|
---|
43 | make -j $1 install
|
---|
44 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.