Skip to content

Commit caf8c09

Browse files
author
Jeff Whitaker
committed
try building netcdf-c github master
1 parent 098cb7f commit caf8c09

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

config.sh

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff 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"
1111
export HDF5_VERSION="1.12.1"
1212
# old openssl, since building new version requires perl 5.10.0
1313
export 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+
4869
function run_tests {
4970
# Runs tests on installed distribution from an empty directory
5071
pwd

0 commit comments

Comments
 (0)