easyblock = 'ConfigureMake'

name = 'CLooG'
version = '0.18.1'

homepage = 'http://www.bastoul.net/cloog/index.php'
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.
"""

toolchain = {'name': 'GCC', 'version': '4.8.2'}

sources = [SOURCELOWER_TAR_GZ]
source_urls = ['http://www.bastoul.net/cloog/pages/download/']

dependencies = [('GMP', '5.1.3')]

sanity_check_paths = {
    'files': [
        'bin/cloog',
        'lib/libcloog-isl.%s' %
        SHLIB_EXT,
        'lib/libisl.%s' %
        SHLIB_EXT],
    'dirs': []}

moduleclass = 'compiler'
