2016-11-18 13:15:58 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= openmpi
|
2017-02-01 13:21:42 +00:00
|
|
|
PORTVERSION= 2.0.2
|
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 15:23:30 +00:00
|
|
|
PORTREVISION= 4
|
2016-11-18 13:15:58 +00:00
|
|
|
CATEGORIES= net parallel
|
|
|
|
MASTER_SITES= http://www.open-mpi.org/software/ompi/v${PORTVERSION:R}/downloads/
|
|
|
|
PKGNAMESUFFIX= 2
|
|
|
|
|
|
|
|
MAINTAINER= danilo@FreeBSD.org
|
|
|
|
COMMENT= High Performance Message Passing Library
|
|
|
|
|
2017-02-22 13:10:32 +00:00
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
2016-11-18 13:15:58 +00:00
|
|
|
LIB_DEPENDS= libhwloc.so:devel/hwloc \
|
|
|
|
libltdl.so:devel/libltdl \
|
2017-02-20 02:57:04 +00:00
|
|
|
libevent.so:devel/libevent \
|
2016-11-18 13:15:58 +00:00
|
|
|
libmunge.so:security/munge
|
|
|
|
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
INSTALL_TARGET= install-strip
|
|
|
|
# :keepla because port uses lt_dlopen
|
2017-03-12 16:11:48 +00:00
|
|
|
USES= execinfo fortran gmake libtool:keepla localbase perl5 \
|
|
|
|
pkgconfig tar:bzip2
|
2016-11-18 13:15:58 +00:00
|
|
|
USE_PERL5= build
|
|
|
|
|
|
|
|
MPIBASE?= mpi
|
|
|
|
MPIDIR?= ${MPIBASE}/${PKGBASE}
|
|
|
|
|
|
|
|
PLIST_SUB+= MPIBASE=${MPIBASE}
|
|
|
|
PLIST_SUB+= MPIDIR=${MPIDIR}
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX}/${MPIDIR} \
|
|
|
|
--mandir=${PREFIX}/${MPIDIR}/man \
|
|
|
|
--program-prefix= \
|
2017-03-12 16:11:48 +00:00
|
|
|
--with-hwloc=external \
|
|
|
|
--with-libltdl \
|
2016-11-18 13:15:58 +00:00
|
|
|
--enable-mpi-fortran=usempi \
|
2016-11-24 15:13:22 +00:00
|
|
|
--enable-mpi-cxx \
|
|
|
|
--enable-cxx-exceptions \
|
|
|
|
--enable-heterogeneous \
|
|
|
|
--enable-mpi-thread-multiple \
|
2017-03-12 16:11:48 +00:00
|
|
|
--with-libevent=external \
|
2016-11-18 13:15:58 +00:00
|
|
|
ompi_cv_fortran_ignore_tkr_data=0
|
|
|
|
|
|
|
|
USE_LDCONFIG= ${PREFIX}/${MPIDIR}/lib \
|
|
|
|
${PREFIX}/${MPIDIR}/lib/openmpi
|
|
|
|
|
|
|
|
MANPREFIX= ${PREFIX}/${MPIDIR}
|
|
|
|
|
2016-11-24 15:13:22 +00:00
|
|
|
OPTIONS_DEFINE= DEBUG IPV6 SLURM TORQUE
|
2016-11-18 13:15:58 +00:00
|
|
|
TORQUE_DESC= Enable Torque support
|
|
|
|
SLURM_DESC= Enable SLURM support
|
|
|
|
OPTIONS_DEFAULT= SLURM
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
|
2016-11-24 15:13:22 +00:00
|
|
|
DEBUG_CONFIGURE_ENABLE= debug
|
|
|
|
|
2016-11-18 13:15:58 +00:00
|
|
|
IPV6_CONFIGURE_ENABLE= ipv6
|
|
|
|
|
2017-03-12 16:11:48 +00:00
|
|
|
TORQUE_CONFIGURE_WITH= tm
|
2016-11-18 13:15:58 +00:00
|
|
|
TORQUE_LIB_DEPENDS= libtorque.so:sysutils/torque
|
|
|
|
TORQUE_PLIST_FILES= ${MPIDIR}/lib/openmpi/mca_plm_tm.so \
|
|
|
|
${MPIDIR}/lib/openmpi/mca_plm_tm.la \
|
|
|
|
${MPIDIR}/lib/openmpi/mca_ras_tm.la \
|
|
|
|
${MPIDIR}/lib/openmpi/mca_ras_tm.so \
|
|
|
|
${MPIDIR}/lib/openmpi/mca_ess_tm.so \
|
|
|
|
${MPIDIR}/lib/openmpi/mca_ess_tm.la \
|
|
|
|
${MPIDIR}/share/openmpi/help-plm-tm.txt \
|
|
|
|
${MPIDIR}/share/openmpi/help-ras-tm.txt
|
|
|
|
|
|
|
|
SLURM_CONFIGURE_WITH= slurm
|
|
|
|
SLURM_LIB_DEPENDS= libslurm.so:sysutils/slurm-wlm
|
|
|
|
SLURM_PLIST_FILES= ${MPIDIR}/lib/openmpi/mca_ess_slurm.la \
|
|
|
|
${MPIDIR}/lib/openmpi/mca_ess_slurm.so \
|
|
|
|
${MPIDIR}/lib/openmpi/mca_plm_slurm.la \
|
|
|
|
${MPIDIR}/lib/openmpi/mca_plm_slurm.so \
|
|
|
|
${MPIDIR}/lib/openmpi/mca_ras_slurm.la \
|
|
|
|
${MPIDIR}/lib/openmpi/mca_ras_slurm.so \
|
|
|
|
${MPIDIR}/share/openmpi/help-plm-slurm.txt \
|
|
|
|
${MPIDIR}/share/openmpi/help-ras-slurm.txt
|
|
|
|
|
|
|
|
BROKEN_sparc64= Does not compile on sparc64
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|${PREFIX}/${MPIDIR}/libdata/pkgconfig|g' \
|
|
|
|
${WRKSRC}/ompi/tools/wrappers/Makefile.am \
|
|
|
|
${WRKSRC}/ompi/tools/wrappers/Makefile.in \
|
|
|
|
${WRKSRC}/opal/tools/wrappers/Makefile.am \
|
|
|
|
${WRKSRC}/opal/tools/wrappers/Makefile.in \
|
|
|
|
${WRKSRC}/orte/tools/wrappers/Makefile.am \
|
|
|
|
${WRKSRC}/orte/tools/wrappers/Makefile.in
|
2017-03-12 16:11:48 +00:00
|
|
|
@${REINPLACE_CMD} 's|define MCA_hwloc_external_.*header "|&${LOCALBASE}/include/|' \
|
|
|
|
${WRKSRC}/configure
|
2016-11-18 13:15:58 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|