From: Timo Heister Date: Tue, 26 Jan 2021 18:52:40 +0000 (-0500) Subject: add netcdf 4.7.4 X-Git-Tag: v9.3.0-r3~27^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F166%2Fhead;p=candi.git add netcdf 4.7.4 --- diff --git a/candi.cfg b/candi.cfg index 3596582..c08c3d6 100644 --- a/candi.cfg +++ b/candi.cfg @@ -62,6 +62,7 @@ PACKAGES="${PACKAGES} once:parmetis" #PACKAGES="${PACKAGES} once:sundials" #PACKAGES="${PACKAGES} once:superlu_dist" PACKAGES="${PACKAGES} once:hdf5" +#PACKAGES="${PACKAGES} once:netcdf" PACKAGES="${PACKAGES} once:p4est" PACKAGES="${PACKAGES} once:trilinos" PACKAGES="${PACKAGES} once:petsc" diff --git a/deal.II-toolchain/packages/netcdf.package b/deal.II-toolchain/packages/netcdf.package new file mode 100644 index 0000000..d92a4cb --- /dev/null +++ b/deal.II-toolchain/packages/netcdf.package @@ -0,0 +1,26 @@ +VERSION=4.7.4 +CHECKSUM=33979e8f0cf4ee31323fc0934282111b +EXTRACTSTO=netcdf-c-${VERSION} +NAME=v${VERSION} +PACKING=.tar.gz +SOURCE=https://github.com/Unidata/netcdf-c/archive/ + +BUILDCHAIN=autotools + +BUILDDIR=${BUILD_PATH}/netcdf-${VERSION} +INSTALL_PATH=${INSTALL_PATH}/netcdf-${VERSION} + +CONFOPTS="--disable-dap --enable-parallel --enable-netcdf-4 CPPFLAGS=-I${HDF5_DIR}/include LDFLAGS=-L${HDF5_DIR}/lib CC=${CC}" + +package_specific_register () { + export NETCDF_DIR=${INSTALL_PATH} +} + +package_specific_conf () { + # Generate configuration file + CONFIG_FILE=${CONFIGURATION_PATH}/${NAME} + rm -f $CONFIG_FILE + echo " +export NETCDF_DIR=${INSTALL_PATH} +" >> $CONFIG_FILE +}