#
# author: Dina Mahmoud Ibrahim ( Cairo University )
#
easyblock = 'ConfigureMake'

name = 'FLTK'
version = '1.3.3'

homepage = 'http://www.fltk.org'
description = """FLTK is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows,
 and MacOS X. FLTK provides modern GUI functionality without the bloat and supports 3D graphics via OpenGL
 and its built-in GLUT emulation."""

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

sources = ['%(namelower)s-%(version)s-source.tar.gz']
source_urls = ['http://fltk.org/pub/%(namelower)s/%(version)s/']

configopts = '--enable-shared --enable-threads --enable-xft'

dependencies = [
    ('libX11', '1.6.3'),
    ('libXcursor', '1.1.14'),
    ('libXinerama', '1.1.3'),
    ('Mesa', '11.1.2'),
    ('libGLU', '9.0.0'),
    ('libpng', '1.6.21'),
    ('libjpeg-turbo', '1.4.2'),
    ('xprop', '1.2.2'),
    ('libXft', '2.3.2'),
]

sanity_check_paths = {
    'files': ['bin/fltk-config', 'bin/fluid', 'lib/libfltk.a', 'lib/libfltk.%s' % SHLIB_EXT],
    'dirs': ['lib'],
}

moduleclass = 'vis'
