diff --git a/HDF5/netcdf/build b/HDF5/netcdf/build index 40e0960..9b92961 100755 --- a/HDF5/netcdf/build +++ b/HDF5/netcdf/build @@ -1,10 +1,6 @@ #!/usr/bin/env modbuild -SOURCE_URL="https://www.unidata.ucar.edu/downloads/$P/ftp/$P-$V.tar.gz" - -pbuild::pre_configure() { - : -} +pbuild::set_download_url "https://www.unidata.ucar.edu/downloads/$P/ftp/$P-$V.tar.gz" pbuild::configure() { CC=$MPICC @@ -26,6 +22,9 @@ pbuild::compile() { make check make make install + # configure requires libnetcdf + LIBRARY_PATH+=":${BUILD_DIR}/liblib/.libs" + LD_LIBRARY_PATH+=":${BUILD_DIR}/liblib/.libs" make build-netcdf-fortran make install-netcdf-fortran }