@@ -110,7 +110,11 @@ function build_zstd {
110
110
111
111
function build_netcdf {
112
112
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 ..
114
118
if [ -n " $IS_MACOS " ]; then
115
119
if [[ " $PLAT " = " arm64" ]] && [[ " $CROSS_COMPILING " = " 1" ]]; then
116
120
# no plugins installed
@@ -127,11 +131,6 @@ function build_netcdf {
127
131
&& make install )
128
132
fi
129
133
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 \
135
134
(cd netcdf-c-${NETCDF_VERSION} \
136
135
&& mkdir build \
137
136
&& cd build \
@@ -151,13 +150,6 @@ function build_netcdf {
151
150
# && make install \
152
151
# && ls -l $HDF5_PLUGIN_PATH )
153
152
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
161
153
touch netcdf-stamp
162
154
}
163
155
0 commit comments