# IT4Innovations 2019

name = 'ifort'
version = '2019.4.227'

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

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

source_urls = ['http://registrationcenter-download.intel.com/akdlm/irc_nas/tec/14866/']
sources = ['parallel_studio_xe_%(version_major)s_update%(version_minor)s_composer_edition_for_fortran.tgz']
#patches = ['ifort-%(version)s_no_mpi_mic_dependency.patch']

gccver = '9.1.0'
binutilsver = '2.32'
versionsuffix = '-GCC-%s-%s' % (gccver, binutilsver)

dependencies = [
    ('GCCcore', gccver),
    ('binutils', binutilsver, '', ('GCCcore', 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(?!.*mic)']

dontcreateinstalldir = 'True'

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

modextravars = {
    'F90': 'ifort',
    'F77': 'ifort',
    'FC': 'ifort',
    'OPTFLAGS': '-O3 -xHost -ip',
    'DEBUGFLAGS': '-O0 -g'
}

modluafooter = 'add_property("state","experimental")'

moduleclass = 'compiler'
