# $Id: Portfile 48423 2009-03-21 16:32:47Z mcalhoun@macports.org $

PortSystem 1.0

name			lam
version			7.1.3
categories		net science parallel
maintainers		nomaintainer
description		Local Area Multicomputer MPI implementation
long_description	LAM (Local Area Multicomputer) is an MPI programming \
				environment and development system for heterogeneous computers \
				on a network. With LAM, a dedicated cluster or an existing \
				network computing infrastructure can act as one parallel \
				computer solving one problem. It features extensive debugging \
				support in the application development cycle and peak \
				performance for production applications. LAM features a full \
				implementation of the MPI communication standard.
homepage		http://www.lam-mpi.org/
platforms		darwin
master_sites	http://www.lam-mpi.org/download/files/ \
				http://lam.squyres.com/download/files/ \
				http://lam.fries.net/download/files/ \
				http://www.thinkingnerds.com/lam/download/files/ \
				http://lam-mpi.lzu.edu.cn/download/files/
checksums           md5     dccca92409654f4f822b1d343ca75be6 \
                    sha1    4a583308c0442eb46f4fd0abe7e26ea3e1fd4adb \
                    rmd160  e0de240380d2275090bad0f0f57ac3a54b6d9f96
use_bzip2		yes
universal_variant	no

configure.args	--without-fc \
				--without-romio \
				--mandir=${prefix}/share/man

destroot.args	docdir=${prefix}/share/doc/lam

variant gcc42 description {enable Fortran support with GCC 4.2 } conflicts gcc43 g95 {
	depends_lib   port:gcc42
	configure.args-delete	--without-fc
	configure.args-append	--with-fc=${prefix}/bin/gfortran-mp-4.2
}

variant gcc43 description {enable Fortran support with GCC 4.3 } conflicts gcc42 g95 {
	depends_lib   port:gcc43
	configure.args-delete	--without-fc
	configure.args-append	--with-fc=${prefix}/bin/gfortran-mp-4.3
}

variant g95 description {enable Fortran support with G95 } conflicts gcc42 gcc43 {
	depends_lib   port:g95
	configure.args-delete	--without-fc
	configure.args-append	--with-fc=${prefix}/bin/g95
}
