easyblock = 'ConfigureMake'

name = 'libX11'
version = '1.6.5'

homepage = "http://www.freedesktop.org/wiki/Software/xlibs"
description = """X11 client-side library"""

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

sources = [SOURCE_TAR_GZ]
source_urls = [XORG_LIB_SOURCE]

builddependencies = [
    ('xextproto', '7.3.0', '', True),
    ('xcb-proto', '1.11', '', True),
    ('inputproto', '2.3', '', True),
    ('xproto', '7.0.28', '', True),
    ('libpthread-stubs', '0.4', '', True),
    ('kbproto', '1.0.7', '', True),
    ('xtrans', '1.3.5', '', True),
]

dependencies = [
    ('libxcb', '1.11.1', '', True),
]

sanity_check_paths = {
    'files': [
        'include/X11/%s' %
        x for x in [
            'cursorfont.h',
            'ImUtil.h',
            'Xcms.h',
            'XKBlib.h',
            'XlibConf.h',
            'Xlib.h',
            'Xlibint.h',
            'Xlib-xcb.h',
            'Xlocale.h',
            'Xregion.h',
            'Xresource.h',
            'Xutil.h',
        ]],
    'dirs': [],
}

moduleclass = 'vis'