blob: a21c7cc0ed41fec6d9382aa9b45988d345f3762f (
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
|
# $FreeBSD$
# TODO:
# - etc/*.sample support
PORTNAME= openmpi
PORTVERSION= 1.10.7
PORTREVISION= 1
CATEGORIES= net parallel
MASTER_SITES= http://www.open-mpi.org/software/ompi/v${PORTVERSION:R}/downloads/
MAINTAINER= danilo@FreeBSD.org
COMMENT= High Performance Message Passing Library
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libhwloc.so:devel/hwloc \
libltdl.so:devel/libltdl \
libevent.so:devel/libevent
HAS_CONFIGURE= yes
INSTALL_TARGET= install-strip
# :keepla because port uses lt_dlopen
USES= execinfo fortran gmake libtool:keepla perl5 pkgconfig tar:bzip2
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= \
--with-hwloc=${LOCALBASE} \
--with-libltdl=${LOCALBASE} \
--enable-mpi-fortran=usempi \
--with-libevent=external \
--with-wrapper-ldflags=-Wl,-rpath=-Wl,-rpath=${LOCALBASE}/lib/gcc${_GCC_VER} \
ompi_cv_fortran_ignore_tkr_data=0
LDFLAGS+= -L${LOCALBASE}/lib
USE_LDCONFIG= ${PREFIX}/${MPIDIR}/lib \
${PREFIX}/${MPIDIR}/lib/openmpi
MANPREFIX= ${PREFIX}/${MPIDIR}
OPTIONS_DEFINE= IPV6 SLURM TORQUE VT
TORQUE_DESC= Enable Torque support
SLURM_DESC= Enable SLURM support
VT_DESC= Enable VampirTrace support
OPTIONS_DEFAULT= SLURM
OPTIONS_SUB= yes
IPV6_CONFIGURE_ENABLE= ipv6
TORQUE_CONFIGURE_ON= --with-tm=${LOCALBASE}
TORQUE_CONFIGURE_OFF= --without-tm
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
VT_CONFIGURE_OFF= --enable-contrib-no-build=vt --disable-vt
VT_USE= JAVA=yes
BROKEN_sparc64= Does not compile on sparc64
.include <bsd.port.mk>
|