name = 'ifort'
version = '2017.4.196'

homepage = 'http://software.intel.com/en-us/intel-compilers/'
description = "Intel Fortran local_compiler"

toolchain = SYSTEM

sources = [
    'parallel_studio_xe_%(version_major)s_update%(version_minor)s_composer_edition_for_fortran.tgz']

checksums = ['0b6a222e015f776600b12b17c19506249c9e7691a8d287f44cd40a66ca9ac749']

# remove dependency on intel-mpi-rt-mic
patches = ['ifort_2017_no_mpi_mic_dependency.patch']

local_gccver = '6.4.0'
local_binutilsver = '2.28'
versionsuffix = '-GCC-%s-%s' % (local_gccver, local_binutilsver)

dependencies = [
    ('GCCcore', local_gccver),
    ('binutils', local_binutilsver, '', ('GCCcore', local_gccver)),
]

# list of regex for components to install
# full list of components can be obtained from pset/mediaconfig.xml in unpacked sources
# cfr.
# https://software.intel.com/en-us/articles/intel-composer-xe-2015-silent-installation-guide
components = [
    'intel-comp',
    'intel-fcomp',
    'intel-ifort',
    'intel-openmp',
    'intel-ipsf?_',
    'intel-gdb']

dontcreateinstalldir = 'True'

license_file = '/apps/licenses/intel/license.lic'

moduleclass = 'compiler'
