easyblock = 'ConfigureMake'

name = 'Togl'
version = "1.7"

homepage = 'https://sourceforge.net/projects/togl/'
description = """A Tcl/Tk widget for OpenGL rendering."""

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

source_urls = ['https://downloads.sourceforge.net/project/togl/Togl/1.7/']
sources = ['%(name)s-%(version)s.tar.gz']

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

configopts = "--with-tcl=$EBROOTTCL/lib --with-tk=$EBROOTTK/lib"

postinstallcmds = [
    'mkdir %(installdir)s/lib',
    'cp *.so %(installdir)s/lib -R',
]

sanity_check_paths = {
    'files': [],
    'dirs': ['include'],
}

moduleclass = 'vis'
