diff options
Diffstat (limited to 'extra/openmpi/PKGBUILD')
-rw-r--r-- | extra/openmpi/PKGBUILD | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/extra/openmpi/PKGBUILD b/extra/openmpi/PKGBUILD index 3e57ddefa..b8de218c1 100644 --- a/extra/openmpi/PKGBUILD +++ b/extra/openmpi/PKGBUILD @@ -4,10 +4,11 @@ pkgname=openmpi pkgver=1.6 pkgrel=2 pkgdesc="High performance message passing library (MPI)" -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') url="http://www.open-mpi.org" license=('custom') -depends=('gcc-fortran' 'openssh' 'valgrind' 'libltdl' 'hwloc') +depends=('gcc-fortran' 'openssh' 'libltdl' 'hwloc') +[ "$CARCH" = "mips64el" ] || depends+=('valgrind') makedepends=('inetutils') options=(!libtool) source=(http://www.open-mpi.org/software/ompi/v1.6/downloads/${pkgname}-${pkgver}.tar.bz2 @@ -18,6 +19,11 @@ sha1sums=('8b81eea712bb8f8120468003b5f29baecedf2367' build() { cd "${srcdir}/${pkgname}-${pkgver}" + if [ "$CARCH" = "mips64el" ]; then + valgrind="--without-valgrind" + else + valgrind="--with-valgrind" + fi # Make sure we use the system ltdl librariry rather than the ones in the tarball rm -r opal/libltdl @@ -31,7 +37,7 @@ build() { --libdir=/usr/lib/${pkgname} \ --with-threads=posix \ --enable-smp-locks \ - --with-valgrind \ + $valgrind \ --enable-memchecker \ --enable-debug \ --enable-pretty-print-stacktrace \ |