diff --git a/package/netcdf/4.7.4/clang/install.sh b/package/netcdf/4.7.4/clang/install.sh index b5244b9356df3eebedf1347330d5d24498fb88c8..a13192beee8c31b7d2bd917cddee6ce176083418 100644 --- a/package/netcdf/4.7.4/clang/install.sh +++ b/package/netcdf/4.7.4/clang/install.sh @@ -5,12 +5,15 @@ set -e set -o posix 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' @@ -30,8 +33,13 @@ export LD_LIBRARY_PATH=$1/lib:$LD_LIBRARY_PATH export NETCDF=${1} cd ../netcdf-fortran-${netcdf_f_version} -./configure --prefix=$1 ${build_type} --enable-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} --enable-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" sed -i '11686c wl="-Wl,"' libtool sed -i '11838c wl="-Wl,"' libtool 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