Files
MX_Pmodule/HDF5/H5hut/build
Achim Gsell ffa60e09ff HDF5/H5hut/build
- compile without Python for the time being
2016-09-23 16:23:16 +02:00

43 lines
650 B
Plaintext
Executable File

#!/usr/bin/env modbuild
if [[ ${V_MAJOR} == 1 ]]; then
pbuild::compile_in_sourcetree
fi
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