void-packages/srcpkgs/openmpi/template
2016-02-12 15:33:31 +01:00

49 lines
1.3 KiB
Bash

# Template file for 'openmpi'
pkgname=openmpi
version=1.10.2
revision=2
lib32disabled=yes
build_style=gnu-configure
configure_args="--enable-ipv6 --with-hwloc=${XBPS_CROSS_BASE}/usr"
case "$XBPS_TARGET_MACHINE" in
# Disable VampirTrace wrappers on musl, different prototypes.
*-musl) configure_args+=" --enable-contrib-no-build=vt";;
esac
hostmakedepends="perl libgomp-devel"
makedepends="zlib-devel libgomp-devel libhwloc-devel"
conf_files="
/etc/openmpi-default-hostfile
/etc/openmpi-mca-params.conf
/etc/openmpi-totalview.tcl"
short_desc="A High Performance Message Passing Library"
homepage="http://www.open-mpi.org/"
license="3-clause-BSD"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
distfiles="http://www.open-mpi.org/software/ompi/v1.10/downloads/${pkgname}-${version}.tar.bz2"
checksum=8846e7e69a203db8f50af90fa037f0ba47e3f32e4c9ccdae2db22898fd4d1f59
nocross=yes # libtool -rpath /usr/lib issue
post_install() {
vlicense LICENSE
}
libopenmpi_package() {
short_desc+=" - runtime libraries"
pkg_install() {
vmove usr/lib/*.so.*
}
}
openmpi-devel_package() {
depends="libstdc++-devel zlib-devel lib${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
case "$XBPS_TARGET_MACHINE" in
*-musl) ;;
*) vmove "usr/lib/*.a";;
esac
vmove "usr/lib/*.so"
vmove usr/share/man/man3
}
}