build 506 Bytes
Newer Older
gsell's avatar
gsell committed
1
#!/usr/bin/env modbuild
gsell's avatar
gsell committed
2

gsell's avatar
gsell committed
3
pbuild::pre_configure() {
gsell's avatar
gsell committed
4 5 6
	:
}

gsell's avatar
gsell committed
7
pbuild::configure() {
gsell's avatar
gsell committed
8 9 10 11 12 13
	CC=$MPICC
	CXX=$MPICXX
	F77=$MPIF77
	F90=$MPIF90
	FC=$MPIFC
	FORTRAN=$MPIFORTRAN
14
	"${MODULE_SRCDIR}"/configure \
gsell's avatar
gsell committed
15 16 17 18 19 20
		--prefix="${PREFIX}" \
		--enable-netcdf-4 \
		--with-pic \
		|| exit 1
}

gsell's avatar
gsell committed
21 22 23 24 25
pbuild::add_to_group 'HDF5'
pbuild::set_runtime_dependencies "${COMPILER}" "${MPI}" 'hdf5'
pbuild::set_build_dependencies   "${COMPILER}" "${MPI}" 'hdf5'
pbuild::set_docfiles 'COPYRIGHT' 'README.md' 'RELEASE_NOTES.md'
pbuild::make_all
gsell's avatar
gsell committed
26