easyblock = 'ConfigureMake'

name = 'Netgen'
version = "5.3.1"

homepage = 'https://ngsolve.org/'
description = """Netgen/NGSolve is a high performance multiphysics finite element software. It is widely used to
analyze models from solid mechanics, fluid dynamics and electromagnetics. Due to its flexible Python interface
new physical equations and solution algorithms can be implemented easily."""

toolchain = {'name': 'intel', 'version': '2017a'}

source_urls = [
    'https://downloads.sourceforge.net/project/netgen-mesher/netgen-mesher/5.3/']
sources = ['netgen-5.3.1.tar.gz']

dependencies = [
    ('Togl', '1.7', '', True),
    ('Tk', '8.6.5', '', True),
    ('Tcl', '8.6.5', '', True),
]

configopts = '--with-tcl=$EBROOTTCL/lib --with-tk=$EBROOTTK/lib --with-togl=$EBROOTTOGL CXX=mpicxx CC=mpicc'

prebuildopts = 'patch ng/Makefile /apps/easybuild/easyconfigs-it4i/n/Netgen/ng.patch && '

sanity_check_paths = {
    'files': [],
    'dirs': ['bin'],
}

moduleclass = 'phys'
