Files
MX_Pmodule/MPI/hdf5/build
Achim 4e6dbc5105 MPI/hdf5/build
- SOURCE_URL added
- export CXX (required on some systems=
2016-11-10 05:28:15 -08:00

37 lines
635 B
Plaintext
Executable File

#!/usr/bin/env modbuild
SOURCE_URL="https://support.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.17.tar.bz2"
pbuild::configure() {
CC=$MPICC
export CXX=$MPICXX
F77=$MPIF77
F90=$MPIF90
FC=$MPIFC
FORTRAN=$MPIFORTRAN
local conf=''
conf+=' --enable-shared'
conf+=' --enable-parallel'
conf+=' --enable-cxx'
conf+=' --enable-fortran'
conf+=' --enable-unsupported'
#conf+=' --enable-threadsafe'
conf+=' --with-pic'
"${MODULE_SRCDIR}"/configure \
--prefix="${PREFIX}" \
${conf} \
|| exit 1
}
pbuild::add_to_group 'MPI'
pbuild::set_docfiles \
ACKNOWLEDGMENTS \
COPYING \
MANIFEST \
README.txt
pbuild::make_all