easyblock = 'ConfigureMake'

name = 'FDS'
version = 'r18915'

homepage = 'https://code.google.com/p/fds-smv/'
description = """Fire Dynamics Simulator (FDS) is a large-eddy simulation (LES) code for low-speed flows,
 with an emphasis on smoke and heat transport from fires."""

toolchain = {'name': 'goolf', 'version': '1.4.10'}
toolchainopts = {'pic': True, 'usempi': True}

sources = [SOURCE_TAR_GZ]
patches = ['FDS-%(version)s_makefile.patch']

# just run make in the install dir
skipsteps = ['configure', 'install']
buildininstalldir = True

modextrapaths = {'PATH': 'FDS_Source'}

sanity_check_paths = {
    'files': ['FDS_Source/fds'],
    'dirs': [],
}

moduleclass = 'phys'
