easyblock = 'ConfigureMake'

name = 'libX11'
version = '1.6.3'

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

toolchain = {'name': 'intel', 'version': '2018'}

sources = [SOURCE_TAR_GZ]
source_urls = [XORG_LIB_SOURCE]

builddependencies = [
    ('xextproto', '7.3.0'),
    ('xcb-proto', '1.11', '', True),
    ('inputproto', '2.3.2'),
    ('xproto', '7.0.28'),
    ('libpthread-stubs', '0.3'),
    ('kbproto', '1.0.7'),
    ('xtrans', '1.3.5'),
    ('xorg-macros', '1.19.0'),
]

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

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'
