source: trunk/dports/math/qhull/Portfile

Last change on this file was 149962, checked in by mmoll@…, 13 months ago

math/qhull: don't force gcc, use blacklist instead

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# -*- 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
2# $Id: Portfile 149962 2016-07-06 22:04:58Z ryandesign@macports.org $
3
4PortSystem 1.0
5PortGroup           cmake 1.0
6PortGroup           compiler_blacklist_versions 1.0
7cmake.out_of_source yes
8
9name                qhull
10set                 vyear   2015
11set                 vext    2
12version             ${vyear}.${vext}
13revision            1
14categories          math
15platforms           darwin
16maintainers         mmoll
17license             Permissive
18
19description Programs and library for computing convex hulls.
20long_description    \
21    Qhull computes the convex hull, Delaunay triangulation, Voronoi \
22    diagram, halfspace intersection about a point, furthest-site \
23    Delaunay triangulation, and furthest-site Voronoi diagram. The \
24    software runs in 2-d, 3-d, 4-d, and higher dimensions. Qhull \
25    implements the Quickhull algorithm for computing the convex hull. \
26    It handles roundoff errors from floating point arithmetic. Qhull \
27    also computes volumes, surface areas, and approximations to the \
28    convex hull.
29
30homepage            http://www.qhull.org
31master_sites        ${homepage}/download
32distname            ${name}-${vyear}-src-7.${vext}.0
33extract.suffix      .tgz
34
35checksums           rmd160  1176d0477771294eb096cf6ed2d26cb8186b8613 \
36                    sha256  78b010925c3b577adc3d58278787d7df08f7c8fb02c3490e375eab91bb58a436
37
38worksrcdir          ${name}-${version}
39
40variant perf {
41    configure.optflags  -O3 -pipe -march=native
42}
43
44# See https://trac.macports.org/ticket/51486
45compiler.blacklist  *gcc-4.2 {*gcc-4.[0-6]} {clang < 137}
46
47configure.args-append   -DDOC_INSTALL_DIR=share/doc/qhull -DMAN_INSTALL_DIR=share/man/man1
48
49post-destroot {
50    ln -s ${prefix}/include/libqhull ${destroot}${prefix}/include/qhull
51    ln -s ${prefix}/include/libqhull/libqhull.h ${destroot}${prefix}/include/libqhull/qhull.h
52    ln -s ${prefix}/lib/libqhullstatic.a ${destroot}${prefix}/lib/libqhull.a
53}
54livecheck.type      regex
55livecheck.url       ${master_sites}
56livecheck.regex     Download: Qhull (\[0-9.\]+) for Unix
57
58test.run  yes
Note: See TracBrowser for help on using the repository browser.