# IT4Innovations 2019

name = 'ifort'
version = '2019.4.243'

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

toolchain = SYSTEM

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']

local_gccver = '8.3.0'
local_binutilsver = '2.32'
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(?!.*mic)']

dontcreateinstalldir = 'True'

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

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

moduleclass = 'compiler'