| @@ -1,85 +1,86 @@ | | | @@ -1,85 +1,86 @@ |
1 | # $NetBSD: Makefile,v 1.51 2022/08/25 22:09:14 thor Exp $ | | 1 | # $NetBSD: Makefile,v 1.52 2023/01/12 11:34:10 markd Exp $ |
2 | | | 2 | |
3 | DISTNAME= openmpi-4.1.4 | | 3 | DISTNAME= openmpi-4.1.4 |
4 | CATEGORIES= parallel | | 4 | CATEGORIES= parallel |
5 | MASTER_SITES= https://download.open-mpi.org/release/open-mpi/v4.1/ | | 5 | MASTER_SITES= https://download.open-mpi.org/release/open-mpi/v4.1/ |
6 | EXTRACT_SUFX= .tar.bz2 | | 6 | EXTRACT_SUFX= .tar.bz2 |
7 | | | 7 | |
8 | MAINTAINER= thor@NetBSD.org | | 8 | MAINTAINER= thor@NetBSD.org |
9 | HOMEPAGE= https://www.open-mpi.org/ | | 9 | HOMEPAGE= https://www.open-mpi.org/ |
10 | COMMENT= Open source MPI-3.1 implementation | | 10 | COMMENT= Open source MPI-3.1 implementation |
11 | LICENSE= modified-bsd | | 11 | LICENSE= modified-bsd |
12 | | | 12 | |
13 | CONFLICTS= mpich-[0-9]* | | 13 | CONFLICTS= mpich-[0-9]* |
14 | | | 14 | |
15 | USE_LANGUAGES= c c++ | | 15 | USE_LANGUAGES= c c++ |
16 | USE_LIBTOOL= yes | | 16 | USE_LIBTOOL= yes |
17 | USE_TOOLS+= perl:run bash:run | | 17 | USE_TOOLS+= perl:run bash:run |
18 | GNU_CONFIGURE= yes | | 18 | GNU_CONFIGURE= yes |
19 | CONFIG_SHELL= bash | | 19 | CONFIG_SHELL= bash |
| | | 20 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} |
20 | CONFIGURE_ARGS+= --enable-contrib-no-build=vt # in separate package | | 21 | CONFIGURE_ARGS+= --enable-contrib-no-build=vt # in separate package |
21 | CONFIGURE_ARGS+= --with-libltdl=${BUILDLINK_PREFIX.libltdl} | | 22 | CONFIGURE_ARGS+= --with-libltdl=${BUILDLINK_PREFIX.libltdl} |
22 | # See below about external hwloc. | | 23 | # See below about external hwloc. |
23 | #CONFIGURE_ARGS+= --with-hwloc=${BUILDLINK_PREFIX.hwloc} | | 24 | #CONFIGURE_ARGS+= --with-hwloc=${BUILDLINK_PREFIX.hwloc} |
24 | # OSHM Needs additional dependencies and also is surpassed with proper MPI | | 25 | # OSHM Needs additional dependencies and also is surpassed with proper MPI |
25 | # functionality. Rare use cases. | | 26 | # functionality. Rare use cases. |
26 | CONFIGURE_ARGS+= --disable-oshmem | | 27 | CONFIGURE_ARGS+= --disable-oshmem |
27 | CONFIGURE_ARGS+= OPAL_HAVE_LTDL_ADVISE=0 | | 28 | CONFIGURE_ARGS+= OPAL_HAVE_LTDL_ADVISE=0 |
28 | LIBTOOL_OVERRIDE= libtool \ | | 29 | LIBTOOL_OVERRIDE= libtool \ |
29 | ompi/contrib/vt/vt/extlib/otf/libtool \ | | 30 | ompi/contrib/vt/vt/extlib/otf/libtool \ |
30 | ompi/contrib/vt/vt/libtool \ | | 31 | ompi/contrib/vt/vt/libtool \ |
31 | ompi/mca/io/romio/romio/libtool | | 32 | ompi/mca/io/romio/romio/libtool |
32 | SHLIBTOOL_OVERRIDE= config/libtool.m4 | | 33 | SHLIBTOOL_OVERRIDE= config/libtool.m4 |
33 | | | 34 | |
34 | .include "options.mk" | | 35 | .include "options.mk" |
35 | | | 36 | |
36 | TEST_TARGET= check | | 37 | TEST_TARGET= check |
37 | | | 38 | |
38 | # Unsurprisingly, files that are only produced on GNU/Linux systems. | | 39 | # Unsurprisingly, files that are only produced on GNU/Linux systems. |
39 | PLIST_VARS+= linux | | 40 | PLIST_VARS+= linux |
40 | # \todo Explain. Apparently built if !Linux. | | 41 | # \todo Explain. Apparently built if !Linux. |
41 | PLIST_VARS+= pstattest | | 42 | PLIST_VARS+= pstattest |
42 | # \todo Explain. | | 43 | # \todo Explain. |
43 | PLIST_VARS+= ignoretkr | | 44 | PLIST_VARS+= ignoretkr |
44 | PLIST_VARS+= noignoretkr | | 45 | PLIST_VARS+= noignoretkr |
45 | | | 46 | |
46 | | | 47 | |
47 | .if ${OPSYS} == "Linux" | | 48 | .if ${OPSYS} == "Linux" |
48 | PLIST.linux= yes | | 49 | PLIST.linux= yes |
49 | .endif | | 50 | .endif |
50 | | | 51 | |
51 | .if ${OPSYS} != "Linux" | | 52 | .if ${OPSYS} != "Linux" |
52 | PLIST.pstattest= yes | | 53 | PLIST.pstattest= yes |
53 | .endif | | 54 | .endif |
54 | | | 55 | |
55 | .if ${OPSYS} == "Linux" || ${OPSYS} == "NetBSD" | | 56 | .if ${OPSYS} == "Linux" || ${OPSYS} == "NetBSD" |
56 | PLIST.ignoretkr= yes | | 57 | PLIST.ignoretkr= yes |
57 | .else | | 58 | .else |
58 | # \todo Explain why on Darwin we don't set one of them. | | 59 | # \todo Explain why on Darwin we don't set one of them. |
59 | . if ${OPSYS} != "Darwin" | | 60 | . if ${OPSYS} != "Darwin" |
60 | PLIST.noignoretkr= yes | | 61 | PLIST.noignoretkr= yes |
61 | . endif | | 62 | . endif |
62 | .endif | | 63 | .endif |
63 | | | 64 | |
64 | REPLACE_PERL= ompi/tools/wrappers/mpijavac.pl.in | | 65 | REPLACE_PERL= ompi/tools/wrappers/mpijavac.pl.in |
65 | REPLACE_PERL+= ompi/mca/common/monitoring/*.pl | | 66 | REPLACE_PERL+= ompi/mca/common/monitoring/*.pl |
66 | | | 67 | |
67 | EGDIR= ${PREFIX}/share/examples/openmpi | | 68 | EGDIR= ${PREFIX}/share/examples/openmpi |
68 | CONF_SAMPLES+= openmpi-default-hostfile openmpi-mca-params.conf | | 69 | CONF_SAMPLES+= openmpi-default-hostfile openmpi-mca-params.conf |
69 | CONF_SAMPLES+= pmix-mca-params.conf | | 70 | CONF_SAMPLES+= pmix-mca-params.conf |
70 | .for i in ${CONF_SAMPLES} | | 71 | .for i in ${CONF_SAMPLES} |
71 | CONF_FILES+= ${EGDIR}/${i} ${PKG_SYSCONFDIR}/${i} | | 72 | CONF_FILES+= ${EGDIR}/${i} ${PKG_SYSCONFDIR}/${i} |
72 | .endfor | | 73 | .endfor |
73 | | | 74 | |
74 | INSTALLATION_DIRS+= ${EGDIR} | | 75 | INSTALLATION_DIRS+= ${EGDIR} |
75 | | | 76 | |
76 | post-install: | | 77 | post-install: |
77 | .for i in ${CONF_SAMPLES} | | 78 | .for i in ${CONF_SAMPLES} |
78 | ${MV} ${DESTDIR}${PKG_SYSCONFDIR}/${i} ${DESTDIR}${EGDIR}/${i} | | 79 | ${MV} ${DESTDIR}${PKG_SYSCONFDIR}/${i} ${DESTDIR}${EGDIR}/${i} |
79 | .endfor | | 80 | .endfor |
80 | | | 81 | |
81 | .include "../../devel/libltdl/buildlink3.mk" | | 82 | .include "../../devel/libltdl/buildlink3.mk" |
82 | # Too old, use internal hwloc 2 instead. As hwloc 2 API/ABI is incompatible, | | 83 | # Too old, use internal hwloc 2 instead. As hwloc 2 API/ABI is incompatible, |
83 | # upgrade has to be considered carefully. | | 84 | # upgrade has to be considered carefully. |
84 | #.include "../../parallel/hwloc/buildlink3.mk" | | 85 | #.include "../../parallel/hwloc/buildlink3.mk" |
85 | .include "../../mk/bsd.pkg.mk" | | 86 | .include "../../mk/bsd.pkg.mk" |