easyblock = 'MesonNinja'

name = 'libepoxy'
version = '1.5.2'

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

toolchain = {'name': 'foss', 'version': '2018b'}

source_urls = ['https://github.com/anholt/%(name)s/releases/download/%(version)s/']
sources = [SOURCELOWER_TAR_XZ]
checksums = ['4a6b9e581da229dee74c2263c84b1eca']

builddependencies = [
    ('Meson', '0.48.1', '-Python-3.6.6'),
    ('Ninja', '1.8.2'),
]

dependencies = [
    ('Mesa', '19.0.1', '-Python-3.6.6'),
]

configopts = '-Dglx=yes -Degl=no'

sanity_check_paths = {
    'files': ['lib64/libepoxy.so'],
    'dirs': ['include/epoxy'],
}

moduleclass = 'lib'
