easyblock = 'EB_Qt'

name = 'Qt5'
version = '5.8.0'

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

toolchain = {'name': 'GCC', 'version': '6.3.0-2.27'}

source_urls = [
    'http://download.qt.io/official_releases/qt/%(version_major_minor)s/%(version)s/single/',
    'http://download.qt.io/archive/qt/%(version_major_minor)s/%(version)s/single/']
sources = ['qt-everywhere-opensource-src-%(version)s.tar.xz']

patches = ['Qt5-5.7.1_fix-nan-inf.patch']

builddependencies = [
    ('pkg-config', '0.29.2', '', True),
]

# qtgamepad needs recent kernel/libevdev (fails on RHEL 6.x)
configopts = '-skip qtgamepad'

dependencies = [
    ('GLib', '2.40.0', '', True),
    ('libpng', '1.6.29', '', True),
    ('X11', '20160819', '', True),
    ('libGLU', '9.0.0', '', True),
]

moduleclass = 'devel'
