2012-12-10 14:43:43 +01:00
|
|
|
# Created by: dbader@ece.unm.edu
|
1999-08-30 16:24:37 +02:00
|
|
|
# $FreeBSD$
|
1998-05-03 03:43:08 +02:00
|
|
|
|
2006-07-22 10:35:22 +02:00
|
|
|
PORTNAME= mpich2
|
2014-09-01 23:50:14 +02:00
|
|
|
DISTVERSION= 1.5
|
Bump PORTREVISIONs for ports depending on the canonical version of GCC and
lang/gcc which have moved from GCC 4.9.4 to GCC 5.4 (at least under some
circumstances such as versions of FreeBSD or platforms).
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using using Mk/bsd.octave.mk which in turn has USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c++11-lib, c++14-lang,
c++11-lang, c++0x, c11, or gcc-c++11-lib.
PR: 216707
2017-04-01 17:23:30 +02:00
|
|
|
PORTREVISION= 6
|
2010-03-15 18:45:51 +01:00
|
|
|
PORTEPOCH= 5
|
2012-03-06 06:16:32 +01:00
|
|
|
CATEGORIES= net java parallel
|
2011-02-26 10:56:41 +01:00
|
|
|
MASTER_SITES= http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/${DISTVERSION}/
|
2001-08-26 19:57:37 +02:00
|
|
|
DIST_SUBDIR= mpich
|
1998-05-03 03:43:08 +02:00
|
|
|
|
2014-08-20 23:27:56 +02:00
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
2014-07-10 14:13:11 +02:00
|
|
|
COMMENT= Portable implementation of MPI-1 and MPI-2
|
2005-05-14 14:16:02 +02:00
|
|
|
|
2011-02-26 10:56:41 +01:00
|
|
|
LICENSE= MPICH
|
|
|
|
LICENSE_NAME= MPICH
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
|
2012-03-06 06:16:32 +01:00
|
|
|
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
2011-02-26 10:56:41 +01:00
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
BUILD_DEPENDS= bash:shells/bash
|
|
|
|
RUN_DEPENDS= bash:shells/bash
|
2009-11-28 11:44:43 +01:00
|
|
|
|
2012-03-06 06:16:32 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2015-12-20 17:39:14 +01:00
|
|
|
USES= execinfo libtool:keepla localbase fortran perl5 \
|
|
|
|
pkgconfig python
|
2014-02-16 18:15:31 +01:00
|
|
|
USE_GCC= yes
|
2012-03-06 06:16:32 +01:00
|
|
|
USE_LDCONFIG= yes
|
2013-08-31 02:26:08 +02:00
|
|
|
USE_PERL5= build
|
2014-09-24 13:55:13 +02:00
|
|
|
INSTALL_TARGET= install-strip
|
2012-03-06 06:16:32 +01:00
|
|
|
|
2013-06-04 08:34:05 +02:00
|
|
|
OPTIONS_DEFINE_i386= JAVA
|
|
|
|
OPTIONS_DEFINE_amd64= JAVA
|
|
|
|
OPTIONS_DEFINE= SMPD X11 DOCS
|
|
|
|
OPTIONS_DEFAULT_i386= JAVA
|
|
|
|
OPTIONS_DEFAULT_amd64= JAVA
|
|
|
|
OPTIONS_DEFAULT= X11
|
|
|
|
JAVA_DESC= build MPE Jumpshot-4
|
|
|
|
SMPD_DESC= use SMPD instead of MPD, for a mixed-OS cluster
|
|
|
|
X11_DESC= build MPE graphics routines
|
2004-02-22 23:34:16 +01:00
|
|
|
|
2010-11-14 23:00:10 +01:00
|
|
|
CONFIGURE_ARGS= --enable-romio --enable-shared \
|
2013-12-15 16:43:22 +01:00
|
|
|
--docdir="${DOCSDIR}" \
|
|
|
|
--with-python="${PYTHON_CMD}"
|
2012-03-06 06:16:32 +01:00
|
|
|
CONFIGURE_ENV= FCFLAGS="${FFLAGS}" \
|
2014-09-30 09:59:15 +02:00
|
|
|
MPI_CFLAGS="-I${LOCALBASE}/include" \
|
2015-03-26 00:51:05 +01:00
|
|
|
PACKAGE="${PORTNAME}" \
|
|
|
|
PTHREAD_LIBS="-lpthread"
|
2012-03-06 06:16:32 +01:00
|
|
|
|
|
|
|
.if ${FFLAGS} == "-O"
|
2014-07-29 22:55:27 +02:00
|
|
|
FFLAGS= -O2
|
2009-07-22 23:22:44 +02:00
|
|
|
.endif
|
2015-03-26 00:51:05 +01:00
|
|
|
LDFLAGS+= -lpthread -L${LOCALBASE}/lib -lexecinfo
|
2007-01-11 00:42:54 +01:00
|
|
|
|
2012-03-06 06:16:32 +01:00
|
|
|
MAKE_ENV= CCACHE_DISABLE=yes PACKAGE=${PORTNAME}
|
|
|
|
NOCCACHE= yes
|
2006-07-22 10:35:22 +02:00
|
|
|
|
2012-03-06 06:16:32 +01:00
|
|
|
CONFLICTS= lam-7.* mpd-[0-9]* mpiexec-0.*
|
2005-05-26 03:44:10 +02:00
|
|
|
|
2014-09-01 23:50:14 +02:00
|
|
|
VERSO= 8.0.1
|
|
|
|
VERSOM= ${VERSO:R:R}
|
2010-11-14 23:00:10 +01:00
|
|
|
PLIST_SUB= VER=${VERSO} VERM=${VERSOM}
|
2012-03-06 06:16:32 +01:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2014-08-20 23:27:56 +02:00
|
|
|
THREAD2FIX= configure test/mpi/threads/comm/Makefile.in \
|
|
|
|
test/mpi/threads/pt2pt/Makefile.in \
|
|
|
|
src/mpe2/src/logging/configure \
|
|
|
|
src/mpi/romio/configure src/openpa/configure \
|
|
|
|
src/pm/hydra/configure
|
|
|
|
LOCALBASE2FIX= src/mpe2/src/slog2sdk/trace_rlog/configure \
|
|
|
|
src/mpe2/src/slog2sdk/trace_sample/configure \
|
|
|
|
src/mpe2/src/graphics/configure
|
2014-08-26 21:53:12 +02:00
|
|
|
STAGE2FIX= bin/mpicc bin/mpicxx bin/mpif77 bin/mpif90 \
|
|
|
|
etc/mpicc.conf etc/mpicxx.conf etc/mpif77.conf \
|
|
|
|
etc/mpif90.conf sbin/mpeuninstall
|
2014-08-20 23:27:56 +02:00
|
|
|
DOC2PATCH= Makefile.in src/mpe2/sbin/mpeinstall.in \
|
|
|
|
src/openpa/Makefile.in src/mpi/romio/util/romioinstall.in
|
|
|
|
CONFPFX2FIX1= src/pm/mpd/mpd.py
|
|
|
|
CONFPFX2FIX2= doc/installguide/install.tex.vin \
|
|
|
|
src/pm/mpd/mpdroot.c
|
|
|
|
BIN2STRIP= check_callstack clog2_join clog2_print clog2_repair
|
|
|
|
|
2012-03-06 06:16:32 +01:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2013-06-04 08:34:05 +02:00
|
|
|
.if ${PORT_OPTIONS:MDEBUG}
|
2012-03-06 06:16:32 +01:00
|
|
|
MAKE_ENV+= VERBOSE=1
|
|
|
|
.endif
|
|
|
|
|
2013-06-04 08:34:05 +02:00
|
|
|
.if ! ${PORT_OPTIONS:MJAVA}
|
2005-05-14 14:16:02 +02:00
|
|
|
CONFIGURE_ARGS+= --without-java
|
2002-09-12 19:58:39 +02:00
|
|
|
PLIST_SUB+= JAVA="@comment "
|
2008-04-08 21:02:12 +02:00
|
|
|
PLX11= "@comment "
|
2002-09-12 19:58:39 +02:00
|
|
|
.else
|
2013-06-04 08:34:05 +02:00
|
|
|
.if ! ${PORT_OPTIONS:MX11}
|
2014-07-29 22:55:27 +02:00
|
|
|
IGNORE= WITH_JAVA requires WITH_X11
|
2012-03-06 06:16:32 +01:00
|
|
|
.endif
|
|
|
|
CONFIGURE_ARGS+= --with-java="${JAVA_HOME}"
|
2005-05-14 14:16:02 +02:00
|
|
|
USE_JAVA= yes
|
2012-12-10 14:43:43 +01:00
|
|
|
JAVA_VERSION= 1.6+
|
2005-05-14 14:16:02 +02:00
|
|
|
PLIST_SUB+= JAVA=""
|
2008-04-08 21:02:12 +02:00
|
|
|
PLX11= ""
|
2014-08-20 23:27:56 +02:00
|
|
|
BIN2STRIP+= rlog_check_timeorder rlog_print
|
2002-09-12 19:58:39 +02:00
|
|
|
.endif
|
2000-11-17 12:45:09 +01:00
|
|
|
|
2012-03-06 06:16:32 +01:00
|
|
|
#define WITH_RECV_TIMEOUT to be an appropriate value (>20 for slow machines),
|
|
|
|
#in order to set a different default MPIEXEC_RECV_TIMEOUT
|
|
|
|
.if defined(MAINTAINER_MODE)
|
|
|
|
WITH_RECV_TIMEOUT?= 100
|
|
|
|
.else
|
|
|
|
WITH_RECV_TIMEOUT?= 20
|
|
|
|
.endif
|
|
|
|
|
2013-06-04 08:34:05 +02:00
|
|
|
.if ${PORT_OPTIONS:MSMPD}
|
2006-09-25 21:43:30 +02:00
|
|
|
CONFIGURE_ARGS+= --with-pmi=smpd --with-pm=smpd
|
|
|
|
PLIST_SUB+= PM_MPD="@comment " PM_SMPD=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-pmi=simple --with-pm=mpd
|
|
|
|
PLIST_SUB+= PM_MPD="" PM_SMPD="@comment "
|
2014-08-20 23:27:56 +02:00
|
|
|
BIN2STRIP+= mpdroot
|
2006-09-25 21:43:30 +02:00
|
|
|
.endif
|
|
|
|
|
2013-06-04 08:34:05 +02:00
|
|
|
.if ! ${PORT_OPTIONS:MX11}
|
2012-03-06 06:16:32 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-graphics
|
|
|
|
PLIST_SUB+= X11="@comment "
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --x-includes=${LOCALBASE}/include --x-libraries==${LOCALBASE}/lib
|
|
|
|
USE_XORG= x11 xt
|
|
|
|
PLIST_SUB+= X11=${PLX11}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-07-22 10:35:22 +02:00
|
|
|
pre-configure:
|
|
|
|
${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${LOCALBASE2FIX:S|^|${WRKSRC}/|}
|
2009-06-27 19:00:22 +02:00
|
|
|
${FIND} ${WRKSRC} -name configure | ${XARGS} \
|
|
|
|
${REINPLACE_CMD} -e 's|doc/$${PACKAGE}|doc/${PORTNAME}|'
|
|
|
|
.for fin in ${DOC2PATCH}
|
2013-06-04 08:34:05 +02:00
|
|
|
. if ${PORT_OPTIONS:MDOCS}
|
2008-05-25 23:49:02 +02:00
|
|
|
${REINPLACE_CMD} -e 's|%%PORTDOCS%%||' ${WRKSRC}/${fin}
|
2013-06-04 08:34:05 +02:00
|
|
|
. else
|
|
|
|
${REINPLACE_CMD} -e 's|%%PORTDOCS%%|#|' ${WRKSRC}/${fin}
|
2008-05-25 23:49:02 +02:00
|
|
|
. endif
|
|
|
|
.endfor
|
2013-06-04 08:34:05 +02:00
|
|
|
.if ! ${PORT_OPTIONS:MDOCS}
|
2009-06-27 19:00:22 +02:00
|
|
|
${REINPLACE_CMD} -e 's|lib doc share|lib share|' \
|
|
|
|
${WRKSRC}/src/mpe2/src/slog2sdk/sbin/install-package.in
|
|
|
|
.endif
|
2009-11-28 11:44:43 +01:00
|
|
|
${REINPLACE_CMD} -e '/MPIEXEC_RECV_TIMEOUT/s|20,|${WITH_RECV_TIMEOUT},|' \
|
|
|
|
${WRKSRC}/src/pm/mpd/mpiexec.py
|
|
|
|
${REINPLACE_CMD} -e 's|%%SRCDIR%%|${WRKSRC}|' ${WRKSRC}/${CONFIGURE_SCRIPT}
|
|
|
|
.for cnf in ${CONFPFX2FIX1}
|
|
|
|
${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|' ${WRKSRC}/${cnf}
|
|
|
|
.endfor
|
|
|
|
.for cnf in ${CONFPFX2FIX2}
|
|
|
|
${REINPLACE_CMD} -e 's|/etc/mpd.conf|${PREFIX}/etc/mpd.conf|' \
|
|
|
|
${WRKSRC}/${cnf}
|
|
|
|
.endfor
|
2007-03-20 01:58:48 +01:00
|
|
|
|
2005-05-14 14:16:02 +02:00
|
|
|
post-install:
|
2014-08-26 21:53:12 +02:00
|
|
|
(cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
|
2014-08-20 23:27:56 +02:00
|
|
|
-d ${PREFIX} -f bin)
|
2014-08-26 21:53:12 +02:00
|
|
|
(cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
|
2014-08-20 23:27:56 +02:00
|
|
|
-d ${PREFIX} -f bin)
|
2009-11-28 11:44:43 +01:00
|
|
|
@${ECHO_CMD} "MPD_SECRETWORD=change_on_install" > ${WRKDIR}/mpd.conf.dist
|
2014-08-20 23:27:56 +02:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/mpd.conf.dist ${STAGEDIR}${PREFIX}/etc/
|
2014-08-26 21:53:12 +02:00
|
|
|
.for pg in ${STAGE2FIX}
|
2014-08-20 23:27:56 +02:00
|
|
|
${REINPLACE_CMD} -e '/${STAGEDIR:C|/|\/|g}/s|${STAGEDIR}||' \
|
2014-08-26 21:53:12 +02:00
|
|
|
${STAGEDIR}${PREFIX}/${pg}
|
|
|
|
${RM} ${STAGEDIR}${PREFIX}/${pg}.bak
|
|
|
|
.endfor
|
2014-08-20 23:27:56 +02:00
|
|
|
.for pg in ${BIN2STRIP}
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${pg}
|
|
|
|
.endfor
|
2014-09-24 13:55:13 +02:00
|
|
|
.if ${PORT_OPTIONS:MJAVA}
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/trace_rlog/libTraceInput.so
|
|
|
|
.endif
|
2005-05-14 14:16:02 +02:00
|
|
|
|
|
|
|
.if defined(MAINTAINER_MODE)
|
2006-07-22 10:35:22 +02:00
|
|
|
regression-test: install
|
|
|
|
.if !exists(${HOME}/.mpd.conf)
|
|
|
|
@${ECHO_CMD} "MPD_SECRETWORD=change_on_install" > ${HOME}/.mpd.conf
|
|
|
|
${CHMOD} go-r ${HOME}/.mpd.conf
|
|
|
|
@${ECHO_MSG} "${HOME}/.mpd.conf has been generated - please change the secret word!"
|
|
|
|
.endif
|
2012-03-06 06:16:32 +01:00
|
|
|
@${ECHO_MSG} "Increase MPIEXEC_RECV_TIMEOUT if needed!"
|
2006-07-22 10:35:22 +02:00
|
|
|
${PREFIX}/bin/mpd &
|
|
|
|
(cd ${WRKSRC} && \
|
2006-12-19 21:08:10 +01:00
|
|
|
PATH=${PATH}:${PREFIX}/bin VERBOSE=1 ${MAKE} testing)
|
2006-07-22 10:35:22 +02:00
|
|
|
${PREFIX}/bin/mpdallexit
|
2005-05-14 14:16:02 +02:00
|
|
|
.endif
|
1998-07-27 02:25:59 +02:00
|
|
|
|
2000-04-02 06:26:02 +02:00
|
|
|
.include <bsd.port.post.mk>
|