blob: 76fd915d0c87f57db93ae90e6492fa1404fa12a0 (
plain)
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
|
# $NetBSD: Makefile,v 1.51 2022/08/25 22:09:14 thor Exp $
DISTNAME= openmpi-4.1.4
CATEGORIES= parallel
MASTER_SITES= https://download.open-mpi.org/release/open-mpi/v4.1/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= thor@NetBSD.org
HOMEPAGE= https://www.open-mpi.org/
COMMENT= Open source MPI-3.1 implementation
LICENSE= modified-bsd
CONFLICTS= mpich-[0-9]*
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
USE_TOOLS+= perl:run bash:run
GNU_CONFIGURE= yes
CONFIG_SHELL= bash
CONFIGURE_ARGS+= --enable-contrib-no-build=vt # in separate package
CONFIGURE_ARGS+= --with-libltdl=${BUILDLINK_PREFIX.libltdl}
# See below about external hwloc.
#CONFIGURE_ARGS+= --with-hwloc=${BUILDLINK_PREFIX.hwloc}
# OSHM Needs additional dependencies and also is surpassed with proper MPI
# functionality. Rare use cases.
CONFIGURE_ARGS+= --disable-oshmem
CONFIGURE_ARGS+= OPAL_HAVE_LTDL_ADVISE=0
LIBTOOL_OVERRIDE= libtool \
ompi/contrib/vt/vt/extlib/otf/libtool \
ompi/contrib/vt/vt/libtool \
ompi/mca/io/romio/romio/libtool
SHLIBTOOL_OVERRIDE= config/libtool.m4
.include "options.mk"
TEST_TARGET= check
# Unsurprisingly, files that are only produced on GNU/Linux systems.
PLIST_VARS+= linux
# \todo Explain. Apparently built if !Linux.
PLIST_VARS+= pstattest
# \todo Explain.
PLIST_VARS+= ignoretkr
PLIST_VARS+= noignoretkr
.if ${OPSYS} == "Linux"
PLIST.linux= yes
.endif
.if ${OPSYS} != "Linux"
PLIST.pstattest= yes
.endif
.if ${OPSYS} == "Linux" || ${OPSYS} == "NetBSD"
PLIST.ignoretkr= yes
.else
# \todo Explain why on Darwin we don't set one of them.
. if ${OPSYS} != "Darwin"
PLIST.noignoretkr= yes
. endif
.endif
REPLACE_PERL= ompi/tools/wrappers/mpijavac.pl.in
REPLACE_PERL+= ompi/mca/common/monitoring/*.pl
EGDIR= ${PREFIX}/share/examples/openmpi
CONF_SAMPLES+= openmpi-default-hostfile openmpi-mca-params.conf
CONF_SAMPLES+= pmix-mca-params.conf
.for i in ${CONF_SAMPLES}
CONF_FILES+= ${EGDIR}/${i} ${PKG_SYSCONFDIR}/${i}
.endfor
INSTALLATION_DIRS+= ${EGDIR}
post-install:
.for i in ${CONF_SAMPLES}
${MV} ${DESTDIR}${PKG_SYSCONFDIR}/${i} ${DESTDIR}${EGDIR}/${i}
.endfor
.include "../../devel/libltdl/buildlink3.mk"
# Too old, use internal hwloc 2 instead. As hwloc 2 API/ABI is incompatible,
# upgrade has to be considered carefully.
#.include "../../parallel/hwloc/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|