Andrew Geissler | 97771a3 | 2021-03-05 15:23:11 -0600 | [diff] [blame] | 1 | SUMMARY = "Message Passing Interface (MPI) implementation" |
| 2 | HOMEPAGE = "http://www.mpich.org/" |
| 3 | SECTION = "devel" |
| 4 | |
| 5 | LICENSE = "BSD-2-Clause" |
| 6 | LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=bd4d7ab13df98988b1ca2a4e01c8c163" |
| 7 | |
| 8 | SRC_URI = "http://www.mpich.org/static/downloads/${PV}/mpich-${PV}.tar.gz" |
William A. Kennington III | b95905d | 2021-06-02 12:40:56 -0700 | [diff] [blame] | 9 | SRC_URI[sha256sum] = "5c19bea8b84e8d74cca5f047e82b147ff3fba096144270e3911ad623d6c587bf" |
Andrew Geissler | 97771a3 | 2021-03-05 15:23:11 -0600 | [diff] [blame] | 10 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 11 | RDEPENDS:${PN} += "bash perl libxml2" |
Andrew Geissler | 97771a3 | 2021-03-05 15:23:11 -0600 | [diff] [blame] | 12 | |
| 13 | EXTRA_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 | |
| 29 | PACKAGECONFIG += " \ |
| 30 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \ |
| 31 | " |
| 32 | PACKAGECONFIG[x11] = "--with-x --x-includes=${STAGING_INCDIR} --x-libraries=${STAGING_LIBDIR},--without-x,virtual/libx11" |
| 33 | |
Andrew Geissler | d159c7f | 2021-09-02 21:05:58 -0500 | [diff] [blame] | 34 | # libmpi.so needs symbols like __multf3 and somehow it does not respect --rtlib option passed by clang |
| 35 | LDFLAGS:append:x86-64 = " -lgcc" |
| 36 | LDFLAGS:append:x86 = " -lgcc" |
William A. Kennington III | b95905d | 2021-06-02 12:40:56 -0700 | [diff] [blame] | 37 | |
Andrew Geissler | 97771a3 | 2021-03-05 15:23:11 -0600 | [diff] [blame] | 38 | inherit autotools gettext pkgconfig |
| 39 | |
| 40 | do_configure() { |
| 41 | for d in confdb test/mpi test/mpi/confdb src/pm/hydra/confdb \ |
| 42 | src/pm/hydra/tools/topo/hwloc/hwloc/config src/pm/hydra/mpl/confdb \ |
| 43 | modules/yaksa/m4 modules/json-c modules/ucx test/mpi/dtpools/confdb \ |
| 44 | src/mpl/confdb src/mpi/romio/confdb; do |
| 45 | install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}/$d |
| 46 | install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}/$d |
| 47 | done |
| 48 | # cd ${S} |
| 49 | # autoupdate |
| 50 | # autoreconf --verbose --install --force |
| 51 | # cd ${B} |
| 52 | oe_runconf |
| 53 | } |
| 54 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 55 | do_install:append() { |
Andrew Geissler | 97771a3 | 2021-03-05 15:23:11 -0600 | [diff] [blame] | 56 | sed -i 's,${S}/,,g' ${D}/${libdir}/libmpi.la |
| 57 | sed -i 's,${DEBUG_PREFIX_MAP},,g' ${D}/${libdir}/pkgconfig/mpich.pc |
| 58 | } |