summaryrefslogtreecommitdiff
path: root/extra/openmpi/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/openmpi/PKGBUILD')
-rw-r--r--extra/openmpi/PKGBUILD25
1 files changed, 24 insertions, 1 deletions
diff --git a/extra/openmpi/PKGBUILD b/extra/openmpi/PKGBUILD
index c8b2eaf46..1902551d5 100644
--- a/extra/openmpi/PKGBUILD
+++ b/extra/openmpi/PKGBUILD
@@ -4,10 +4,12 @@ pkgname=openmpi
pkgver=1.5.3
pkgrel=4
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')
+[ "$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)
@@ -16,6 +18,26 @@ sha1sums=('669565c708deab82ad4069d82675b2020eb0e0c6')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
+# Disable valgrind
+ if [ "$CARCH" = "mips64el" ]; then
+ ./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 \
+ --without-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'
+ else
./configure --prefix=/usr \
--sysconfdir=/etc/${pkgname} \
--mandir=/usr/share/man \
@@ -33,6 +55,7 @@ build() {
--with-libltdl=/usr \
FC=/usr/bin/gfortran \
LDFLAGS='-Wl,-z,noexecstack'
+ fi
make
}