# $Id: Portfile,v 1.1 2006/01/25 09:49:02 mww Exp $

PortSystem 1.0

name			mpich
version			1.2.7
categories		net science parallel
maintainers		darwinports@opendarwin.org
description		Message Passing Interface (MPI) Library
long_description	\
	MPICH is a portable implementation of the MPI (Message Passing \
	Interface) standard. The goal of MPI, simply stated, is to develop a \
	widely used standard for writing message-passing programs. As such \
	the interface should establish a practical, portable, efficient, and \
	flexible standard for message passing. Included are a full set of \
	documents and parallel programming examples.
homepage		http://www-unix.mcs.anl.gov/mpi/mpich/
platforms		darwin
master_sites	ftp://ftp.mcs.anl.gov/pub/mpi/
checksums		md5 692893dc8eb845243fec4a96c02b184e
use_bzip2		yes

build.target

destroot.destdir	PREFIX=${destroot}/${prefix}
post-destroot	{
	file delete -force ${destroot}${prefix}/man/mandesc \
		${destroot}${prefix}/share/man \
		${destroot}${prefix}/examples \
		${destroot}${prefix}/sbin/mpiuninstall
	file rename ${destroot}${prefix}/man \
		${destroot}${prefix}/share/man
	xinstall -m 755 -d ${destroot}${prefix}/share/doc
	file rename ${destroot}${prefix}/doc \
		${destroot}${prefix}/share/doc/${name}
	file rename ${destroot}${prefix}/share/examples \
		${destroot}${prefix}/share/doc/${name}/examples
	file rename ${destroot}${prefix}/www \
		${destroot}${prefix}/share/doc/${name}/html
	file rename ${destroot}${prefix}/share/machines.freebsd_ppc \
		${destroot}${prefix}/share/doc/${name}/machines.freebsd_ppc
	file rename ${destroot}${prefix}/share/machines.sample \
		${destroot}${prefix}/share/doc/${name}/machines.sample
	file rename ${destroot}${prefix}/share/Makefile.sample \
		${destroot}${prefix}/share/doc/${name}/Makefile.sample
}

platform darwin 8 {
	configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
}

