void-packages/srcpkgs/openmpi/template
2017-02-01 12:44:32 +01:00

56 lines
1.5 KiB
Bash

# Template file for 'openmpi'
pkgname=openmpi
version=2.0.2
revision=1
lib32disabled=yes
build_style=gnu-configure
configure_args="--enable-ipv6 --with-hwloc=${XBPS_CROSS_BASE}/usr"
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="https://www.open-mpi.org/"
license="3-clause-BSD"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
distfiles="${homepage}/software/ompi/v${version%.*}/downloads/${pkgname}-${version}.tar.bz2"
checksum=cae396e643f9f91f0a795f8d8694adf7bacfb16f967c22fb39e9e28d477730d3
nocross=yes # libtool -rpath /usr/lib issue
post_install() {
vlicense LICENSE
}
pre_configure() {
# used wrongly upstream? but nocross anyway
export CFLAGS="$CFLAGS $LDFLAGS"
export CXXFLAGS="$CXXFLAGS $LDFLAGS"
export CC_FOR_BUILD="$CC"
export CFLAGS_FOR_BUILD="$CFLAGS"
export CPP_FOR_BUILD="$CPP"
export CXX_FOR_BUILD="$CXX"
export CXXFLAGS_FOR_BUILD="$CXXFLAGS"
export CPPFLAGS_FOR_BUILD="$CPPFLAGS"
export LDFLAGS_FOR_BUILD="$LDFLAGS"
export LIBS_FOR_BUILD="$LDFLAGS"
export LIBS="$LDFLAGS"
}
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
vmove "usr/lib/*.so"
vmove usr/share/man/man3
}
}