# Template file for 'openmpi'
pkgname=openmpi
version=1.4.1
revision=6
lib32disabled=yes
build_style=gnu-configure
hostmakedepends="libgomp-devel"
makedepends="zlib-devel libgomp-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="Custom"
maintainer="Juan RP <xtraeme@gmail.com>"
distfiles="http://www.open-mpi.org/software/ompi/v1.4/downloads/$pkgname-$version.tar.bz2"
checksum=d4d71d7c670d710d2d283ea60af50d6c315318a4c35ec576bedfd0f3b7b8c218

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/*.a"
		vmove "usr/lib/*.so"
		vmove usr/share/man/man3
	}
}
