easyblock = "ConfigureMake"

name = 'Paraver'
version = '4.11.2'

homepage = 'http://tools.bsc.es'
description = """A very powerful performance visualization and analysis tool based on
 traces that can be used to analyse any information that is expressed on its input trace format.
 Traces for parallel MPI, OpenMP and other programs can be genereated with Extrae."""

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

source_urls = ['https://ftp.tools.bsc.es/wxparaver']
sources = ['wxparaver-%(version)s-src.tar.bz2']

checksums = [
    '86103a6c4a6579a88dfd6141d5a8a17d924225d45e428a2165c044f4c7555670',  # wxparaver-4.11.2-src.tar.bz2
]

sanity_check_paths = {
    'files': ['bin/wxparaver', 'bin/wxparaver.bin', 'bin/paramedir'],
    'dirs': ['bin', 'cfgs', 'include', 'lib64', 'share'],
}

dependencies = [
    ('libxml2', '2.9.13'),
    ('zlib', '1.2.12'),
    ('Boost', '1.79.0'),
    ('OpenSSL', '1.1', '', True),
    ('wxWidgets', '3.2.1')
]

moduleclass = 'perf'

configure_cmd = "./configure --with-boost=$EBROOTBOOST "
configure_cmd += "--with-wx-config=$EBROOTWXWIDGETS/bin/wx-config "
configure_cmd += "--with-openssl=$EBROOTOPENSSL "
configure_cmd += "--with-xml-prefix=$EBROOTLIBXML2 "
configure_cmd += "--enable-openmp "
configure_cmd += "--with-debug-level=release "
configure_cmd += "CXXFLAGS=-std=c++14"

build_cmd = "make install"

install_cmd = None