# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortGroup compiler_blacklist_versions 1.0
maintainers {mmoll @mamoll}
description Programs and library for computing convex hulls.
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 \
homepage http://www.qhull.org
master_sites ${homepage}/download
distname ${name}-${vyear}-src-7.${vext}.0
checksums rmd160 1176d0477771294eb096cf6ed2d26cb8186b8613 \
sha256 78b010925c3b577adc3d58278787d7df08f7c8fb02c3490e375eab91bb58a436
worksrcdir ${name}-${version}
configure.optflags -O3 -pipe -march=native
# See https://trac.macports.org/ticket/51486
compiler.blacklist *gcc-4.2 {*gcc-4.[0-6]} {clang < 137}
configure.args-append -DDOC_INSTALL_DIR=share/doc/qhull -DMAN_INSTALL_DIR=share/man/man1
ln -s ${prefix}/include/libqhull ${destroot}${prefix}/include/qhull
ln -s ${prefix}/include/libqhull/libqhull.h ${destroot}${prefix}/include/libqhull/qhull.h
ln -s ${prefix}/lib/libqhullstatic.a ${destroot}${prefix}/lib/libqhull.a
livecheck.url ${master_sites}
livecheck.regex Download: Qhull (\[0-9.\]+) for Unix