ports/math/dune-common/Makefile
Dimitry Andric 30248bf4ec math/dune-common: fix build with clang 19
Clang 19 is more strict about errors in member functions, which results
in:

  /wrkdirs/usr/ports/math/dune-common/work/dune-common-df65b1282ea89ad40d2cb6565983f7e633ccce31/dune/common/parallel/remoteindices.hh:936:58: error: reference to non-static member function must be called
    936 |     return localIndex_==ri.localIndex_ && attribute_==ri.attribute;
        |                                                       ~~~^~~~~~~~~

This is a typo, which has been fixed by upstream in
<https://gitlab.dune-project.org/core/dune-common/-/commit/d36ce92a18>.

PR:		281412
Approved by:	yuri (maintainer)
MFH:		2024Q3
2024-09-10 21:46:22 +02:00

50 lines
1.5 KiB
Makefile

PORTNAME= dune-common
DISTVERSIONPREFIX= v
DISTVERSION= 2.8.0
PORTREVISION= 15
CATEGORIES= math
PATCH_SITES= https://gitlab.dune-project.org/core/${PORTNAME}/-/commit/
PATCHFILES+= d36ce92a18904a3fe69028811c619b4b5a09ef4e.patch:-p1
MAINTAINER= yuri@FreeBSD.org
COMMENT= DUNE framework: Build system, infrastructure and foundation classes
WWW= https://www.dune-project.org/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE.md
BUILD_DEPENDS= metis>0:math/metis \
openmpi4>0:net/openmpi4 \
vc>0:devel/vc # Metis isn't used, see https://gitlab.dune-project.org/core/dune-common/-/issues/306
LIB_DEPENDS= libopenblas.so:math/openblas \
libtbb.so:devel/onetbb
USES= cmake compiler:c++17-lang fortran pkgconfig python shebangfix
SHEBANG_FILES= bin/dune-ctest bin/setup-dunepy.py bin/dunepackaging.py bin/rmgenerated.py cmake/scripts/extract_cmake_data.py
USE_GITLAB= yes
USE_LDCONFIG= yes
GL_SITE= https://gitlab.dune-project.org
GL_ACCOUNT= core
GL_TAGNAME= df65b1282ea89ad40d2cb6565983f7e633ccce31
CMAKE_ON= BUILD_SHARED_LIBS
CMAKE_ARGS= -DTBB_INCLUDE_DIR=${LOCALBASE}/include -DTBB_LIBRARIES=${LOCALBASE}/lib/libtbb.so
OPTIONS_DEFINE= DOCS DOXYGEN
OPTIONS_SUB= yes
DOCS_CMAKE_BOOL= FREEBSD_INSTALL_DOCS
DOCS_BUILD_DEPENDS= latex:print/tex-formats \
sphinx-build:textproc/py-sphinx
DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen
DOXYGEN_IMPLIES= DOCS
PORTDOCS= *
post-install:
@${RM} ${STAGEDIR}${PREFIX}/share/dune/cmake/scripts/run-in-dune-env.sh.in # https://gitlab.dune-project.org/core/dune-common/-/issues/229
.include <bsd.port.mk>