contrib/openmpi/Pkgfile

41 lines
1.1 KiB
Plaintext
Raw Normal View History

2021-12-31 06:35:53 +01:00
# Description: High performance message passing library (MPI)
# URL: https://www.open-mpi.org
2023-08-13 09:39:24 +02:00
# Maintainer: Tim Biermann, tbier at posteo dot de
2024-02-07 18:31:23 +01:00
# Depends on: eudev gcc-fortran hwloc libevent libnl
2023-12-22 19:40:36 +01:00
# Optional: cuda
2021-12-31 06:35:53 +01:00
name=openmpi
2024-02-07 18:31:23 +01:00
version=5.0.2
2021-12-31 06:35:53 +01:00
release=1
source=(https://www.open-mpi.org/software/ompi/v${version%.*}/downloads/$name-$version.tar.bz2)
build() {
2023-08-13 09:39:24 +02:00
cd $name-$version
2021-12-31 06:35:53 +01:00
2023-08-13 09:39:24 +02:00
./configure \
--prefix=/usr \
--sysconfdir=/etc/$name \
--enable-mpi-fortran=all \
--libdir=/usr/lib/$name \
2023-12-22 19:40:36 +01:00
--with-hwloc=/usr \
2023-08-13 09:39:24 +02:00
--enable-builtin-atomics \
--enable-pretty-print-stacktrace \
2023-12-22 19:40:36 +01:00
--enable-ipv6 \
--enable-mpi1-compatibility \
--with-sge \
2023-08-13 09:39:24 +02:00
--without-slurm \
FC=/usr/bin/gfortran \
LDFLAGS="${LDFLAGS} -Wl,-z,noexecstack"
2021-12-31 06:35:53 +01:00
2023-08-13 09:39:24 +02:00
make
make DESTDIR=$PKG install
2021-12-31 06:35:53 +01:00
2023-08-13 09:39:24 +02:00
install -dm 755 $PKG/usr/lib/pkgconfig
for i in ompi-c.pc ompi-cxx.pc ompi-f77.pc ompi-f90.pc ompi.pc; do
ln -sf /usr/lib/openmpi/pkgconfig/$i $PKG/usr/lib/pkgconfig/
done
2021-12-31 06:35:53 +01:00
2023-08-13 09:39:24 +02:00
install -dm 755 $PKG/etc/ld.so.conf.d
echo /usr/lib/$name > $PKG/etc/ld.so.conf.d/$name.conf
2021-12-31 06:35:53 +01:00
}