diff options
Diffstat (limited to 'extra/openmpi')
-rw-r--r-- | extra/openmpi/PKGBUILD | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/extra/openmpi/PKGBUILD b/extra/openmpi/PKGBUILD index 677f8cb56..1902551d5 100644 --- a/extra/openmpi/PKGBUILD +++ b/extra/openmpi/PKGBUILD @@ -1,13 +1,16 @@ -# $Id: PKGBUILD 121049 2011-04-28 16:03:46Z stephane $ +# $Id: PKGBUILD 130580 2011-07-07 13:38:27Z stephane $ # Maintainer: Stéphane Gaudreault <stephane@archlinux.org> pkgname=openmpi pkgver=1.5.3 -pkgrel=3 +pkgrel=4 pkgdesc="High performance message passing library (MPI)" arch=('i686' 'x86_64' 'mips64el') url="http://www.open-mpi.org" license=('custom') +depends=('gcc' 'gcc-fortran' 'openssh' 'valgrind' 'libtool' 'hwloc') +[ "$CARCH" = "mips64el" ] && \ depends=('gcc-fortran' 'openssh' 'libtool' 'hwloc') +makedepends=('net-tools') options=(!libtool) source=(http://www.open-mpi.org/software/ompi/v1.5/downloads/${pkgname}-${pkgver}.tar.bz2) sha1sums=('669565c708deab82ad4069d82675b2020eb0e0c6') @@ -15,6 +18,8 @@ sha1sums=('669565c708deab82ad4069d82675b2020eb0e0c6') build() { cd "${srcdir}/${pkgname}-${pkgver}" +# Disable valgrind + if [ "$CARCH" = "mips64el" ]; then ./configure --prefix=/usr \ --sysconfdir=/etc/${pkgname} \ --mandir=/usr/share/man \ @@ -32,6 +37,25 @@ build() { --with-libltdl=/usr \ FC=/usr/bin/gfortran \ LDFLAGS='-Wl,-z,noexecstack' + else + ./configure --prefix=/usr \ + --sysconfdir=/etc/${pkgname} \ + --mandir=/usr/share/man \ + --enable-mpi-f90 \ + --libdir=/usr/lib/${pkgname} \ + --with-threads=posix \ + --enable-mpi-threads \ + --enable-smp-locks \ + --with-valgrind \ + --enable-memchecker \ + --enable-debug \ + --enable-pretty-print-stacktrace \ + --without-slurm \ + --with-hwloc=external \ + --with-libltdl=/usr \ + FC=/usr/bin/gfortran \ + LDFLAGS='-Wl,-z,noexecstack' + fi make } |