# IT4Innovations 2023
# JK

easyblock = 'ConfigureMake'

name = 'libmad'
version = '0.15.1b'

homepage = 'https://www.underbit.com/products/mad/'
description = """MAD is a high-quality MPEG audio decoder."""

toolchain = {'name': 'GCCcore', 'version': '11.3.0'}

source_urls = ['https://sourceforge.net/projects/mad/files/%(name)s/%(version)s/']
sources = [SOURCELOWER_TAR_GZ]
patches = ['libmad-0.15.1b-remove-depreciated-gcc-option.patch']
checksums = [
    'bbfac3ed6bfbc2823d3775ebb931087371e142bb0e9bb1bee51a76a6e0078690',  # libmad-0.15.1b.tar.gz
    # libmad-0.15.1b-remove-depreciated-gcc-option.patch
    '8f96a23a22ba66e62f32e20064d01f4c7f6a18ba0aab85d3be9ce63794b2c678',
]

builddependencies = [('binutils', '2.38')]

sanity_check_paths = {
    'files': ['include/mad.h', 'lib/libmad.a', 'lib/libmad.la', 'lib/libmad.%s' % SHLIB_EXT],
    'dirs': ['include', 'lib', 'lib64']
}

moduleclass = 'lib'
