# $Id: Portfile,v 1.4 2006/02/22 14:10:27 mww Exp $

PortSystem 1.0

name		openbabel
version		2.0.0
categories	science devel
platforms	darwin 
maintainers	beatrupp@gmail.com
description	A chemistry file translation program.
long_description	Open Babel is a free, open-source version \
			of the Babel chemistry file translation program. \
			OpenBabel is a project designed to pick up where \
			Babel left off, as a cross-platform program and \
			library designed to interconvert between many \
			file formats used in molecular modeling and \
			computational chemistry.
homepage	http://openbabel.sourceforge.net/
master_sites	sourceforge
checksums	sha1 2c16e164f4606e604a0238b8fdacd4dbd4e01f34
configure.args	--mandir=${prefix}/share/man 
depends_lib	port:libiconv port:libxml2 port:zlib


platform darwin 7 {
	depends_build	port:libtool
	configure.env	LIBTOOL=${prefix}/bin/glibtool
	build.args		LIBTOOL=${prefix}/bin/glibtool
	destroot.args	LIBTOOL=${prefix}/bin/glibtool
}

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

