# $Id: Portfile 92997 2012-05-13 18:54:28Z mcalhoun@macports.org $

PortSystem          1.0
PortGroup           muniversal 1.0

name                cloog
version             0.16.3
revision            0
epoch               1

categories          devel math

maintainers         openmaintainer adfernandes
platforms           darwin

description         CLooG, the Chunky Loop Generator, generates code for scanning Z-polyhedra

long_description    CLooG is a free software and library to generate code for scanning Z-polyhedra. \
                    That is, it finds a code (e.g. in C, FORTRAN...) that reaches each \
                    integral point of one or more parameterized polyhedra. CLooG has been \
                    originally written to solve the code generation problem for optimizing \
                    compilers based on the polytope model. Nevertheless it is used now in \
                    various area e.g. to build control automata for high-level synthesis \
                    or to find the best polynomial approximation of a function. CLooG may \
                    help in any situation where scanning polyhedra matters. While the user \
                    has full control on generated code quality, CLooG is designed to avoid \
                    control overhead and to produce a very effective code.

license             LGPL-2.1+
homepage            http://repo.or.cz/w/cloog.git
master_sites        http://www.bastoul.net/cloog/pages/download/count.php3?url=./

checksums           rmd160  e2cd5f93b2221c037027b20ce23636952902235c \
                    sha256  89d5e9f982b3577ac5218ae35608f3a28d90fad6cb3136b99320ebefbed6eb53

depends_lib         port:gmp port:isl

# prevent -L/lib from being added to LDFLAGS
# see http://groups.google.com/group/isl-development/t/37ad876557e50f2c 
patchfiles          patch-configure.diff

configure.args-append \
                    --with-isl=system

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     ${name}-(\[0-9.\]+)\\.tar.gz
