mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-02 04:11:33 +02:00
openmpi commit bc54c99e12cf33c5a6c70bf1c3952075b66a76ca allows check for using s390x's builtin asm, previous versions need --enable-builtin-atomics
48 lines
1.2 KiB
Plaintext
48 lines
1.2 KiB
Plaintext
# Maintainer: Daniel Sabogal <dsabogalcc@gmail.com>
|
|
pkgname=openmpi
|
|
pkgver=3.1.0
|
|
pkgrel=0
|
|
pkgdesc="Message passing library for high-performance computing"
|
|
url="https://www.open-mpi.org/"
|
|
arch="all"
|
|
license="BSD"
|
|
makedepends="perl gfortran hwloc-dev libevent-dev libgomp"
|
|
subpackages="$pkgname-dev:_dev $pkgname-doc"
|
|
source="https://www.open-mpi.org/software/ompi/v${pkgver%.*}/downloads/$pkgname-$pkgver.tar.bz2"
|
|
builddir="$srcdir/$pkgname-$pkgver"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
./configure \
|
|
--prefix=/usr \
|
|
--mandir=/usr/share/man \
|
|
--sysconfdir=/etc/$pkgname \
|
|
--enable-ipv6 \
|
|
--with-threads=posix \
|
|
--with-hwloc=/usr
|
|
make
|
|
}
|
|
|
|
check() {
|
|
make -C "$builddir" check
|
|
}
|
|
|
|
package() {
|
|
make -C "$builddir" DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
_dev() {
|
|
default_dev
|
|
|
|
local bins="mpiCC mpic++ mpicc mpicxx mpif77 mpif90 mpifort
|
|
ortecc opal_wrapper oshCC oshc++ oshcc oshcxx oshfort
|
|
shmemCC shmemc++ shmemcc shmemcxx shmemfort"
|
|
|
|
mkdir -p "$subpkgdir"/usr/bin
|
|
local i; for i in $bins; do
|
|
mv "$pkgdir"/usr/bin/$i "$subpkgdir"/usr/bin
|
|
done
|
|
}
|
|
|
|
sha512sums="23a43a16683c4b56f96c711fe009d992f3bd4e10cf9ef55091865a5b1aed195cc1de6a87720564f70d3b60a2441966bab39cda8969293aeb118cda10aead3dee openmpi-3.1.0.tar.bz2"
|