extra/openmpi fix

This commit is contained in:
Kevin Mihelich 2015-06-23 02:35:19 +00:00
parent e01e4d3a0e
commit 6e35134f6f

View file

@ -5,8 +5,6 @@
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org
# - only use valgrind with v7
noautobuild=1
pkgname=openmpi
pkgver=1.8.5
pkgrel=2
@ -16,25 +14,12 @@ url='http://www.open-mpi.org'
license=(custom)
depends=(libltdl hwloc)
makedepends=(inetutils gcc-fortran)
makedepends_armv7h=(valgrind)
optdepends=('gcc-fortran: fortran support')
options=(staticlibs)
source=(http://www.open-mpi.org/software/ompi/v1.8/downloads/${pkgname}-${pkgver}.tar.bz2)
sha1sums=('2e0408dbb033b0df21d1f95fffb872f2a8237de6')
[[ $CARCH = armv7h ]] && makedepends+=('valgrind')
prepare() {
cd $pkgname-$pkgver
# Make sure we use the system ltdl library rather than the ones in the tarball
rm -r opal/libltdl
patch -p1 < ../system_ltdl.patch
# Fix for fortran on ARM
patch -p1 -i ../0001-Fortran-only-emit-real16-and-complex32-if-supported.patch
./autogen.pl
}
build() {
cd $pkgname-$pkgver