Last change
on this file was 28197, checked in by jdquinn, 12 months ago |
CHG: External package upgrades; fixes for distributables; cleanup
|
-
Property svn:executable
set to
*
|
File size:
850 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 | set -e
|
---|
3 |
|
---|
4 |
|
---|
5 | ## Constants
|
---|
6 | #
|
---|
7 | VER="1.14.3"
|
---|
8 |
|
---|
9 | PREFIX="${ISSM_DIR}/externalpackages/hdf5/install" # Set to location where external package should be installed
|
---|
10 |
|
---|
11 | ## Environment
|
---|
12 | #
|
---|
13 | export CC=mpicc
|
---|
14 | export CFLAGS="${CFLAGS} -w"
|
---|
15 |
|
---|
16 | # Download source
|
---|
17 | $ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/hdf5-${VER}.tar.gz" "hdf5-${VER}.tar.gz"
|
---|
18 |
|
---|
19 | # Untar source
|
---|
20 | tar -zxvf hdf5-${VER}.tar.gz
|
---|
21 |
|
---|
22 | # Cleanup
|
---|
23 | rm -rf install src
|
---|
24 | mkdir install src
|
---|
25 |
|
---|
26 | # Move source to 'src' directory
|
---|
27 | mv hdf5-${VER}/* src/
|
---|
28 | rm -rf hdf5-${VER}
|
---|
29 |
|
---|
30 | # Configure
|
---|
31 | cd src
|
---|
32 | ./configure \
|
---|
33 | --prefix="${PREFIX}" \
|
---|
34 | --disable-dependency-tracking \
|
---|
35 | --disable-shared \
|
---|
36 | --enable-parallel \
|
---|
37 | --with-zlib="${ZLIB_ROOT}" \
|
---|
38 | --with-szlib="no" \
|
---|
39 | --enable-hl
|
---|
40 |
|
---|
41 | # Compile and install
|
---|
42 | #
|
---|
43 | if [ $# -eq 0 ]; then
|
---|
44 | make
|
---|
45 | make install
|
---|
46 | else
|
---|
47 | make -j $1
|
---|
48 | make -j $1 install
|
---|
49 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.