easyblock = 'ConfigureMake'

name = 'FLTK'
version = '1.3.4'

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': 'system', 'version': ''}
toolchainopts = {'optarch': True, 'pic': True}

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

dependencies = [
    ('Tcl', '8.6.6'),
    ('Tk', '8.6.6'),
]

configopts = 'CXXFLAGS="-O3 -fPIC" CFLAGS="-O3 -fPIC" '

sanity_check_paths = {
    'files': ['bin/fltk-config', 'bin/fluid'],
    'dirs': ['lib'],
}

moduleclass = 'vis'
