upgpkg: sbcl 2.3.1-1
[arch-packages.git] / openmpi / trunk / PKGBUILD
blobcac1db207a6c3985bf5a9028374fa5d01157e770
1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Maintainer: David Runge <dvzrv@archlinux.org>
3 # Contributor: Anatol Pomozov <anatol dot pomozov at gmail>
4 # Contributor: Stéphane Gaudreault <stephane@archlinux.org>
6 pkgname=openmpi
7 pkgver=4.1.4
8 pkgrel=4
9 pkgdesc='High performance message passing library (MPI)'
10 arch=(x86_64)
11 url='https://www.open-mpi.org'
12 license=('custom:OpenMPI')
13 depends=(gcc-libs glibc hwloc libevent libnl openpmix zlib)
14 makedepends=(cuda gcc-fortran inetutils valgrind)
15 optdepends=(
16   'cuda: cuda support'
17   'gcc-fortran: fortran support'
18   'openssh: for offloading to remote hosts'
19   'perl: for aggregate_profile.pl and profile2mat.pl'
21 provides=(
22   libmca_common_cuda.so
23   libmca_common_monitoring.so
24   libmca_common_ompio.so
25   libmca_common_sm.so
26   libmpi.so
27   libmpi_cxx.so
28   libmpi_mpifh.so
29   libmpi_usempi_ignore_tkr.so
30   libmpi_usempif08.so
31   libompitrace.so
32   libopen-pal.so
33   libopen-rte.so
35 source=(https://www.open-mpi.org/software/ompi/v${pkgver%.*}/downloads/$pkgname-$pkgver.tar.bz2)
36 sha256sums=('92912e175fd1234368c8730c03f4996fe5942e7479bb1d10059405e7f2b3930d')
37 b2sums=('b020e3530ae5dde7b144e7c33b1a3f26f622526a4b48a97a0956fc6f49bbf9dfd5be9ebeeaf3bdc5168a307507408ba5dd8e2a537148821e1d476678177dc5d6')
39 build() {
40   cd $pkgname-$pkgver
42   # TODO: depend on prrte with openmpi >= 5
43   ./configure \
44     --prefix=/usr \
45     --enable-builtin-atomics \
46     --enable-memchecker \
47     --enable-mpi-cxx \
48     --enable-mpi-fortran=all \
49     --enable-pretty-print-stacktrace \
50     --libdir=/usr/lib \
51     --sysconfdir=/etc/$pkgname \
52     --with-cuda=/opt/cuda \
53     --with-hwloc=external \
54     --with-libevent=external \
55     --with-pmix=external \
56     --with-valgrind
58   # prevent excessive overlinking due to libtool
59   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
60   make V=1
63 check() {
64   make check -C $pkgname-$pkgver
67 package() {
68   depends+=(libpmix.so)
70   make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
71   install -Dm 644 $pkgname-$pkgver/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
74 # vim: ts=2 sw=2 et: