easyblock = 'ConfigureMake'

name = 'libXext'
version = '1.3.3'

homepage = "http://www.freedesktop.org/wiki/Software/xlibs"
description = """Common X Extensions library"""

toolchain = {'name': 'intel', 'version': '2016a'}
toolchainopts = {'optarch': True}

sources = [SOURCE_TAR_GZ]
source_urls = [XORG_LIB_SOURCE]

builddependencies = [
    ('xproto', '7.0.28'),
    ('xextproto', '7.3.0'),
    ('libpthread-stubs', '0.3'),
]

dependencies = [
    ('libX11', '1.6.3'),
]

sanity_check_paths = {
    'files': [
        'include/X11/extensions/%s' %
        x for x in [
            'dpms.h',
            'extutil.h',
            'MITMisc.h',
            'multibuf.h',
            'security.h',
            'shape.h',
            'sync.h',
            'Xag.h',
            'Xcup.h',
            'Xdbe.h',
            'XEVI.h',
            'Xext.h',
            'Xge.h',
            'XLbx.h',
            'XShm.h',
            'xtestext1.h',
        ]],
    'dirs': [],
}

moduleclass = 'vis'
