# $Id: Portfile 53774 2009-07-13 15:19:38Z mmoll@macports.org $

PortSystem 1.0

name		qhull
version		2003.1
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
checksums	md5 48228e26422bff85ef1f45df5b6e3314
configure.args --mandir=${prefix}/share/man
post-configure {  
    if [variant_isset universal] { 
        reinplace "s|\\\$allow_undefined_flag|\$allow_undefined_flag ${configure.universal_ldflags}|" ${worksrcpath}/libtool 
    } 
}
livecheck.check regex
livecheck.url   ${master_sites}
livecheck.regex Download: Qhull (\[0-9.\]+) for Unix
