Ticket #21286: Portfile

File Portfile, 2.2 KB (added by jwhowse4, 15 years ago)

Portfile that worked under Leopard with Macports GCC 4.3

Line 
1# $Id: Portfile 57361 2009-09-10 06:52:39Z ryandesign@macports.org $
2PortSystem        1.0
3name              ppl
4version           0.10.2
5categories        devel math
6maintainers       nomaintainer
7platforms         darwin
8description       A modern C++ library providing numerical abstractions
9long_description  The Parma Polyhedra Library (PPL) is a modern C++ library \
10                  providing numerical abstractions especially targeted at \
11                  applications in the field of analysis and verification of \
12                  complex systems. The PPL can handle all the convex \
13                  polyhedra that can be defined as the intersection of a \
14                  finite number of (open or closed) hyperspaces, each \
15                  described by an equality or inequality (strict or \
16                  non-strict) with rational coefficients. The PPL also \
17                  handles restricted classes of polyhedra that offer \
18                  interesting complexity/precision tradeoffs. The library \
19                  also supports finite powersets of (any kind of) polyhedra \
20                  and linear programming problems solved with an \
21                  exact-arithmetic version of the simplex algorithm.
22homepage          http://www.cs.unipr.it/ppl/
23master_sites      ftp://ftp.cs.unipr.it/pub/ppl/releases/${version}/
24use_bzip2         yes
25checksums         md5     5667111f53150618b0fa522ffc53fc3e \
26                  sha1    9af711df8f24658a6deb61ca3b8c5e82366258bf \
27                  rmd160  432d0e59c058cc1da6cfeaffcb91bebc7b6e1db2
28depends_lib       port:gmp port:glpk
29license           GPLv3
30
31test.run          yes
32test.target       check
33
34livecheck.type    regex
35livecheck.url     ${homepage}Download/
36livecheck.regex   ${name}-(\[0-9.\]+)\\.tar
37
38variant gcc43 conflicts gcc44 description "Use GCC 4.3 for compilation of PPL" {
39    depends_build-append        port:gcc43
40    configure.compiler          macports-gcc-4.3
41    configure.cflags-append     "-ftree-vectorize -O3 -march=native"
42}
43
44variant gcc44 conflicts gcc43 description "Use GCC 4.4 for compilation of PPL" {
45    depends_build-append        port:gcc44
46    configure.compiler          macports-gcc-4.4
47    configure.cflags-append     "-ftree-vectorize -O3 -march=native"
48}