1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-08 12:01:56 +00:00
Baptiste Daroussin 4a4ec28d37 Convert all :U to :tu and :L to :tl
Since FreeBSD 8.4 and FreeBSD 9.1 make(1) do support :tu and :tl as a
replacement for :U and :L (which has been marked as deprecated)

bmake which is the default on FreeBSD 10+ only support by default
:tu/:tl a hack has been added at the time to support :U and :L to ease
migration. This hack is now not necessary anymore

Note that this makes the ports tree incompatible with make(1) from
FreeBSD 8.3 or earlier

With hat:	portmgr
2014-05-05 09:45:36 +00:00

75 lines
1.7 KiB
Makefile

# $FreeBSD$
PORTNAME= mpich
DISTVERSION= 3.1
PORTREVISION= 2
CATEGORIES= net parallel
MASTER_SITES= http://www.mpich.org/static/downloads/${DISTVERSION}/
MAINTAINER= tijl@FreeBSD.org
COMMENT= Portable implementation of MPI-1, MPI-2 and MPI-3
LICENSE= MPICH
LICENSE_NAME= MPICH
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
LIB_DEPENDS= libhwloc.so:${PORTSDIR}/devel/hwloc
CONFLICTS= lam-7.* mpd-[0-9]* mpiexec-0.* mpich2-[0-9]*
GNU_CONFIGURE= yes
USES= libtool pkgconfig
USE_LDCONFIG= yes
OPTIONS_DEFINE= DOCS FORTRAN
OPTIONS_GROUP= PM
OPTIONS_GROUP_PM= GFORKER HYDRA
OPTIONS_RADIO= DEFAULTPM
OPTIONS_RADIO_DEFAULTPM=DGFORKER DHYDRA
OPTIONS_DEFAULT= FORTRAN HYDRA DHYDRA
OPTIONS_SUB= yes
FORTRAN_CONFIGURE_ENABLE= f77 fc
FORTRAN_USES= fortran
GFORKER_DESC= Simple local process manager
HYDRA_DESC= Parallel process manager
DGFORKER_DESC= Make gforker the default process manager
DHYDRA_DESC= Make hydra the default process manager
CONFIGURE_ARGS= --with-hwloc-prefix=${LOCALBASE} ac_cv_path_BASH_SHELL=""
.include <bsd.port.options.mk>
.for pm in ${OPTIONS_GROUP_PM}
. if ${PORT_OPTIONS:M${pm}}
. if empty(PMLIST)
PMLIST= ${pm:tl}
. elif ${PORT_OPTIONS:MD${pm}}
PMLIST:= ${pm:tl},${PMLIST}
. else
PMLIST:= ${PMLIST},${pm:tl}
. endif
. endif
.endfor
.if empty(PMLIST)
CONFIGURE_ARGS+=--without-pm
PLIST_SUB+= EXEC="@comment " EXECGFORKER="@comment "
.else
CONFIGURE_ARGS+=--with-pm=${PMLIST}
PLIST_SUB+= EXEC=""
.if ${PMLIST:M*,gforker*}
PLIST_SUB+= EXECGFORKER=""
.else
PLIST_SUB+= EXECGFORKER="@comment "
.endif
.endif
post-patch:
@${REINPLACE_CMD} \
-e '/pkgconfigdir=/s,=.*,=$$prefix/libdata/pkgconfig,' \
${WRKSRC}/configure ${WRKSRC}/src/openpa/configure
.include <bsd.port.mk>