# $Id: Portfile,v 1.2 2006/03/31 18:48:41 matt Exp $

PortSystem 1.0
name			boinc
version			4.11
categories		science
platforms		darwin
maintainers		darwinports@opendarwin.org
homepage		http://boinc.berkeley.edu/
description		Software for distributed computing.

long_description	A software for distributed computing using volunteered \
			computer resources.

master_sites		${homepage}/source/archive/
checksums		md5 7a35b04792a823f0657bb0e3061a4897

configure.args		--enable-client \
			--disable-server \
			--bindir=${prefix}/libexec/${name}

variant ppc750 {	configure.env		CFLAGS="-O2 -mcpu=750 -pipe" \
						CXXFLAGS="-02 -mcpu=750 -pipe"
			configure.args-append	--program-suffix=_ppc750
			}

variant ppc7450 {	configure.env		CFLAGS="-O3 -maltivec -fast -mcpu=7450" \
						CXXFLAGS="-O3 -maltivec -fast -mcpu=7450"
			configure.args-append	--program-suffix=_ppc7450
			}

# Notify the user where is the binary
post-install {		ui_msg "\n#####################################"
			ui_msg "${name} has been installed into:\n"
			ui_msg "${prefix}/libexec/${name}\n"
			ui_msg "as ${name} creates a bunch of"
			ui_msg "folders and *.xml for various projects.\n"
			ui_msg "So you should launch it within that"
			ui_msg "directory.\n"
			ui_msg "#######################################\n"
			}
