1 # Maintainer: Simon Chambers <mail@simonchambers.org>
2 # Adapted from PKGBUILD by Stéphane Gaudreault <stephane@archlinux.org>
7 pkgdesc="High performance message passing library (MPI) - Version 1.4 (Stable)"
9 url="http://www.open-mpi.org"
11 depends=('gcc' 'gcc-fortran' 'openssh' 'valgrind' 'libtool' 'hwloc')
14 source=(http://www.open-mpi.org/software/ompi/v1.4/downloads/${_pkgname}-${pkgver}.tar.bz2)
15 sha1sums=('9d24b6969d73605904855eb32d40d6b07e231932')
18 cd "${srcdir}/${_pkgname}-${pkgver}"
20 ./configure --prefix=/usr \
21 --sysconfdir=/etc/${_pkgname} \
22 --mandir=/usr/share/man \
24 --libdir=/usr/lib/${_pkgname} \
25 --with-threads=posix \
26 --enable-mpi-threads \
31 --enable-pretty-print-stacktrace \
33 --with-hwloc=external \
35 --enable-heterogeneous \
36 FC=/usr/bin/gfortran \
37 LDFLAGS='-Wl,-z,noexecstack'
43 cd "${srcdir}/${_pkgname}-${pkgver}"
44 make DESTDIR="${pkgdir}" install
46 # Openmpi's otfinfo conflicts with the one from texlive
47 mv "${pkgdir}"/usr/bin/otfinfo "${pkgdir}"/usr/bin/otfinfompi
49 # Openmpi's otfdump conflicts with the one from libotf
50 mv "${pkgdir}"/usr/bin/otfdump "${pkgdir}"/usr/bin/otfdumpompi
52 install -d -m 755 "${pkgdir}"/etc/ld.so.conf.d
53 echo "/usr/lib/${pkgname}" > "${pkgdir}"/etc/ld.so.conf.d/${pkgname}.conf
55 install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE