[BACK]Return to mpi.buildlink3.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / mk

File: [cvs.NetBSD.org] / pkgsrc / mk / mpi.buildlink3.mk (download)

Revision 1.3, Sat Sep 24 18:34:24 2016 UTC (2 years, 5 months ago) by kamil
Branch: MAIN
CVS Tags: pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-, HEAD
Changes since 1.2: +3 -3 lines

Appease pkglint(1) - replace () with {}

No functional change

# $NetBSD: mpi.buildlink3.mk,v 1.3 2016/09/24 18:34:24 kamil Exp $
# This Makefile fragment is meant to be included by packages
# that use any MPI implementation instead of one particular one.
# The available MPI implementations are "mpich" and "openmpi".
# === User-settable variables ===
#	This value represents the type of MPI we wish to use on the system.
#	Possible: mpich, openmpi
#	Default: mpich

.if !defined(MPI_BUILDLINK3_MK)
MPI_BUILDLINK3_MK=	# define it

.include "../../mk/bsd.prefs.mk"

# Try to find if we have anything installed already
.if exists($(LOCALBASE)/bin/mpicc)

MPI_TYPE?=	mpich	# default to MPICH due to backward compatibility
.if $(MPI_TYPE) == "mpich"
_MPI_PACKAGE=	parallel/mpi-ch
.elif $(MPI_TYPE) == "openmpi"
_MPI_PACKAGE=	parallel/openmpi
.else # invalid or unimplemented type
	"${MPI_TYPE} is not an acceptable MPI type for ${PKGNAME}."

.include "../../$(_MPI_PACKAGE)/buildlink3.mk"