summaryrefslogtreecommitdiff
path: root/extra/openmpi
diff options
context:
space:
mode:
Diffstat (limited to 'extra/openmpi')
-rw-r--r--extra/openmpi/PKGBUILD13
1 files changed, 10 insertions, 3 deletions
diff --git a/extra/openmpi/PKGBUILD b/extra/openmpi/PKGBUILD
index c29af7221..0f000c42c 100644
--- a/extra/openmpi/PKGBUILD
+++ b/extra/openmpi/PKGBUILD
@@ -4,10 +4,11 @@ pkgname=openmpi
pkgver=1.5.5
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' 'gcc-fortran' 'openssh' 'valgrind' 'libtool' 'hwloc')
+depends=('gcc' 'gcc-fortran' 'openssh' 'libtool' 'hwloc')
+[ "$CARCH" = "mips64el" ] || depends+=('valgrind')
makedepends=('inetutils')
options=(!libtool)
source=(http://www.open-mpi.org/software/ompi/v1.5/downloads/${pkgname}-${pkgver}.tar.bz2
@@ -18,6 +19,12 @@ sha1sums=('206e555f6d376443f2342f721d944e67dd1a04ef'
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
+ if [ "$CARCH" = "mips64el" ]; then
+ valgrind="--without-valgrind"
+ else
+ valgrind="--with-valgrind"
+ fi
+
# Fix fakeroot problem (FS#28644)
patch -Np1 -i ../openmpi-1.5.4-fix-fakeroot-execution.patch
@@ -28,7 +35,7 @@ build() {
--libdir=/usr/lib/${pkgname} \
--with-threads=posix \
--enable-smp-locks \
- --with-valgrind \
+ $valgrind \
--enable-memchecker \
--enable-debug \
--enable-pretty-print-stacktrace \