Index: head/math/dbcsr/Makefile =================================================================== --- head/math/dbcsr/Makefile (revision 555434) +++ head/math/dbcsr/Makefile (revision 555435) @@ -1,48 +1,57 @@ # $FreeBSD$ PORTNAME= dbcsr DISTVERSIONPREFIX= v DISTVERSION= 2.0.1 PORTREVISION= 4 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= Distributed Block Compressed Sparse Row matrix library LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= fypp:devel/py-fypp@${PY_FLAVOR} USES= blaslapack:openblas cmake:noninja compiler:c++14-lang fortran \ python:build USE_GITHUB= yes GH_ACCOUNT= cp2k USE_LDCONFIG= yes LDFLAGS+= -lopenblas CMAKE_ON= BUILD_SHARED_LIBS +CMAKE_OFF= BUILD_TESTING CMAKE_ARGS= -DBLA_VENDOR:STRING="OpenBLAS" TEST_TARGET= test # tests hang: https://github.com/cp2k/dbcsr/issues/72 OPTIONS_DEFINE= MPI OPENMP C_API # libxsmm is supposed to be supported, but cmake build lacks the corresponding option: https://github.com/cp2k/dbcsr/issues/73 OPTIONS_DEFAULT= MPI OPENMP C_API OPTIONS_SUB= yes MPI_CMAKE_BOOL= USE_MPI MPI_LIB_DEPENDS= libmpi.so:net/openmpi OPENMP_CMAKE_BOOL= USE_OPENMP C_API_DESC= Build the C API library C_API_CMAKE_BOOL= WITH_C_API +.include + +. if ${GCC_DEFAULT} >= 10 +CMAKE_ARGS+= -DCMAKE_Fortran_FLAGS="${FFLAGS} -fallow-argument-mismatch" # -fallow-argument-mismatch is a workaround of https://github.com/cp2k/dbcsr/issues/387 for gcc10+ +. else +CMAKE_ARGS+= -DCMAKE_Fortran_FLAGS="${FFLAGS}" +. endif + do-test: # tests are broken: https://github.com/cp2k/dbcsr/issues/150 @cd ${BUILD_WRKSRC} && \ ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTING:BOOL=ON ${CMAKE_SOURCE_PATH} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test -.include +.include Index: head/math/dbcsr/files/patch-cmake_CompilerConfiguration.cmake =================================================================== --- head/math/dbcsr/files/patch-cmake_CompilerConfiguration.cmake (nonexistent) +++ head/math/dbcsr/files/patch-cmake_CompilerConfiguration.cmake (revision 555435) @@ -0,0 +1,11 @@ +Same change as https://github.com/cp2k/dbcsr/pull/388 PR for the current master branch. + +--- cmake/CompilerConfiguration.cmake.orig 2020-11-15 21:12:10 UTC ++++ cmake/CompilerConfiguration.cmake +@@ -1,5 +1,5 @@ + if (CMAKE_Fortran_COMPILER_ID STREQUAL "GNU") +- set(CMAKE_Fortran_FLAGS "-ffree-form -ffree-line-length-none -std=f2008ts") ++ set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -ffree-form -ffree-line-length-none -std=f2008ts") + set(CMAKE_Fortran_FLAGS_RELEASE "-O3 -funroll-loops") + set(CMAKE_Fortran_FLAGS_DEBUG "-O0 -ggdb") + set(CMAKE_Fortran_FLAGS_COVERAGE "-O0 -fprofile-arcs -ftest-coverage") Property changes on: head/math/dbcsr/files/patch-cmake_CompilerConfiguration.cmake ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property