# $Id: Portfile 63293 2010-01-31 23:36:45Z mmoll@macports.org $

PortSystem 1.0
PortGroup cmake 1.0
name		qhull
version		2010.1
revision	2
categories	math
platforms	darwin
maintainers	mmoll

description Programs and library for computing convex hulls.
long_description	\
	Qhull computes the convex hull, Delaunay triangulation, Voronoi \
	diagram, halfspace intersection about a point, furthest-site \
	Delaunay triangulation, and furthest-site Voronoi diagram. The \
	software runs in 2-d, 3-d, 4-d, and higher dimensions. Qhull \
	implements the Quickhull algorithm for computing the convex hull. \
	It handles roundoff errors from floating point arithmetic. Qhull \
	also computes volumes, surface areas, and approximations to the \
	convex hull.

homepage	http://www.qhull.org
master_sites	${homepage}/download
distname	${name}-${version}-src
extract.suffix	.tgz
checksums           md5     e64138470acdeb18f752a0bc2a11ceb4 \
                    sha1    ed480912e03efdd767195c06c7e8c252c78112b1 \
                    rmd160  840530f0d103cfa0bd86d0226a41084866dd5ca2
patchfiles	patch-CMakeLists.txt.diff patch-src-CMakeLists.txt.diff
configure.args	-DCMAKE_C_FLAGS=\"-fno-common\"
worksrcdir	${name}-${version}	
livecheck.type  regex
livecheck.url   ${master_sites}
livecheck.regex Download: Qhull (\[0-9.\]+) for Unix
