core/openmpi/PKGBUILD

67 lines
1.9 KiB
Bash
Raw Normal View History

2013-04-27 03:51:09 +08:00
# Maintainer: Manuel Tortosa
pkgname=openmpi
2014-09-17 11:01:38 +08:00
pkgver=1.8.2
pkgrel=1
pkgdesc='High performance message passing library (MPI)'
arch=(i686 x86_64)
url='http://www.open-mpi.org'
license=(custom)
depends=(libltdl 'hwloc>=1.9')
makedepends=(inetutils valgrind gcc-fortran)
optdepends=('gcc-fortran: fortran support')
options=(staticlibs)
source=(http://www.open-mpi.org/software/ompi/v1.8/downloads/${pkgname}-${pkgver}.tar.bz2)
sha1sums=('55067856b351cbeb5ebe8a430bfe0656115a04ed')
2013-10-01 02:09:38 +08:00
prepare() {
2014-09-17 11:01:38 +08:00
cd $pkgname-$pkgver
2014-09-17 11:01:38 +08:00
# Make sure we use the system ltdl library rather than the ones in the tarball
2013-04-27 03:51:09 +08:00
rm -r opal/libltdl
2013-10-01 02:09:38 +08:00
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
2012-04-22 06:32:47 +08:00
./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-debug \
--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
}
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
}