source: issm/trunk-jpl/externalpackages/hdf5/install-1.10.sh@ 24428

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

BUG: Correcting HDF5 and NetCDF dependency on zlib

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