easyblock = 'ConfigureMake'

name = 'gtkglext'
version = '1.2.0'

homepage = 'https://projects.gnome.org/gtkglext'
description = """GtkGLExt is an OpenGL extension to GTK+."""

toolchain = {'name': 'intel', 'version': '2015b'}

source_urls = [SOURCEFORGE_SOURCE]
sources = [SOURCE_TAR_GZ]

patches = ['gtkglext-%(version)s_fix-gtk-local_compat.patch']

local_pangover = '1.37.1'
dependencies = [
    ('GTK+', '2.24.28'),
    ('Pango', local_pangover),
    ('pangox-local_compat', '0.0.2', '-Pango-%s' % local_pangover),
]

sanity_check_paths = {
    'files': [
        'lib/gtkglext-1.0/include/gdkglext-config.h',
        'lib/libgdkglext-x11-1.0.a',
        'lib/libgdkglext-x11-1.0.%s' %
        SHLIB_EXT,
        'lib/libgtkglext-x11-1.0.a',
        'lib/libgtkglext-x11-1.0.%s' %
        SHLIB_EXT],
    'dirs': [
        'include/gtkglext-1.0/gdk',
        'include/gtkglext-1.0/gtk',
        'lib/pkgconfig'],
}

moduleclass = 'vis'
