easyblock = 'ConfigureMake'

name = 'libXt'
version = '1.1.4'

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': 'intel', 'version': '2015b'}
toolchainopts = {'optarch': True}

sources = [SOURCE_TAR_GZ]
source_urls = [XORG_LIB_SOURCE]

libx11ver = '1.6.2'
versionsuffix = '-libX11-%s' % libx11ver
dependencies = [
    ('libSM', '1.2.2'),
    ('libICE', '1.0.9'),
    ('libX11', libx11ver, '-Python-2.7.9'),
]

builddependencies = [
    ('xproto', '7.0.26'),
    ('kbproto', '1.0.6'),
]

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'
