source: trunk/dports/devel/ppl/Portfile @ 102174

Last change on this file since 102174 was 102174, checked in by jeremyhu@…, 7 years ago

misc: Update compiler dependency workaround for #32542, see #37817

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.2 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 102174 2013-01-29 07:53:39Z jeremyhu@macports.org $
3
4PortSystem          1.0
5PortGroup           muniversal 1.0
6
7name                ppl
8version             1.0
9categories          devel math
10platforms           darwin
11maintainers         adfernandes openmaintainer
12license             GPL-3+
13
14description         A modern C++ library providing numerical abstractions
15
16long_description    The Parma Polyhedra Library (PPL) is a modern C++ library \
17                    providing numerical abstractions especially targeted at \
18                    applications in the field of analysis and verification of \
19                    complex systems. The PPL can handle all the convex \
20                    polyhedra that can be defined as the intersection of a \
21                    finite number of (open or closed) hyperspaces, each \
22                    described by an equality or inequality (strict or \
23                    non-strict) with rational coefficients. The PPL also \
24                    handles restricted classes of polyhedra that offer \
25                    interesting complexity/precision tradeoffs. The library \
26                    also supports finite powersets of (any kind of) polyhedra \
27                    and linear programming problems solved with an \
28                    exact-arithmetic version of the simplex algorithm.
29
30homepage            http://bugseng.com/products/ppl/
31master_sites        http://www.cs.unipr.it/ppl/Download/ftp/releases/${version}/ \
32                    ftp://ftp.cs.unipr.it/pub/ppl/releases/${version}/
33use_bzip2           yes
34
35checksums           rmd160  eb239b1ef6eed3963c604cab4c8a9d5d48813c00 \
36                    sha256  c169e962b8a0f7b7bcde5c5e0e2235248f1d78b155dfad684591d1a57e330b54
37
38depends_build       port:m4
39depends_lib         port:gmp port:glpk
40
41compiler.blacklist gcc-4.0
42
43# TODO: base should do this: http://trac.macports.org/ticket/32542
44if {[info exists portconfigure::compiler_name_map(${configure.compiler})]} {
45    depends_build-append port:$portconfigure::compiler_name_map(${configure.compiler})
46
47    # base 2.1.x ignores the argument and just use ${configure.compiler}
48    if {[portconfigure::arch_flag_supported ${configure.compiler}]} {
49        depends_skip_archcheck-append $portconfigure::compiler_name_map(${configure.compiler})
50    }
51
52    if {[string match macports-gcc* ${configure.compiler}]} {
53        depends_lib-append port:$portconfigure::compiler_name_map(${configure.compiler})
54    }
55}
56
57if { [string match "*clang*" ${configure.compiler}] || [string match "*llvm*" ${configure.compiler}] } {
58    # As of 'ppl-0.12.1', we need to be careful about use of the '--enable-fpmath' flag!
59    # Newer versions of 'clang' will error about '-frounding-math' being unsupported due to '-Werror'.
60    # Older versions of 'clang' will just warn about '-frounding-math' despite '-Werror'.
61    # And 'llvm-gcc' does not '-frounding-math' and siliently ignores it.
62    configure.args-append   --enable-fpmath=no
63        configure.ccache        no
64        configure.distcc        no
65}
66
67test.run            yes
68test.target         check
69
70livecheck.type      regex
71livecheck.url       ${homepage}Download/
72livecheck.regex     ${name}-(\[0-9.\]+)\\.tar
Note: See TracBrowser for help on using the repository browser.