easyblock = 'ConfigureMake'

name = 'libepoxy'
version = '1.4.3'

homepage = "https://github.com/anholt/libepoxy"
description = "Epoxy is a library for handling OpenGL function pointer management for you"

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

sources = [SOURCE_TAR_XZ]
source_urls = [
    'https://github.com/anholt/libepoxy/releases/download/%(version)s']

# dependencies = [
#    ('Mesa', '17.0.2'),
#]

configopts = '--enable-egl=no'

sanity_check_paths = {
    'files': [
        'include/epoxy/common.h',
        'include/epoxy/gl.h',
        'include/epoxy/glx.h',
        'lib/libepoxy.la',
        'lib/libepoxy.so'],
    'dirs': [
        'lib',
        'include'],
}

moduleclass = 'vis'
