File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -108,22 +108,25 @@ function build_zstd {
108
108
function build_netcdf {
109
109
if [ -e netcdf-stamp ]; then return ; fi
110
110
fetch_unpack https://downloads.unidata.ucar.edu/netcdf-c/${NETCDF_VERSION} /netcdf-c-${NETCDF_VERSION} .tar.gz
111
- if [[ -n " IS_OSX " ] ]; then
111
+ if [ -n " $IS_MACOS " ]; then
112
112
if [[ " $PLAT " = " arm64" ]] && [[ " $CROSS_COMPILING " = " 1" ]]; then
113
+ # no plugins installed
113
114
(cd netcdf-c-${NETCDF_VERSION} \
114
115
&& ./configure --prefix=$BUILD_PREFIX --enable-netcdf-4 --enable-shared --enable-dap \
115
116
&& make -j4 \
116
117
&& make install )
117
118
else
118
- # plugins installed
119
+ # plugins installed
119
120
(cd netcdf-c-${NETCDF_VERSION} \
120
121
&& export HDF5_PLUGIN_PATH=$BUILD_PREFIX /lib/netcdf-plugins \
121
122
&& ./configure --prefix=$BUILD_PREFIX --enable-netcdf-4 --enable-shared --enable-dap --with-plugin-dir=$HDF5_PLUGIN_PATH \
122
123
&& make -j4 \
123
124
&& make install )
124
125
fi
125
126
else
127
+ # use cmake for version 4.9.0 since autotools doesn't work
126
128
# CMakeLists.txt patch needed for NETCDF_VERSION 4.9.0
129
+ # no plugins installed
127
130
# (cd netcdf-c-${NETCDF_VERSION} \
128
131
# && curl https://raw.githubusercontent.com/MacPython/netcdf4-python-wheels/master/CMakeLists.txt.patch -o CMakeLists.txt.patch \
129
132
# && patch -p0 < CMakeLists.txt.patch \
You can’t perform that action at this time.
0 commit comments