diff --git a/package/netcdf/4.7.4/install.sh b/package/netcdf/4.7.4/install.sh index 2391b1cb8d62e669b9131e6c106086e4136e8076..4454ed13336288be99a4b2778e373a87be3d75b3 100755 --- a/package/netcdf/4.7.4/install.sh +++ b/package/netcdf/4.7.4/install.sh @@ -4,12 +4,15 @@ set -x set -e netcdf_c_version='4.7.4' netcdf_f_version='4.5.3' +netcdf_cxx_version='4.2' . ${DOWNLOAD_TOOL} -u https://codeload.github.com/Unidata/netcdf-fortran/tar.gz/refs/tags/v${netcdf_f_version} -f netcdf-fortran-${netcdf_f_version}.tar.gz . ${DOWNLOAD_TOOL} -u https://codeload.github.com/Unidata/netcdf-c/tar.gz/refs/tags/v${netcdf_c_version} -f netcdf-c-${netcdf_c_version}.tar.gz +. ${DOWNLOAD_TOOL} -u https://downloads.unidata.ucar.edu/netcdf-cxx/${netcdf_cxx_version}/netcdf-cxx-${netcdf_cxx_version}.tar.gz cd ${JARVIS_TMP} -rm -rf netcdf-c-${netcdf_c_version} netcdf-fortran-${netcdf_f_version} +rm -rf netcdf-c-${netcdf_c_version} netcdf-fortran-${netcdf_f_version} netcdf-cxx-${netcdf_cxx_version} tar -xvf ${JARVIS_DOWNLOAD}/netcdf-c-${netcdf_c_version}.tar.gz tar -xvf ${JARVIS_DOWNLOAD}/netcdf-fortran-${netcdf_f_version}.tar.gz +tar -xvf ${JARVIS_DOWNLOAD}/netcdf-cxx-${netcdf_cxx_version}.tar.gz cd netcdf-c-${netcdf_c_version} if [ x"$(arch)" = xaarch64 ];then build_type='--build=aarch64-unknown-linux-gnu' @@ -28,6 +31,11 @@ export LD_LIBRARY_PATH=$1/lib:$LD_LIBRARY_PATH export NETCDF=${1} cd ../netcdf-fortran-${netcdf_f_version} -./configure --prefix=$1 ${build_type} --disable-shared --with-pic --disable-doxygen --enable-largefile --enable-static CPPFLAGS="-O3 -I${HDF5_DIR}/include -I${1}/include" LDFLAGS="-L${HDF5_DIR}/lib -L${1}/lib -Wl,-rpath=${HDF5_DIR}/lib -Wl,-rpath=${1}/lib" CFLAGS="-O3 -L${HDF5_DIR}/HDF5/lib -L${1}/lib -I${HDF5_DIR}/include -I${1}/include" CXXFLAGS="-O3 -L${HDF5_DIR}/lib -L${1}/lib -I${HDF5_DIR}/include -I${1}/include" FCFLAGS="-O3 -L${HDF5_DIR}/lib -L${1}/lib -I${HDF5_DIR}/include -I${1}/include" +./configure --prefix=$1 ${build_type} --disable-shared --with-pic --disable-doxygen --enable-largefile --enable-static CPPFLAGS="-O3 -I${HDF5_DIR}/include -I${1}/include" LDFLAGS="-L${HDF5_DIR}/lib -L${1}/lib -Wl,-rpath=${HDF5_DIR}/lib -Wl,-rpath=${1}/lib" CFLAGS="-O3 -L${HDF5_DIR}/lib -L${1}/lib -I${HDF5_DIR}/include -I${1}/include" CXXFLAGS="-O3 -L${HDF5_DIR}/lib -L${1}/lib -I${HDF5_DIR}/include -I${1}/include" FCFLAGS="-O3 -L${HDF5_DIR}/lib -L${1}/lib -I${HDF5_DIR}/include -I${1}/include" make -j16 make install + +cd ../netcdf-cxx-${netcdf_cxx_version} +./configure --prefix=$1 ${build_type} --enable-shared --with-pic --enable-largefile --enable-static CPPFLAGS="-O3 -I${HDF5_DIR}/include -I${1}/include" LDFLAGS="-L${HDF5_DIR}/lib -L${1}/lib -Wl,-rpath=${HDF5_DIR}/lib -Wl,-rpath=${1}/lib" CFLAGS="-O3 -L${HDF5_DIR}/lib -L${1}/lib -I${HDF5_DIR}/include -I${1}/include" CXXFLAGS="-O3 -L${HDF5_DIR}/lib -L${1}/lib -I${HDF5_DIR}/include -I${1}/include" FCFLAGS="-O3 -L${HDF5_DIR}/lib -L${1}/lib -I${HDF5_DIR}/include -I${1}/include" +make -j16 +make install \ No newline at end of file