Files
MX_Pmodule/HDF5/H5hut/build
Achim Gsell 65c3540ad7 HDF5/build:
- declaration of dependencies moved to variants file
- building of Fortran API enabled
- building shared libs enabled
- building Python API enabled if major version >= 0
2016-06-03 17:29:18 +02:00

39 lines
580 B
Plaintext
Executable File

#!/usr/bin/env modbuild
pbuild::pre_configure() {
./autogen.sh
}
pbuild::configure() {
if (( V_MAJOR >= 2 )); then
config_args+=" --enable-python"
fi
"${MODULE_SRCDIR}"/configure \
--prefix="${PREFIX}" \
--enable-parallel \
--enable-debug \
--enable-fortran \
--enable-shared \
--with-hdf5=$HDF5_PREFIX \
--with-pic \
${config_args} \
|| exit 1
}
pbuild::build() {
make -C src
make -C tools
}
pbuild::install() {
make -C src install
make -C tools install
}
pbuild::add_to_group 'HDF5'
pbuild::set_docfiles 'AUTHORS' 'COPYING'
pbuild::make_all