easyblock = 'ConfigureMake'

name = 'libXt'
version = '1.1.5'

homepage = "http://www.freedesktop.org/wiki/Software/xlibs"
description = """libXt provides the X Toolkit Intrinsics, an abstract widget library upon which other toolkits are
 based. Xt is the basis for many toolkits, including the Athena widgets (Xaw), and LessTif (a Motif implementation)."""

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

sources = [SOURCE_TAR_GZ]
source_urls = [XORG_LIB_SOURCE]

builddependencies = [
    ('xproto', '7.0.28'),
    ('kbproto', '1.0.7'),
]

dependencies = [
    ('libSM', '1.2.2'),
    ('libICE', '1.0.9'),
    ('libX11', '1.6.3'),
]

sanity_check_paths = {
    'files': [
        'include/X11/%s' %
        x for x in [
            'CallbackI.h',
            'CompositeP.h',
            'Constraint.h',
            'Core.h',
            'CreateI.h',
            'HookObjI.h',
            'Intrinsic.h',
            'IntrinsicP.h',
            'ObjectP.h',
            'RectObj.h',
            'ResConfigP.h',
            'SelectionI.h',
            'ShellI.h',
            'StringDefs.h',
            'TranslateI.h',
            'Vendor.h',
            'Xtos.h',
            'Composite.h',
            'ConstrainP.h',
            'ConvertI.h',
            'CoreP.h',
            'EventI.h',
            'InitialI.h',
            'IntrinsicI.h',
            'Object.h',
            'PassivGraI.h',
            'RectObjP.h',
            'ResourceI.h',
            'Shell.h',
            'ShellP.h',
            'ThreadsI.h',
            'VarargsI.h',
            'VendorP.h',
        ]],
    'dirs': [],
}

moduleclass = 'vis'
