easyblock = 'ConfigureMake'

name = 'likwid'
version = '4.0.1'

homepage = 'http://code.google.com/p/likwid/'
description = """Likwid stands for Like I knew what I am doing. This project contributes easy to use
 command line tools for Linux to support programmers in developing high performance multi threaded programs."""

toolchain = {'name': 'intel', 'version': '2015b'}

sources = [SOURCE_TAR_GZ]
source_urls = ['http://ftp.fau.de/pub/likwid/']

skipsteps = ['configure']
buildopts = 'CC="$CC" CFLAGS="$CFLAGS -std=c99"'
installopts = 'PREFIX=%(installdir)s'

sanity_check_paths = {
    'files': ["bin/likwid-features", "bin/likwid-memsweeper", "bin/likwid-mpirun", "bin/likwid-perfctr",
              "bin/likwid-perfscope", "bin/likwid-pin", "bin/likwid-powermeter", "bin/likwid-topology",
              "lib/liblikwidpin.so", "lib/liblikwid.a"],
    'dirs': ["man/man1"]
}

moduleclass = 'devel'
