name = "GCC"
version = '4.7.0'

homepage = 'http://gcc.gnu.org/'
description = """The GNU Compiler Collection includes front ends for C, C++, Objective-C, Fortran,
 Java, and Ada, as well as libraries for these languages (libstdc++, libgcj,...)."""

toolchain = {'name': 'system', 'version': ''}

source_urls = [
    # GCC auto-resolving HTTP mirror
    'http://ftpmirror.gnu.org/gnu/%(namelower)s/%(namelower)s-%(version)s',
    'http://ftpmirror.gnu.org/gnu/gmp',  # idem for GMP
    'http://ftpmirror.gnu.org/gnu/mpfr',  # idem for MPFR
    'http://www.multiprecision.org/downloads',  # MPC official
]
sources = [
    SOURCELOWER_TAR_GZ,
    'gmp-5.0.4.tar.bz2',
    'mpfr-3.1.0.tar.gz',
    'mpc-0.9.tar.gz',
]

patches = ['mpfr-3.1.0-changes_fix.patch']

checksums = [
    'ef5117788e27ffef05f8b8adf46f91d8',     # gcc-4.7.0.tar.gz
    '50c3edcb7c9438e04377ee9a1a061b79',     # gmp-5.0.4.tar.bz2
    '10968131acc26d79311ac4f8982ff078',     # mpfr-3.1.0.tar.gz
    '0d6acab8d214bd7d1fbbc593e83dd00d',     # mpc-0.9.tar.gz
    'fa4095252d843d465ac9aa5e2d760dd8',     # mpfr-3.1.0-changes_fix.patch
]

languages = ['c', 'c++', 'fortran']

# building GCC sometimes fails if make parallelism is too high, so let's
# limit it
maxparallel = 4

moduleclass = 'compiler'
