#!/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