# IT4Innovations 2019

easyblock = 'ConfigureMake'

name = 'motif'
version = '2.3.8'

homepage = 'http://motif.ics.com/'
description = """Motif refers to both a graphical user interface (GUI) specification and the widget toolkit for building
 applications that follow that specification under the X Window System on Unix and other POSIX-compliant systems.
 It was the standard toolkit for the Common Desktop Environment and thus for Unix."""

toolchain = {'name': 'system', 'version': ''}

sources = ['%(name)s-%(version)s.tar.gz']
source_urls = [SOURCEFORGE_SOURCE]

dependencies = [
    ('X11', '20180604'),
    ('libpng', '1.6.34'),
    ('xbitmaps', '1.1.1'),
    ('freetype', '2.9.1'),
    ('libjpeg-turbo', '2.0.2'),
    ('bzip2', '1.0.6'),
]
builddependencies = [
    ('Autotools', '20180311'),
    ('flex', '2.6.4'),
    ('Bison', '3.0.5'),
    ('util-linux', '2.33.1'),
]

# makefile is not parallel safe
parallel = 1

sanity_check_paths = {
    'files': [
        'lib/libMrm.a',
        'lib/libUil.a',
        'lib/libXm.a',
        'bin/mwm',
        'bin/uil',
        'bin/xmbind'],
    'dirs': [
        'include/Mrm',
        'include/uil',
        'include/X11',
        'include/Xm'],
}

moduleclass = 'vis'
