# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortGroup linear_algebra 1.0
github.setup dealii dealii 9.1.1 v
maintainers {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
description a C++ software library supporting the creation of finite element codes
long_description ${name} is ${description}.
homepage https://www.dealii.org/
checksums rmd160 24ae505937cbe6534bfdd2a1b1fa69717e34531c \
sha256 8c58efba9fc4a7b68812882b046915a2a31f8555b12071a0835ee565f27324b6 \
mpi.setup require_fortran
patchfiles-append patch-boost_python.diff
if {[variant_isset debug]} {
# deal.II sets its own optimization flags
compiler.cxx_standard 2017
# install location for LICENSE.md, README.md, detailed.log, summary.log, etc.
# install location for examples
configure.args-append -DDEAL_II_DOCREADME_RELDIR=share/${name} \
-DDEAL_II_EXAMPLES_RELDIR=share/${name}/examples \
-DDEAL_II_DOCHTML_RELDIR=share/${name}/doc
# always use MacPorts library
configure.args-append -DDEAL_II_ALLOW_BUNDLED=OFF
# Boost is the only mandatory dependency
depends_lib-append port:boost
# deal.II requires a version of ADOLC-C that has not been released yet
# (see https://github.com/dealii/dealii/issues/7293)
# CUDA requires a graphics card from Nvidia
# Ginkgo does not exist in MacPorts and requires CUDA
# Trilinos is not in MacPorts
# see https://www.dealii.org/developer/readme.html