--- pkgsrc-2016Q4/mk/mpi.buildlink3.mk.orig	2017-02-07 15:03:27.980829557 +0100
+++ pkgsrc-2016Q4/mk/mpi.buildlink3.mk	2017-02-07 15:08:08.816288251 +0100
@@ -9,7 +9,7 @@
 # MPI_TYPE
 #	This value represents the type of MPI we wish to use on the system.
 #
-#	Possible: mpich, openmpi
+#	Possible: mpich, openmpi, native
 #	Default: mpich
 
 .if !defined(MPI_BUILDLINK3_MK)
@@ -21,10 +21,13 @@
 .if exists($(LOCALBASE)/bin/mpicc)
 _MPI_PACKAGE!=	${PKG_INFO} -Q PKGPATH -F ${LOCALBASE}/bin/mpicc
 MPI_TYPE?=	${_MPI_PACKAGE:T}
-.else
+.endif
 
 MPI_TYPE?=	mpich	# default to MPICH due to backward compatibility
-.if $(MPI_TYPE) == "mpich"
+
+.if $(MPI_TYPE) == "native"
+# nothing
+.elif $(MPI_TYPE) == "mpich"
 _MPI_PACKAGE=	parallel/mpi-ch
 .elif $(MPI_TYPE) == "openmpi"
 _MPI_PACKAGE=	parallel/openmpi
@@ -32,8 +35,9 @@
 PKG_FAIL_REASON+=	\
 	"${MPI_TYPE} is not an acceptable MPI type for ${PKGNAME}."
 .endif
-.endif
 
+.if defined(_MPI_PACKAGE)
 .include "../../$(_MPI_PACKAGE)/buildlink3.mk"
+.endif
 
 .endif	# MPI_BUILDLINK3_MK
