#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

export CC=mpicc
export CXX=mpicxx

export PRTE_MCA_plm_ssh_agent=/bin/false
export PRTE_MCA_rmaps_default_mapping_policy=:oversubscribe

%:
	dh $@

override_dh_autoreconf:
	echo $(DEB_VERSION_UPSTREAM) > .tarball-version
	echo $(DEB_VERSION_UPSTREAM) > sc/.tarball-version
	dh_autoreconf ./bootstrap

override_dh_auto_configure:
	dh_auto_configure -- \
		--enable-mpi \
		--enable-mpiio
