build 736 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() {
4 5 6
	./autogen.sh
}

gsell's avatar
gsell committed
7
pbuild::configure() {
8 9 10 11 12 13
	CC=$MPICC
	CXX=$MPICXX
	F77=$MPIF77
	F90=$MPIF90
	FC=$MPIFC
	FORTRAN=$MPIFORTRAN
14 15
	#( cd "${MODULE_SRCDIR}" && ./autogen.sh )
	"${MODULE_SRCDIR}"/configure \
gsell's avatar
gsell committed
16 17 18 19 20 21 22 23
		--prefix="${PREFIX}" \
		--enable-parallel \
		--enable-debug \
		--with-hdf5=$HDF5_PREFIX \
		--with-pic \
		|| exit 1
}

gsell's avatar
gsell committed
24
pbuild::build() {
gsell's avatar
gsell committed
25 26 27 28
	make -C src
	make -C tools 
}

gsell's avatar
gsell committed
29
pbuild::install() {
gsell's avatar
gsell committed
30 31 32 33 34
	make -C src install
	make -C tools install
}


gsell's avatar
gsell committed
35 36 37 38 39
pbuild::add_to_group 'HDF5'
pbuild::set_runtime_dependencies "${COMPILER}" "${MPI}" 'hdf5'
pbuild::set_build_dependencies   "autoconf" "automake" "libtool" "${COMPILER}" "${MPI}" "hdf5"
pbuild::set_docfiles 'AUTHORS' 'COPYING'
pbuild::make_all
gsell's avatar
gsell committed
40