blob: 984a90e8b3a83db3567150b8429ea1189234bf5e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
PORTNAME= openmpi
PORTVERSION= 4.1.8
CATEGORIES= net parallel
MASTER_SITES= https://download.open-mpi.org/release/open-mpi/v${PORTVERSION:R}/
PKGNAMESUFFIX= 4
MAINTAINER= ports@FreeBSD.org
COMMENT= High Performance Message Passing Library
WWW= https://www.open-mpi.org/
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libhwloc.so.15:devel/hwloc2 \
libltdl.so:devel/libltdl \
libevent.so:devel/libevent \
libmunge.so:security/munge
# :keepla because port uses lt_dlopen
USES= fortran gmake libtool:keepla localbase perl5 \
pkgconfig shebangfix tar:bzip2
CONFLICTS_INSTALL= openmpi-5*
USE_PERL5= build
MPIBASE?= mpi
MPIDIR?= ${MPIBASE}/${PORTNAME}
PLIST_SUB+= MPIDIR=${MPIDIR}
GNU_CONFIGURE= yes
GNU_CONFIGURE_PREFIX= ${PREFIX}/${MPIDIR}
GNU_CONFIGURE_MANPREFIX=${PREFIX}/${MPIDIR}/share
CONFIGURE_ARGS+= --program-prefix= \
--with-hwloc=external \
--with-libltdl \
--without-ofi \
--enable-mpi-fortran=usempi \
--enable-mpi-cxx \
--enable-cxx-exceptions \
--with-libevent=external \
--enable-mca-no-build=verbs,btl_openib,oob_ud \
--without-verbs \
--with-wrapper-ldflags=-Wl,-rpath=-Wl,-rpath=${LOCALBASE}/lib/gcc${_GCC_VER} \
ompi_cv_fortran_ignore_tkr_data=0
USE_LDCONFIG= ${PREFIX}/${MPIDIR}/lib
MANDIRS= ${PREFIX}/${MPIDIR}/share/man
TEST_TARGET= check
SHEBANG_FILES= ompi/mca/common/monitoring/profile2mat.pl \
ompi/mca/common/monitoring/aggregate_profile.pl
PIE_UNSAFE= yes
OPTIONS_DEFINE= AVX DEBUG IPV6 SLURM
OPTIONS_DEFAULT= SLURM
OPTIONS_EXCLUDE_aarch64= AVX
OPTIONS_EXCLUDE_armv6= AVX SLURM
OPTIONS_EXCLUDE_armv7= AVX SLURM
OPTIONS_EXCLUDE_i386= SLURM
OPTIONS_EXCLUDE_mips= AVX SLURM
OPTIONS_EXCLUDE_mips64= AVX
OPTIONS_EXCLUDE_powerpc= AVX SLURM
OPTIONS_EXCLUDE_powerpc64= AVX
OPTIONS_EXCLUDE_powerpc64le= AVX
OPTIONS_EXCLUDE_riscv64= AVX
OPTIONS_SUB= yes
AVX_DESC= Enable AVX instructions
SLURM_DESC= Enable SLURM support
AVX_CONFIGURE_OFF= --enable-mca-no-build=op-avx
DEBUG_CONFIGURE_ENABLE= debug
DEBUG_INSTALL_TARGET_OFF= install-strip
IPV6_CONFIGURE_ENABLE= ipv6
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}/lib/openmpi/mca_schizo_slurm.la \
${MPIDIR}/lib/openmpi/mca_schizo_slurm.so \
${MPIDIR}/share/openmpi/help-plm-slurm.txt \
${MPIDIR}/share/openmpi/help-ras-slurm.txt
.include <bsd.port.options.mk>
.if ${FORTRAN_DEFAULT} == gfortran && ${GCC_DEFAULT} >= 10
FCFLAGS+= -fallow-argument-mismatch
.endif
.if ${ARCH} != aarch64 && ${ARCH} != amd64 && ${ARCH} != i386 && !${ARCH:Mpowerpc*}
PLIST_SUB+= NO_MCA_PATCHER_OVERWRITE="@comment "
.else
PLIST_SUB+= NO_MCA_PATCHER_OVERWRITE=""
.endif
pre-configure:
${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|${LOCALBASE}/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 \
${WRKSRC}/opal/mca/pmix/pmix3x/pmix/Makefile.am \
${WRKSRC}/opal/mca/pmix/pmix3x/pmix/Makefile.in
${REINPLACE_CMD} 's|define MCA_hwloc_external_.*header "|&${LOCALBASE}/include/|' \
${WRKSRC}/configure
.include <bsd.port.mk>
|