core/openmpi/PKGBUILD

67 lines
1.9 KiB
Bash
Raw Normal View History

2013-04-27 03:51:09 +08:00
# Maintainer: Manuel Tortosa
pkgname=openmpi
2013-10-01 02:09:38 +08:00
pkgver=1.7.2
2012-04-22 06:32:47 +08:00
pkgrel=1
pkgdesc="High performance message passing library (MPI)"
arch=('i686' 'x86_64')
url="http://www.open-mpi.org"
license=('custom')
2013-04-27 03:51:09 +08:00
depends=('gcc-fortran' 'openssh' 'valgrind' 'libltdl' 'hwloc')
makedepends=('inetutils')
options=(!libtool)
2013-10-01 02:09:38 +08:00
source=(http://www.open-mpi.org/software/ompi/v1.7/downloads/${pkgname}-${pkgver}.tar.bz2)
sha1sums=('89676c1171784b1c26e1598caf88e87f897f6653')
2013-10-01 02:09:38 +08:00
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
2013-04-27 03:51:09 +08:00
# Make sure we use the system ltdl librariry rather than the ones in the tarball
rm -r opal/libltdl
2013-10-01 02:09:38 +08:00
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
2012-04-22 06:32:47 +08:00
./configure --prefix=/usr \
--sysconfdir=/etc/${pkgname} \
--mandir=/usr/share/man \
--enable-mpi-f90 \
--libdir=/usr/lib/${pkgname} \
--with-threads=posix \
--enable-smp-locks \
--with-valgrind \
--enable-memchecker \
--enable-debug \
--enable-pretty-print-stacktrace \
--without-slurm \
2012-04-22 06:32:47 +08:00
--with-hwloc=/usr \
2013-04-27 03:51:09 +08:00
--with-libltdl=/usr \
FC=/usr/bin/gfortran \
LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
2013-04-27 03:51:09 +08:00
# FS#28583
2012-04-22 06:32:47 +08:00
install -d -m 755 "${pkgdir}"/usr/lib/pkgconfig
for i in ompi-c.pc ompi-cxx.pc ompi-f77.pc ompi-f90.pc ompi.pc; do
2013-04-27 03:51:09 +08:00
ln -sf /usr/lib/openmpi/pkgconfig/${i} "${pkgdir}"/usr/lib/pkgconfig/
2012-04-22 06:32:47 +08:00
done
# Openmpi's otfinfo conflicts with the one from texlive
2012-04-22 06:32:47 +08:00
mv "${pkgdir}"/usr/bin/otfinfo{,mpi}
2012-04-22 06:32:47 +08:00
# Remove dangling symlink
rm "${pkgdir}"/usr/share/man/man1/orteCC.1
install -d -m 755 "${pkgdir}"/etc/ld.so.conf.d
echo "/usr/lib/${pkgname}" > "${pkgdir}"/etc/ld.so.conf.d/${pkgname}.conf
install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}