easyblock = 'ConfigureMake'

name = 'libXi'
version = '1.7.6'

homepage = "http://www.freedesktop.org/wiki/Software/xlibs"
description = """LibXi provides an X Window System client interface to the XINPUT extension to the X protocol."""

toolchain = {'name': 'foss', 'version': '2016a'}

sources = [SOURCE_TAR_GZ]
source_urls = [XORG_LIB_SOURCE]

builddependencies = [
    ('xproto', '7.0.28'),
    ('xextproto', '7.3.0'),
    ('inputproto', '2.3.1'),
    ('xorg-macros', '1.19.0'),
]

dependencies = [
    ('libXext', '1.3.3'),
    ('libXfixes', '5.0.1'),
]

sanity_check_paths = {
    'files': [
        'include/X11/extensions/XInput.h',
        'include/X11/extensions/XInput2.h',
        'lib/libXi.%s' %
        SHLIB_EXT,
        'lib/libXi.a'],
    'dirs': [],
}

moduleclass = 'vis'
