# IT4Innovation 2020

easyblock = 'EB_Qt'

name = 'Qt5'
version = '5.13.1'

homepage = 'http://qt.io/'
description = "Qt is a local_comprehensive cross-platform C++ application framework."

toolchain = {'name': 'GCCcore', 'version': '8.3.0'}
toolchainopts = {'vectorize': False}

source_urls = [
    'https://download.qt.io/official_releases/qt/%(version_major_minor)s/%(version)s/single/',
    'https://download.qt.io/archive/qt/%(version_major_minor)s/%(version)s/single/'
]
sources = ['qt-everywhere-src-%(version)s.tar.xz']
patches = [
    'Qt5-%(version)s_fix-avx2.patch',
    'Qt5-%(version)s_fix-qmake-libdir.patch',
]
checksums = [
    'adf00266dc38352a166a9739f1a24a1e36f1be9c04bf72e16e142a256436974e',  # qt-everywhere-src-5.13.1.tar.xz
    '6f46005f056bf9e6ff3e5d012a874d18ee03b33e685941f2979c970be91a9dbc',  # Qt5-5.13.1_fix-avx2.patch
    '511ca9c0599ceb1989f73d8ceea9199c041512d3a26ee8c5fd870ead2c10cb63',  # Qt5-5.13.1_fix-qmake-libdir.patch
]

# qtgamepad needs recent kernel/libevdev (fails on RHEL 6.x)
#configopts = '-sbkip qtgamepad'
platform = 'linux-g++-64'

check_qtwebengine = True

builddependencies = [
    ('pkg-config', '0.29.2'),
    ('binutils', '2.32'),
    ('Bison', '3.3.2', '', True),
    ('flex', '2.6.4', '', True),
    ('Python', '2.7.13', '', True),
    ('Ninja', '1.9.0', '', True),
    ('gperf', '3.1', '', True),
]

dependencies = [
    ('GLib', '2.62.4', '', True),
    ('libpng', '1.6.37', '', True),
    ('X11', '20190717', '', True),
    ('libGLU', '9.0.0', '', True),
    ('Mesa', '18.3.1', '', True),
    ('NSS', '3.51', '', True),
    ('DBus', '1.13.8', '', True),
]

moduleclass = 'devel'
