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
77
88# Compile libs for macOS 10.9 or later
99# export MACOSX_DEPLOYMENT_TARGET="10.9"
10- export NETCDF_VERSION=" 4.8.1 "
10+ export NETCDF_VERSION=" MASTER "
1111export HDF5_VERSION=" 1.12.1"
1212# old openssl, since building new version requires perl 5.10.0
1313export OPENSSL_ROOT=openssl-1.0.2u
@@ -45,6 +45,27 @@ function build_libs {
4545 build_netcdf
4646}
4747
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+
4869function run_tests {
4970 # Runs tests on installed distribution from an empty directory
5071 pwd
You can’t perform that action at this time.
0 commit comments