core/openmpi/PKGBUILD

66 lines
1.8 KiB
Bash
Raw Normal View History

pkgname=openmpi
2015-05-26 06:07:17 +08:00
pkgver=1.8.5
2015-02-16 20:21:28 +08:00
pkgmin="${pkgver%.*}"
2014-09-17 11:01:38 +08:00
pkgrel=1
pkgdesc='High performance message passing library (MPI)'
2015-05-26 06:07:17 +08:00
arch=('x86_64')
2014-09-17 11:01:38 +08:00
url='http://www.open-mpi.org'
license=(custom)
2015-05-26 06:07:17 +08:00
depends=('libltdl' 'hwloc>=1.9')
makedepends=('inetutils' 'valgrind' 'gcc-fortran')
2014-09-17 11:01:38 +08:00
optdepends=('gcc-fortran: fortran support')
options=(staticlibs)
2015-02-16 20:21:28 +08:00
source=(http://www.open-mpi.org/software/ompi/v${pkgmin}/downloads/${pkgname}-${pkgver}.tar.bz2)
2015-05-26 06:07:17 +08:00
sha1sums=('2e0408dbb033b0df21d1f95fffb872f2a8237de6')
2013-10-01 02:09:38 +08:00
build() {
2015-05-26 06:07:17 +08:00
cd $pkgname-$pkgver
2012-04-22 06:32:47 +08:00
2015-05-26 06:07:17 +08:00
./autogen.pl
./configure --prefix=/usr \
--sysconfdir=/etc/${pkgname} \
2014-09-17 11:01:38 +08:00
--enable-mpi-fortran=all \
--libdir=/usr/lib/${pkgname} \
--with-threads=posix \
--enable-smp-locks \
--with-valgrind \
--enable-memchecker \
--enable-pretty-print-stacktrace \
--without-slurm \
2012-04-22 06:32:47 +08:00
--with-hwloc=/usr \
2013-04-27 03:51:09 +08:00
--with-libltdl=/usr \
FC=/usr/bin/gfortran \
LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
make
}
2015-05-26 06:07:17 +08:00
check() {
cd $pkgname-$pkgver
make check
}
package() {
2014-09-17 11:01:38 +08:00
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
2013-04-27 03:51:09 +08:00
# FS#28583
2014-09-17 11:01:38 +08:00
install -d -m 755 "$pkgdir"/usr/lib/pkgconfig
2012-04-22 06:32:47 +08:00
for i in ompi-c.pc ompi-cxx.pc ompi-f77.pc ompi-f90.pc ompi.pc; do
2014-09-17 11:01:38 +08:00
ln -sf /usr/lib/openmpi/pkgconfig/$i "$pkgdir"/usr/lib/pkgconfig/
2012-04-22 06:32:47 +08:00
done
# Openmpi's otfinfo conflicts with the one from texlive
2014-09-17 11:01:38 +08:00
mv "$pkgdir"/usr/bin/otfinfo{,mpi}
2014-09-17 11:01:38 +08:00
# Remove dangling symlink and useless file
rm "$pkgdir"/usr/share/vampirtrace/config.log
2013-10-09 17:22:34 +08:00
install -d -m 755 "${pkgdir}"/etc/ld.so.conf.d
echo "/usr/lib/${pkgname}" > "${pkgdir}"/etc/ld.so.conf.d/${pkgname}.conf
install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}