updated on Thu Jan 19 04:14:35 UTC 2012
[aur-mirror.git] / openmpi-14 / PKGBUILD
blob8a17f3d9f8f827de09c9f720c4136e538e5a29d7
1 # Maintainer: Simon Chambers <mail@simonchambers.org>
2 # Adapted from PKGBUILD by Stéphane Gaudreault <stephane@archlinux.org>
3 pkgname=openmpi-14
4 _pkgname=openmpi
5 pkgver=1.4.3
6 pkgrel=2
7 pkgdesc="High performance message passing library (MPI) - Version 1.4 (Stable)"
8 arch=('i686' 'x86_64')
9 url="http://www.open-mpi.org"
10 license=('custom')
11 depends=('gcc' 'gcc-fortran' 'openssh' 'valgrind' 'libtool' 'hwloc')
12 options=(!libtool)
13 provides=('openmpi')
14 source=(http://www.open-mpi.org/software/ompi/v1.4/downloads/${_pkgname}-${pkgver}.tar.bz2)
15 sha1sums=('9d24b6969d73605904855eb32d40d6b07e231932')
17 build() {
18    cd "${srcdir}/${_pkgname}-${pkgver}"
20    ./configure --prefix=/usr \
21                --sysconfdir=/etc/${_pkgname} \
22                --mandir=/usr/share/man \
23                --enable-mpi-f90 \
24                --libdir=/usr/lib/${_pkgname} \
25                --with-threads=posix \
26                --enable-mpi-threads \
27                --enable-smp-locks \
28                --with-valgrind \
29                --enable-memchecker \
30                --enable-debug \
31                --enable-pretty-print-stacktrace \
32                --without-slurm \
33                --with-hwloc=external \
34                --with-libltdl=/usr \
35                 --enable-heterogeneous \
36                FC=/usr/bin/gfortran \
37                LDFLAGS='-Wl,-z,noexecstack'
39    make
42 package() {
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