#!/bin/bash -l PKGNAME=cdo VERSION=1.9.4 SITEURL=https://code.mpimet.mpg.de/attachments/download/17374/ vpkg_devrequire udbuild/2 eccodes/2.8.0:threads proj/5.1.0 vpkg_devrequire netcdf/4.6.1 udunits/2.2.26 fftw/3.3.8 init_udbuildenv create_valet_template download $SITEURL/$PKGNAME-$VERSION.tar.gz unpack $PKGNAME-$VERSION.tar.gz aflag CONFIG --with-szlib="$SZIP_PREFIX" aflag CONFIG --with-hdf5="$HDF5_PREFIX" aflag CONFIG --with-netcdf="$NETCDF_PREFIX" aflag CONFIG --with-eccodes="$ECCODES_PREFIX" aflag CONFIG --with-proj="$PROJ_PREFIX" aflag CONFIG --with-udunits2="$UDUNITS_PREFIX" aflag CONFIG --with-threads=yes aflag CONFIG --with-curl=yes aflag CONFIG --with-libxml=yes ./configure --prefix="$PREFIX" $CONFIG sed -i 's/#include /#include /' src/modules.cc make udbuildmon make install