easyblock = 'EB_Qt'

name = 'Qt5'
version = '5.7.0'

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

toolchain = {'name': 'intel', 'version': '2017a'}

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

builddependencies = [
    ('fixesproto', '5.0'),
    ('glproto', '1.4.17'),
    ('inputproto', '2.3.1'),
    ('kbproto', '1.0.7'),
    ('libpthread-stubs', '0.3'),
    ('pkg-config', '0.29.1'),
    ('xcb-proto', '1.11', '', True),
    ('xextproto', '7.3.0'),
    ('xorg-macros', '1.19.0'),
    ('xproto', '7.0.28'),
    ('xtrans', '1.3.5'),
]

dependencies = [
    ('GLib', '2.48.0'),
    ('libX11', '1.6.3'),
    ('libXt', '1.1.5'),
    ('libXi', '1.7.6'),
    ('xcb-util', '0.4.0'),
    ('xcb-util-image', '0.4.0'),
    ('xcb-util-keysyms', '0.4.0'),
    ('xcb-util-renderutil', '0.3.9'),
    ('xcb-util-wm', '0.4.1'),
    ('libxkbcommon', '0.6.1'),
    ('libXrender', '0.9.9'),
    ('fontconfig', '2.11.95'),
    ('freetype', '2.6.3'),
    ('libXfixes', '5.0.1'),
    ('libXcursor', '1.1.14'),
    ('libXinerama', '1.1.3'),
    ('libXrandr', '1.5.0'),
    ('libpng', '1.6.21'),
    ('libGLU', '9.0.0', '-Mesa-11.2.1'),
]

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

moduleclass = 'devel'
