blob: 77e080c8b8b15e4e3a6d1083a80f542a99e31305 [file] [log] [blame]
Andrew Geissler97771a32021-03-05 15:23:11 -06001SUMMARY = "Message Passing Interface (MPI) implementation"
2HOMEPAGE = "http://www.mpich.org/"
3SECTION = "devel"
4
5LICENSE = "BSD-2-Clause"
6LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=bd4d7ab13df98988b1ca2a4e01c8c163"
7
8SRC_URI = "http://www.mpich.org/static/downloads/${PV}/mpich-${PV}.tar.gz"
9SRC_URI[sha256sum] = "8836939804ef6d492bcee7d54abafd6477d2beca247157d92688654d13779727"
10
11RDEPENDS_${PN} += "bash perl libxml2"
12
13EXTRA_OECONF = "--enable-debuginfo \
14 --enable-fast \
15 --enable-shared \
16 --with-pm=gforker \
17 --disable-rpath \
18 --disable-f77 \
19 --disable-fc \
20 --disable-fortran \
21 --disable-cxx \
22 BASH_SHELL='${USRBINPATH}/env bash' \
23 PERL='${USRBINPATH}/env perl' \
24 --with-device=ch3:nemesis \
25 --with-rdmacm=no \
26 --disable-numa \
27"
28
29PACKAGECONFIG += " \
30 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
31"
32PACKAGECONFIG[x11] = "--with-x --x-includes=${STAGING_INCDIR} --x-libraries=${STAGING_LIBDIR},--without-x,virtual/libx11"
33
34inherit autotools gettext pkgconfig
35
36do_configure() {
37 for d in confdb test/mpi test/mpi/confdb src/pm/hydra/confdb \
38 src/pm/hydra/tools/topo/hwloc/hwloc/config src/pm/hydra/mpl/confdb \
39 modules/yaksa/m4 modules/json-c modules/ucx test/mpi/dtpools/confdb \
40 src/mpl/confdb src/mpi/romio/confdb; do
41 install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}/$d
42 install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}/$d
43 done
44# cd ${S}
45# autoupdate
46# autoreconf --verbose --install --force
47# cd ${B}
48 oe_runconf
49}
50
51do_install_append() {
52 sed -i 's,${S}/,,g' ${D}/${libdir}/libmpi.la
53 sed -i 's,${DEBUG_PREFIX_MAP},,g' ${D}/${libdir}/pkgconfig/mpich.pc
54}