summaryrefslogtreecommitdiff
path: root/extra/openmpi/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/openmpi/PKGBUILD')
-rw-r--r--extra/openmpi/PKGBUILD13
1 files changed, 9 insertions, 4 deletions
diff --git a/extra/openmpi/PKGBUILD b/extra/openmpi/PKGBUILD
index 34acb3e07..330cb5a14 100644
--- a/extra/openmpi/PKGBUILD
+++ b/extra/openmpi/PKGBUILD
@@ -4,10 +4,11 @@ pkgname=openmpi
pkgver=1.6.4
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)
@@ -16,6 +17,11 @@ sha1sums=('38095d3453519177272f488d5058a98f7ebdbf10')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
+ if [ "$CARCH" = "mips64el" ]; then
+ valgrind="--without-valgrind --disable-memchecker"
+ else
+ valgrind="--with-valgrind --enable-memchecker"
+ fi
# Make sure we use the system ltdl librariry rather than the ones in the tarball
rm -r opal/libltdl
@@ -26,8 +32,7 @@ build() {
--libdir=/usr/lib/${pkgname} \
--with-threads=posix \
--enable-smp-locks \
- --with-valgrind \
- --enable-memchecker \
+ $valgrind \
--enable-debug \
--enable-pretty-print-stacktrace \
--without-slurm \