File tree Expand file tree Collapse file tree 1 file changed +2
-24
lines changed Expand file tree Collapse file tree 1 file changed +2
-24
lines changed Original file line number Diff line number Diff line change 6
6
export NO_CDL=1
7
7
8
8
# Compile libs for macOS 10.9 or later
9
- # export MACOSX_DEPLOYMENT_TARGET="10.9"
9
+ export MACOSX_DEPLOYMENT_TARGET=" 10.9"
10
10
export NETCDF_VERSION=" 4.8.1"
11
11
export HDF5_VERSION=" 1.12.1"
12
12
# old openssl, since building new version requires perl 5.10.0
@@ -36,35 +36,13 @@ function build_curl2 {
36
36
touch curl-stamp
37
37
}
38
38
39
- function build_netcdf2 {
40
- if [ -e netcdf-stamp ]; then return ; fi
41
- build_hdf5
42
- build_curl
43
- if [ $NETCDF_VERSION == " MASTER" ]; then
44
- git clone https://github.com/Unidata/netcdf-c
45
- cd netcdf-c
46
- autoreconf -i
47
- ./configure --prefix=$BUILD_PREFIX --enable-dap \
48
- make -j4
49
- make install
50
- cd ..
51
- else
52
- fetch_unpack https://github.com/Unidata/netcdf-c/archive/v${NETCDF_VERSION} .tar.gz
53
- (cd netcdf-c-${NETCDF_VERSION} \
54
- && ./configure --prefix=$BUILD_PREFIX --enable-dap \
55
- && make -j4 \
56
- && make install)
57
- fi
58
- touch netcdf-stamp
59
- }
60
-
61
39
function build_libs {
62
40
build_hdf5
63
41
build_curl2
64
42
if [ -z " $IS_OSX " ] && [ $MB_ML_VER -eq 1 ]; then
65
43
export CFLAGS=" -std=gnu99 -Wl,-strip-all"
66
44
fi
67
- build_netcdf2
45
+ build_netcdf
68
46
}
69
47
70
48
function run_tests {
You can’t perform that action at this time.
0 commit comments