# IT4Innovations
# LK 2023

easyblock = 'ConfigureMake'

name = 'gperftools'
version = '2.10'

homepage = 'https://github.com/gperftools/gperftools'
description = """
gperftools is a collection of a high-performance multi-threaded malloc()
implementation, plus some pretty nifty performance analysis tools.
Includes TCMalloc, heap-checker, heap-profiler and cpu-profiler.
"""

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

github_account = 'gperftools'
source_urls = [GITHUB_SOURCE]
sources = [SOURCE_TAR_GZ]
checksums = ['b0dcfe3aca1a8355955f4b415ede43530e3bb91953b6ffdd75c45891070fe0f1']

builddependencies = [
    ('Autotools', '20220317'),
    ('binutils', '2.39'),
]

dependencies = [
    ('libunwind', '1.6.2'),
]

preconfigopts = "autoreconf -f -i && "
configopts = '--enable-libunwind'

sanity_check_paths = {
    'files': ['bin/pprof', 'lib/libprofiler.a', 'lib/libprofiler.%s' % SHLIB_EXT,
              'lib/libtcmalloc.a', 'lib/libtcmalloc.%s' % SHLIB_EXT],
    'dirs': ['include'],
}

moduleclass = 'tools'
