Skip to content

Commit 03365fe

Browse files
author
Jeff Whitaker
committed
use netcdf-c PR #2690
1 parent 477108e commit 03365fe

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

config.sh

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,11 @@ function build_zstd {
110110

111111
function build_netcdf {
112112
if [ -e netcdf-stamp ]; then return; fi
113-
fetch_unpack https://downloads.unidata.ucar.edu/netcdf-c/${NETCDF_VERSION}/netcdf-c-${NETCDF_VERSION}.tar.gz
113+
#$fetch_unpack https://downloads.unidata.ucar.edu/netcdf-c/${NETCDF_VERSION}/netcdf-c-${NETCDF_VERSION}.tar.gz
114+
git clone https://github.com/DennisHeimbigner/netcdf-c netcdf-c-${NETCDF_VERSION}
115+
cd netcdf-c-${NETCDF_VERSION}
116+
git checkout verifyhost.dmh
117+
cd ..
114118
if [ -n "$IS_MACOS" ]; then
115119
if [[ "$PLAT" = "arm64" ]] && [[ "$CROSS_COMPILING" = "1" ]]; then
116120
# no plugins installed
@@ -127,11 +131,6 @@ function build_netcdf {
127131
&& make install )
128132
fi
129133
else
130-
# use cmake for version 4.9.0 since autotools doesn't work
131-
# CMakeLists.txt patch needed for NETCDF_VERSION 4.9.0
132-
# no plugins installed
133-
# && curl https://raw.githubusercontent.com/MacPython/netcdf4-python-wheels/master/CMakeLists.txt.patch -o CMakeLists.txt.patch \
134-
# && patch -p0 < CMakeLists.txt.patch \
135134
(cd netcdf-c-${NETCDF_VERSION} \
136135
&& mkdir build \
137136
&& cd build \
@@ -151,13 +150,6 @@ function build_netcdf {
151150
# && make install \
152151
# && ls -l $HDF5_PLUGIN_PATH )
153152
fi
154-
# test curl ssl support
155-
#if [ ! -n "$IS_MACOS" ]; then
156-
# URL='https://icdc.cen.uni-hamburg.de/thredds/dodsC/ftpthredds/hamtide/m2.hamtide11a.nc'
157-
# export CURLOPT_VERBOSE=1
158-
# export LD_LIBRARY_PATH="${BUILD_PREFIX}/lib:${LD_LIBRARY_PATH}"
159-
# ${BUILD_PREFIX}/bin/ncdump -h $URL
160-
#fi
161153
touch netcdf-stamp
162154
}
163155

0 commit comments

Comments
 (0)