File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export NO_CDL=1
7
7
8
8
# Compile libs for macOS 10.9 or later
9
9
# export MACOSX_DEPLOYMENT_TARGET="10.9"
10
- export NETCDF_VERSION=" 4.8.1 "
10
+ export NETCDF_VERSION=" MASTER "
11
11
export HDF5_VERSION=" 1.12.1"
12
12
# old openssl, since building new version requires perl 5.10.0
13
13
export OPENSSL_ROOT=openssl-1.0.2u
@@ -45,6 +45,27 @@ function build_libs {
45
45
build_netcdf
46
46
}
47
47
48
+ function build_netcdf {
49
+ if [ -e netcdf-stamp ]; then return ; fi
50
+ build_hdf5
51
+ build_curl
52
+ if [ $NETCDF_VERSION == " MASTER" ]; then
53
+ git clone https://github.com/Unidata/netcdf-c
54
+ cd netcdf-c
55
+ autoreconf -i
56
+ ./configure --prefix=$BUILD_PREFIX --enable-dap \
57
+ make -j4
58
+ make install
59
+ else
60
+ fetch_unpack https://github.com/Unidata/netcdf-c/archive/v${NETCDF_VERSION} .tar.gz
61
+ (cd netcdf-c-${NETCDF_VERSION} \
62
+ && ./configure --prefix=$BUILD_PREFIX --enable-dap \
63
+ && make -j4 \
64
+ && make install)
65
+ fi
66
+ touch netcdf-stamp
67
+ }
68
+
48
69
function run_tests {
49
70
# Runs tests on installed distribution from an empty directory
50
71
pwd
You can’t perform that action at this time.
0 commit comments