# -*- 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
# $Id: Portfile 107462 2013-06-29 23:24:18Z jeremyhu@macports.org $

PortSystem          1.0
PortGroup           muniversal 1.0

name                cloog
version             0.18.0
epoch               1

categories          devel math

maintainers         nomaintainer
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  abe274a5ff95c8a08e73c58e5d891a804d057ece \
                    sha256  1c4aa8dde7886be9cbe0f9069c334843b21028f61d344a2d685f88cb1dcf2228

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
