easyblock = 'ConfigureMake'

name = 'libXext'
version = '1.3.3'
versionsuffix = '-Python-2.7.9'

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

toolchain = {'name': 'foss', 'version': '2015g'}
toolchainopts = {'optarch': True}

sources = [SOURCE_TAR_GZ]
source_urls = ['http://xorg.freedesktop.org/archive/individual/lib/']

builddependencies = [
    ('xproto', '7.0.26'),
    ('xextproto', '7.3.0'),
]

dependencies = [
    ('libX11', '1.6.2', versionsuffix),
    ('libXdmcp', '1.1.2'),
]

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'
