mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 11:45:18 +03:00
47 lines
1.2 KiB
Text
47 lines
1.2 KiB
Text
# Maintainer: Daniel Sabogal <dsabogalcc@gmail.com>
|
|
pkgname=openmpi
|
|
pkgver=3.0.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="7e37eacf959a803d6d89dff4291b64a1f3d83bc7941b778a2fb13d12be0f205cb904e4a807d79676ad1e31fd99ffb15f255c8a227e830673455abb144f14616a openmpi-3.0.0.tar.bz2"
|