# This is an easyconfig file for EasyBuild, see https://github.com/hpcugent/easybuild
# Copyright:: Copyright 2013 Juelich Supercomputing Centre, Germany
# Authors::   Bernd Mohr <b.mohr@fz-juelich.de>
# License::   New BSD
#
# This work is based from experiences from the UNITE project
# http://apps.fz-juelich.de/unite/
##
easyblock = 'ConfigureMake'

name = "OTF"
version = "1.12.4"

homepage = 'http://www.tu-dresden.de/zih/otf/'
description = """The Open Trace Format is a highly scalable, memory efficient event
 trace data format plus support library. It is the standard trace format
 for Vampir, and is open for other tools. [NOW OBSOLETE: use OTF2]"""

toolchain = {'name': 'gompi', 'version': '1.4.12-no-OFED'}

# http://wwwpub.zih.tu-dresden.de/%7Emlieber/dcount/dcount.php?package=otf&get=OTF-1.12.4salmon.tar.gz
sources = ['%(name)s-%(version)ssalmon.tar.gz']
source_urls = ['http://wwwpub.zih.tu-dresden.de/%7Emlieber/dcount/dcount.php?package=otf&get=']

# name change in version 1.12.3: "open-trace-format" was "otf" in older versions
# "open-trace-format" => "otf" for versions until 1.12.2
sanity_check_paths = {
    'files': ["bin/otfconfig", "include/open-trace-format/otf.h",
              # note by Bernd Mohr: on some systems libraries end up in lib/
              ("lib64/libopen-trace-format.a", "lib/libopen-trace-format.a")],
    'dirs': [],
}

moduleclass = 'perf'
