diff --git a/devel/libsimdpp/Makefile b/devel/libsimdpp/Makefile index 0fb0f6abbf53..70c6185d8390 100644 --- a/devel/libsimdpp/Makefile +++ b/devel/libsimdpp/Makefile @@ -1,27 +1,29 @@ PORTNAME= libsimdpp DISTVERSIONPREFIX= v DISTVERSION= 2.1-400 DISTVERSIONSUFFIX= -g9dac213d CATEGORIES= devel MAINTAINER= yuri@FreeBSD.org COMMENT= Header-only zero-overhead C++ wrapper of SIMD instructions WWW= https://github.com/p12tic/libsimdpp LICENSE= BSL LICENSE_FILE= ${WRKSRC}/LICENSE_1_0.txt -PORTSCOUT= limit:^[v1-9] - USES= cmake USE_GITHUB= yes GH_ACCOUNT= p12tic NO_BUILD= yes NO_ARCH= yes TEST_TARGET= check PLIST_SUB= VER="${PORTVERSION:R}" +CMAKE_ARGS= -DCMAKE_POLICY_VERSION_MINIMUM=3.5 # CMake 4.5 compatibility, see https://github.com/p12tic/libsimdpp/issues/194 + +PORTSCOUT= limit:^[v1-9] + .include diff --git a/devel/psimd/Makefile b/devel/psimd/Makefile index 7d9e1d38c351..6ef6ae342208 100644 --- a/devel/psimd/Makefile +++ b/devel/psimd/Makefile @@ -1,22 +1,24 @@ PORTNAME= psimd PORTVERSION= g20180906 CATEGORIES= devel MAINTAINER= yuri@FreeBSD.org COMMENT= Portable 128-bit SIMD intrinsics WWW= https://github.com/Maratyszcza/psimd LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE USES= cmake USE_GITHUB= yes GH_ACCOUNT= Maratyszcza GH_TAGNAME= 90a938f NO_BUILD= yes NO_ARCH= yes PLIST_FILES= include/psimd.h +CMAKE_ARGS+= -DCMAKE_POLICY_VERSION_MINIMUM=3.5 # CMake 4 compatibility + .include diff --git a/editors/notepadnext/Makefile b/editors/notepadnext/Makefile index 40238ca41300..e79f917b7414 100644 --- a/editors/notepadnext/Makefile +++ b/editors/notepadnext/Makefile @@ -1,48 +1,49 @@ PORTNAME= notepadnext DISTVERSIONPREFIX= v DISTVERSION= 0.14 CATEGORIES= editors MAINTAINER= yuri@FreeBSD.org COMMENT= Reimplementation of Notepad++ WWW= https://github.com/dail8859/NotepadNext LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libuchardet.so:textproc/uchardet \ libxkbcommon.so:x11/libxkbcommon USES= cmake desktop-file-utils gl localbase:ldflags qt:6 xorg USE_GL= gl opengl USE_QT= base 5compat tools:build USE_GL= gl USE_XORG= xcb USE_GITHUB= yes GH_ACCOUNT= dail8859 GH_PROJECT= NotepadNext GH_TUPLE= alex-spataru:QSimpleUpdater:3cc832c:alex_spataru_QSimpleUpdater/src/QSimpleUpdater \ editorconfig:editorconfig-core-qt:52820d59769fcba6d0ed94f685406c0383fe1a30:editorconfig_editorconfig_core_qt/src/editorconfig-core-qt \ editorconfig:editorconfig-core-test:70840cfaf6a06766ab61e975b8a1fe3b891ee08e:editorconfig_editorconfig_core_test/src/editorconfig-core-qt/tests \ githubuser0xFFFF:Qt-Advanced-Docking-System:df1fa27:githubuser0xFFFF_Qt_Advanced_Docking_System/src/ads \ itay-grudev:SingleApplication:8c48163:itay_grudev_SingleApplication/src/singleapplication +CMAKE_ARGS= -DCMAKE_POLICY_VERSION_MINIMUM=3.5 # CMake 4.5 compatibility, see https://github.com/dail8859/NotepadNext/issues/1158 + CXXFLAGS+= -I${LOCALBASE}/include/uchardet \ -I${WRKSRC}/src/ads/src \ -I${WRKSRC}/src/editorconfig-core-qt LDFLAGS+= -luchardet PLIST_FILES= bin/NotepadNext \ share/applications/NotepadNext.desktop \ share/icons/hicolor/scalable/apps/NotepadNext.svg \ share/icons/hicolor/scalable/mimetypes/NotepadNext.svg post-extract: # fix wrong handling of IPC keys in singleapplication.cpp @${REINPLACE_CMD} \ -e "s/QSharedMemory( QNativeIpcKey( d->blockServerName ) );/QSharedMemory( QNativeIpcKey( d->blockServerName, QNativeIpcKey::legacyDefaultTypeForOs() ) );/" \ ${WRKSRC}/src/singleapplication/singleapplication.cpp - .include diff --git a/math/kamis/Makefile b/math/kamis/Makefile index 164dc3b66571..e97512f7c1fd 100644 --- a/math/kamis/Makefile +++ b/math/kamis/Makefile @@ -1,32 +1,34 @@ PORTNAME= kamis DISTVERSIONPREFIX= v DISTVERSION= 3.2 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= Maximum independent sets and vertex covers of large sparse graphs WWW= https://karlsruhemis.github.io/ \ https://github.com/KarlsruheMIS/KaMIS LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE #BROKEN_armv7= gcc13 fails: error: use of built-in trait '__remove_cvref(_InIter1)' in function signature, see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278630 USES= cmake USE_LDCONFIG= yes .if !exists(/usr/include/omp.h) BROKEN= requires OpenMP support that is missing on this architecture .endif USE_GITHUB= yes GH_ACCOUNT= KarlsruheMIS GH_PROJECT= KaMIS PLIST_FILES= bin/graphchecker \ bin/online_mis \ bin/redumis \ bin/sort_adjacencies +CMAKE_ARGS= -DCMAKE_POLICY_VERSION_MINIMUM=3.5 # CMake 4.5 compatibility, see https://github.com/KarlsruheMIS/KaMIS/issues/58 + .include diff --git a/math/libccd/Makefile b/math/libccd/Makefile index 1c331f4dda9a..c511366b0d29 100644 --- a/math/libccd/Makefile +++ b/math/libccd/Makefile @@ -1,23 +1,25 @@ PORTNAME= libccd DISTVERSIONPREFIX= v DISTVERSION= 2.1 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= Library for collision detection between two convex shapes WWW= https://github.com/danfis/libccd LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/BSD-LICENSE USES= cmake USE_GITHUB= yes GH_ACCOUNT= danfis USE_LDCONFIG= yes OPTIONS_DEFINE= DOUBLE_PECISION DOUBLE_PECISION_DESC= Enable double precision computations DOUBLE_PECISION_CMAKE_BOOL= ENABLE_DOUBLE_PRECISION +CMAKE_ARGS= -DCMAKE_POLICY_VERSION_MINIMUM=3.5 # CMake 4.5 compatibility, see https://github.com/danfis/libccd/issues/85 + .include diff --git a/math/libdivsufsort/Makefile b/math/libdivsufsort/Makefile index 757e0f29deb4..c18009d38a4a 100644 --- a/math/libdivsufsort/Makefile +++ b/math/libdivsufsort/Makefile @@ -1,39 +1,40 @@ PORTNAME= libdivsufsort DISTVERSION= 2.0.2-1.20151027 # 2.0.2-1 was only specified in the commit comment PORTREVISION= 1 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= Lightweight suffix-sorting library WWW= https://github.com/y-256/libdivsufsort LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE USES= cmake pathfix USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= y-256 GH_TAGNAME= 5f60d6f026c30fb4ac296f696b3c8b0eb71bd428 PLIST_FILES= include/divsufsort.h \ include/divsufsort64.h \ lib/libdivsufsort.so \ lib/libdivsufsort.so.3 \ lib/libdivsufsort.so.3.0.1 \ lib/libdivsufsort64.so \ lib/libdivsufsort64.so.3 \ lib/libdivsufsort64.so.3.0.1 \ libdata/pkgconfig/libdivsufsort.pc \ libdata/pkgconfig/libdivsufsort64.pc CMAKE_ON= BUILD_DIVSUFSORT64 +CMAKE_ARGS= -DCMAKE_POLICY_VERSION_MINIMUM=3.5 # CMake 4.5 compatibility, see https://github.com/y-256/libdivsufsort/issues/30 do-test: @cd ${TEST_WRKSRC} && \ ${SETENV} ${TEST_ENV} ${CC} ${FILESDIR}/test.c -I${STAGEDIR}${PREFIX}/include -L${STAGEDIR}${PREFIX}/lib -ldivsufsort && \ ${ECHO} "==> running the test program:" && \ LD_PRELOAD=${STAGEDIR}${PREFIX}/lib/libdivsufsort.so ${TEST_WRKSRC}/a.out .include diff --git a/math/muparserx/Makefile b/math/muparserx/Makefile index 1591b3b75e54..2f754711fe37 100644 --- a/math/muparserx/Makefile +++ b/math/muparserx/Makefile @@ -1,22 +1,24 @@ PORTNAME= muparserx DISTVERSIONPREFIX= v DISTVERSION= 4.0.12 CATEGORIES= math devel MAINTAINER= yuri@FreeBSD.org COMMENT= C++ math parser library with array and string support -WWW= https://beltoforion.de/en/muparserx/ +WWW= https://beltoforion.de/en/muparserx/ \ + https://github.com/beltoforion/muparserx LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE USES= cmake compiler:c++11-lang USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= beltoforion CMAKE_ON= BUILD_SHARED_LIBS CMAKE_OFF= BUILD_EXAMPLES +CMAKE_ARGS= -DCMAKE_POLICY_VERSION_MINIMUM=3.5 # CMake 4.5 compatibility, see https://github.com/beltoforion/muparserx/issues/139 .include diff --git a/math/sympol/Makefile b/math/sympol/Makefile index e413238cf8ad..7ea474964109 100644 --- a/math/sympol/Makefile +++ b/math/sympol/Makefile @@ -1,44 +1,45 @@ PORTNAME= sympol DISTVERSIONPREFIX= v DISTVERSION= 0.1.9 PORTREVISION= 18 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= C++ library and tool to work with symmetric polyhedra WWW= https://www.math.uni-rostock.de/~rehn/software/sympol.html LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= permlib>0:math/permlib LIB_DEPENDS= libbliss.so:math/bliss \ libboost_program_options.so:devel/boost-libs \ libcddgmp.so:math/cddlib \ libgmp.so:math/gmp USES= cmake:testing compiler:c++11-lang eigen:3 localbase:ldflags perl5 shebangfix USE_CXXSTD= c++14 USE_PERL5= test USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= tremlin GH_PROJECT= SymPol SHEBANG_GLOB= *.pl CMAKE_ARGS= -DBLISS_INCLUDE_DIR=${LOCALBASE}/include/bliss CMAKE_TESTING_ON= BUILD_TESTS # test 'perltest' fails with 'output format mismatch', see https://github.com/tremlin/SymPol/issues/1 +CMAKE_ARGS+= -DCMAKE_POLICY_VERSION_MINIMUM=3.5 # CMake 4.5 compatibility post-install: @${RM} ${STAGEDIR}${PREFIX}/lib/libcddgmp.so # fix incorrect subdirectories in #include statements, see https://github.com/tremlin/SymPol/issues/2 @${REINPLACE_CMD} -i '' -e 's|#include "yal/|#include "|' ${STAGEDIR}${PREFIX}/include/sympol/*.h @${REINPLACE_CMD} -i '' -e 's|#include "\.\./matrix/|#include "|' ${STAGEDIR}${PREFIX}/include/sympol/*.h @${REINPLACE_CMD} -i '' -e 's|#include "\.\./|#include "|' ${STAGEDIR}${PREFIX}/include/sympol/*.h pre-test: # correct the build directory path @${REINPLACE_CMD} -e "s|'\\.\\./build/release'|'${BUILD_WRKSRC}'|" ${WRKSRC}/contrib/test-sympol.pl .include diff --git a/math/zarray/Makefile b/math/zarray/Makefile index 4af71dc0484b..575233359056 100644 --- a/math/zarray/Makefile +++ b/math/zarray/Makefile @@ -1,32 +1,34 @@ PORTNAME= zarray DISTVERSION= 0.1.0 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= Dynamically typed N-D expression system based on xtensor WWW= https://github.com/xtensor-stack/zarray LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE HPP_DEPENDS= nlohmann-json>0:devel/nlohmann-json \ xtensor>0:math/xtensor BUILD_DEPENDS= ${HPP_DEPENDS} RUN_DEPENDS= ${HPP_DEPENDS} TEST_DEPENDS= googletest>0:devel/googletest USES= cmake compiler:c++14-lang USE_GITHUB= yes GH_ACCOUNT= xtensor-stack NO_BUILD= yes NO_ARCH= yes +CMAKE_ARGS= -DCMAKE_POLICY_VERSION_MINIMUM=3.5 # CMake 4.5 compatibility, see https://github.com/xtensor-stack/zarray/issues/70 + do-test: install @cd ${WRKSRC}/test && \ ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} . && \ ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} && \ ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} xtest .include diff --git a/misc/openhmd/Makefile b/misc/openhmd/Makefile index 0be405db9036..b51f43e35d54 100644 --- a/misc/openhmd/Makefile +++ b/misc/openhmd/Makefile @@ -1,28 +1,30 @@ PORTNAME= OpenHMD DISTVERSION= 0.3.0 PORTREVISION= 1 CATEGORIES= misc MASTER_SITES= PYPI MAINTAINER= yuri@FreeBSD.org COMMENT= API and drivers for immersive technology WWW= https://github.com/OpenHMD/OpenHMD LICENSE= BSL LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libhidapi.so:comms/hidapi USES= cmake compiler:c++11-lang USE_GITHUB= yes USE_LDCONFIG= yes CMAKE_ON= BUILD_SHARED_LIBS +CMAKE_ARGS= -DCMAKE_POLICY_VERSION_MINIMUM=3.5 # CMake 4.5 compatibility, see https://github.com/OpenHMD/OpenHMD/issues/369 + PLIST_FILES= include/openhmd.h \ lib/libopenhmd.so \ lib/libopenhmd.so.0 \ lib/libopenhmd.so.0.1.0 \ libdata/pkgconfig/openhmd.pc .include diff --git a/misc/soapysdr/Makefile b/misc/soapysdr/Makefile index 7f96a39d83b5..60f9c02ad6fa 100644 --- a/misc/soapysdr/Makefile +++ b/misc/soapysdr/Makefile @@ -1,21 +1,23 @@ PORTNAME= SoapySDR DISTVERSIONPREFIX= soapy-sdr- DISTVERSION= 0.8.1 PORTREVISION= 1 CATEGORIES= misc hamradio MAINTAINER= yuri@FreeBSD.org COMMENT= Vendor and platform neutral SDR support library WWW= https://github.com/pothosware/SoapySDR LICENSE= BSL LICENSE_FILE= ${WRKSRC}/LICENSE_1_0.txt USES= cmake compiler:c++11-lang USE_GITHUB= yes GH_ACCOUNT= pothosware USE_LDCONFIG= yes +CMAKE_ARGS= -DCMAKE_POLICY_VERSION_MINIMUM=3.5 # CMake 4.5 compatibility, see https://github.com/pothosware/SoapySDR/issues/479 + LDFLAGS+= -pthread .include diff --git a/multimedia/tinyobjloader/Makefile b/multimedia/tinyobjloader/Makefile index 7586bce6401c..edd0efdffb12 100644 --- a/multimedia/tinyobjloader/Makefile +++ b/multimedia/tinyobjloader/Makefile @@ -1,24 +1,25 @@ PORTNAME= tinyobjloader DISTVERSIONPREFIX= v DISTVERSION= 2.0.0rc9-5 DISTVERSIONSUFFIX= -ga1e8bad CATEGORIES= multimedia MAINTAINER= yuri@FreeBSD.org COMMENT= C++ single file wavefront obj loader WWW= https://github.com/tinyobjloader/tinyobjloader LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE USES= cmake cpe CPE_VENDOR= ${PORTNAME}_project USE_LDCONFIG= yes USE_GITHUB= yes CMAKE_ON= BUILD_SHARED_LIBS +CMAKE_ARGS= -DCMAKE_POLICY_VERSION_MINIMUM=3.5 # CMake 4.5 compatibility post-install: ${RM} ${STAGEDIR}${DOCSDIR}/LICENSE .include diff --git a/net-im/toxext/Makefile b/net-im/toxext/Makefile index 4d2502cda3b8..6d902ab03dda 100644 --- a/net-im/toxext/Makefile +++ b/net-im/toxext/Makefile @@ -1,27 +1,29 @@ PORTNAME= toxext DISTVERSIONPREFIX= v DISTVERSION= 0.0.3 PORTREVISION= 10 CATEGORIES= net-im net-p2p MAINTAINER= yuri@FreeBSD.org COMMENT= Extension library for tox WWW= https://github.com/toxext/toxext LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libopus.so:audio/opus \ libsodium.so:security/libsodium \ libtoxcore.so:net-im/tox \ libvpx.so:multimedia/libvpx USES= cmake:testing localbase:ldflags pkgconfig USE_GITHUB= yes CMAKE_ON= BUILD_SHARED_LIBS CMAKE_TESTING_ON= BUILD_TESTS +CMAKE_ARGS= -DCMAKE_POLICY_VERSION_MINIMUM=3.5 # CMake 4.5 compatibility, see https://github.com/toxext/toxext/issues/13 + CFLAGS+= -fPIC # see https://github.com/toxext/toxext/issues/7 .include diff --git a/science/gbtolib/Makefile b/science/gbtolib/Makefile index cd7023fb6298..f1edeaf5a40f 100644 --- a/science/gbtolib/Makefile +++ b/science/gbtolib/Makefile @@ -1,36 +1,37 @@ PORTNAME= gbtolib DISTVERSION= 3.0.3 PORTREVISION= 6 CATEGORIES= science # chemistry, physics MASTER_SITES= https://zenodo.org/record/5798035/files/ DISTNAME= GBTOLib-${DISTVERSION} MAINTAINER= yuri@FreeBSD.org COMMENT= High-performance library for evaluation of molecular integrals WWW= https://zenodo.org/record/5798035 LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING BROKEN_powerpc64= compilation fails in the Fortran code: Error: Kind -1 not supported for type REAL at (1) BROKEN_powerpc64le= compilation fails in the Fortran code: Error: Kind -1 not supported for type REAL at (1) .if !exists(/usr/include/omp.h) BROKEN= requires OpenMP support that is missing on this architecture .endif LIB_DEPENDS= libopenblas.so:math/openblas USES= cmake fortran zip CMAKE_ON= BUILD_SHARED_LIBS CMAKE_OFF= BUILD_DOC BUILD_TESTING +CMAKE_ARGS= -DCMAKE_POLICY_VERSION_MINIMUM=3.5 # CMake 4.5 compatibility FFLAGS= -fdefault-integer-8 OPTIONS_DEFINE= MPI MPI_CMAKE_BOOL= WITH_MPI MPI_CMAKE_ON= -DMPIEXEC_EXECUTABLE=${LOCALBASE}/bin/mpiexec MPI_BROKEN= MPI build fails with error: Failed to detemine MPI integer interface. .include diff --git a/science/libmsym/Makefile b/science/libmsym/Makefile index 0f5a8f695ce3..ffb5b9cc8e55 100644 --- a/science/libmsym/Makefile +++ b/science/libmsym/Makefile @@ -1,21 +1,22 @@ PORTNAME= libmsym DISTVERSIONPREFIX= v DISTVERSION= 0.2.3 DISTVERSIONSUFFIX= -paper CATEGORIES= science MAINTAINER= yuri@FreeBSD.org COMMENT= Molecular point group symmetry library WWW= https://github.com/mcodev31/libmsym LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE USES= cmake USE_GITHUB= yes GH_ACCOUNT= mcodev31 USE_LDCONFIG= yes CMAKE_ARGS= -DBUILD_SHARED_LIBS:BOOL=ON +CMAKE_ARGS+= -DCMAKE_POLICY_VERSION_MINIMUM=3.5 # CMake 4 compatibility, see https://github.com/mcodev31/libmsym/issues/39 .include diff --git a/science/openkim-models/Makefile b/science/openkim-models/Makefile index 4bb0a791f5aa..b5efa500e5da 100644 --- a/science/openkim-models/Makefile +++ b/science/openkim-models/Makefile @@ -1,19 +1,21 @@ PORTNAME= openkim-models DISTVERSION= 2021-08-11 PORTREVISION= 2 CATEGORIES= science MASTER_SITES= https://s3.openkim.org/archives/collection/ MAINTAINER= yuri@FreeBSD.org COMMENT= Open Knowledgebase of Interatomic Models WWW= https://openkim.org/ LICENSE= CDDL LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= xxd:editors/vim LIB_DEPENDS= libkim-api.so:science/kim-api USES= cmake:noninja compiler:c++11-lang fortran tar:txz +CMAKE_ARGS= -DCMAKE_POLICY_VERSION_MINIMUM=3.5 # CMake 4.5 compatibility + .include diff --git a/science/pcmsolver/Makefile b/science/pcmsolver/Makefile index 0b234b6f90d9..b1dfba2ab118 100644 --- a/science/pcmsolver/Makefile +++ b/science/pcmsolver/Makefile @@ -1,34 +1,34 @@ PORTNAME= pcmsolver DISTVERSIONPREFIX= v DISTVERSION= 1.3.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= science MAINTAINER= yuri@FreeBSD.org COMMENT= API for the Polarizable Continuum Model WWW= https://github.com/PCMSolver/pcmsolver LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE USES= cmake compiler:c++14-lang fortran python:build USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= PCMSolver BINARY_ALIAS= git=true # see https://github.com/PCMSolver/pcmsolver/issues/198 do-configure: # full CMAKE_ARGS breaks configure: -DCMAKE_EXE_LINKER_FLAGS="${LDFLAGS}" causes configure to fail to find fortran's libraries @${MKDIR} ${CONFIGURE_WRKSRC} @cd ${CONFIGURE_WRKSRC} && \ ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} \ -DCMAKE_BUILD_TYPE:STRING="Release" \ -DCMAKE_C_FLAGS_RELEASE:STRING="${CFLAGS}" \ -DCMAKE_CXX_FLAGS_RELEASE:STRING="${CXXFLAGS}" \ -DCMAKE_C_COMPILER:STRING="${CC}" \ -DCMAKE_CXX_COMPILER:STRING="${CXX}" \ -DPYTHON_INTERPRETER:STRING="${PYTHON_CMD}" \ ${CMAKE_SOURCE_PATH} .include diff --git a/science/pcmsolver/files/patch-CMakeLists.txt b/science/pcmsolver/files/patch-CMakeLists.txt index 622c67d02256..a351e7217c99 100644 --- a/science/pcmsolver/files/patch-CMakeLists.txt +++ b/science/pcmsolver/files/patch-CMakeLists.txt @@ -1,10 +1,23 @@ +-- Bump minimum required CMake version from 3.3 to 3.5 for CMake 4.x compatibility. +-- CMake 4.x removed support for policies older than 3.5; pcmsolver uses only 3.5-compatible features. +-- See https://github.com/PCMSolver/pcmsolver/issues/209 + --- CMakeLists.txt.orig 2020-11-30 20:21:39 UTC +++ CMakeLists.txt -@@ -75,4 +75,6 @@ include(${PROJECT_SOURCE_DIR}/cmake/custom/eigen.cmake +@@ -2,7 +2,7 @@ + # Copyright (c) 2015-2020 by Radovan Bast, Roberto Di Remigio, Jonas Juselius, and contributors. + + # set minimum cmake version +-cmake_minimum_required(VERSION 3.3 FATAL_ERROR) ++cmake_minimum_required(VERSION 3.5 FATAL_ERROR) + + # project name + project(PCMSolver LANGUAGES CXX C Fortran) +@@ -75,4 +75,6 @@ include(${PROJECT_SOURCE_DIR}/cmake/downloaded/autocma include(${PROJECT_SOURCE_DIR}/cmake/custom/libtaylor.cmake) include(${PROJECT_SOURCE_DIR}/cmake/custom/zlib.cmake) include(${PROJECT_SOURCE_DIR}/cmake/downloaded/autocmake_src.cmake) -include(${PROJECT_SOURCE_DIR}/cmake/custom/test.cmake) +if (BUILD_TESTING) + include(${PROJECT_SOURCE_DIR}/cmake/custom/test.cmake) +endif() diff --git a/science/teem/Makefile b/science/teem/Makefile index 9a98249e52ad..1e8955e3c959 100644 --- a/science/teem/Makefile +++ b/science/teem/Makefile @@ -1,25 +1,26 @@ PORTNAME= teem DISTVERSION= 1.11.0 DISTVERSIONSUFFIX= -src CATEGORIES= science MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${DISTVERSION}/ MAINTAINER= yuri@FreeBSD.org COMMENT= Libraries for representing, processing and visualizing scientific data WWW= https://teem.sourceforge.net/ LICENSE= LGPL21 LICENSE_FILE= ${WRKSRC}/LICENSE.txt LIB_DEPENDS= libpng.so:graphics/png USES= cmake USE_LDCONFIG= yes CMAKE_ON= BUILD_SHARED_LIBS +CMAKE_ARGS= -DCMAKE_POLICY_VERSION_MINIMUM=3.5 # CMake 4.5 compatibility post-install: @${MKDIR} ${STAGEDIR}${PREFIX}/lib/cmake/Teem ${MV} ${STAGEDIR}${PREFIX}/lib/*.cmake ${STAGEDIR}${PREFIX}/lib/cmake/Teem .include diff --git a/science/teem/files/patch-CMakeLists.txt b/science/teem/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..405695c16716 --- /dev/null +++ b/science/teem/files/patch-CMakeLists.txt @@ -0,0 +1,28 @@ +-- Disable the removed EXPORT_LIBRARY_DEPENDENCIES / CMAKE_EXPORT_BUILD_SETTINGS +-- commands (CMP0033) for CMake 4.0 compatibility, and replace the generated +-- TeemLibraryDepends.cmake with an empty file. Drop TeemBuildSettings.cmake +-- from the install list because CMAKE_EXPORT_BUILD_SETTINGS no longer creates it. + +--- CMakeLists.txt.orig 2024-04-05 00:00:00 UTC ++++ CMakeLists.txt +@@ -447,4 +447,5 @@ + # Help outside projects build Teem projects. +-INCLUDE(CMakeExportBuildSettings) +-EXPORT_LIBRARY_DEPENDENCIES(${Teem_BINARY_DIR}/TeemLibraryDepends.cmake) +-CMAKE_EXPORT_BUILD_SETTINGS(${Teem_BINARY_DIR}/TeemBuildSettings.cmake) ++# The EXPORT_LIBRARY_DEPENDENCIES and CMAKE_EXPORT_BUILD_SETTINGS commands were ++# removed in CMake 4.0. Create an empty TeemLibraryDepends.cmake so the ++# install step can still reference it. ++file(WRITE ${Teem_BINARY_DIR}/TeemLibraryDepends.cmake "") +@@ -507,11 +507,10 @@ + INSTALL(FILES ${Teem_INSTALLED_HEADER_FILES} + DESTINATION include/teem + ) + + INSTALL(FILES + "${Teem_BINARY_DIR}/CMake/TeemConfig.cmake" + "${Teem_SOURCE_DIR}/CMake/TeemUse.cmake" +- "${Teem_BINARY_DIR}/TeemBuildSettings.cmake" + "${Teem_BINARY_DIR}/TeemLibraryDepends.cmake" + DESTINATION lib${EXTRA_INSTALL_PATH} + ) diff --git a/science/teem/files/patch-CMake_TeemUse.cmake b/science/teem/files/patch-CMake_TeemUse.cmake new file mode 100644 index 000000000000..008a7f89c3d4 --- /dev/null +++ b/science/teem/files/patch-CMake_TeemUse.cmake @@ -0,0 +1,12 @@ +-- Skip the removed CMAKE_IMPORT_BUILD_SETTINGS command (CMP0033) so that +-- downstream TeemUse.cmake does not fail with CMake 4.0+. + +--- CMake/TeemUse.cmake.orig 2024-04-05 00:00:00 UTC ++++ CMake/TeemUse.cmake +@@ -31,6 +31,4 @@ + + # Load the compiler settings used for Teem. + IF(Teem_BUILD_SETTINGS_FILE) +- INCLUDE(CMakeImportBuildSettings) +- CMAKE_IMPORT_BUILD_SETTINGS(${Teem_BUILD_SETTINGS_FILE}) + ENDIF(Teem_BUILD_SETTINGS_FILE) diff --git a/science/teem/pkg-plist b/science/teem/pkg-plist index 67576a97a5ba..e1f2748e18b6 100644 --- a/science/teem/pkg-plist +++ b/science/teem/pkg-plist @@ -1,39 +1,38 @@ bin/gprobe bin/ilk bin/miter bin/mrender bin/nrrdSanity bin/overrgb bin/puller bin/tend bin/unu bin/vprobe include/teem/air.h include/teem/biff.h include/teem/dye.h include/teem/echo.h include/teem/ell.h include/teem/ellMacros.h include/teem/gage.h include/teem/hest.h include/teem/hoover.h include/teem/limn.h include/teem/meet.h include/teem/mite.h include/teem/moss.h include/teem/nrrd.h include/teem/nrrdDefines.h include/teem/nrrdEnums.h include/teem/nrrdMacros.h include/teem/pull.h include/teem/seek.h include/teem/ten.h include/teem/tenMacros.h include/teem/unrrdu.h -lib/cmake/Teem/TeemBuildSettings.cmake lib/cmake/Teem/TeemConfig.cmake lib/cmake/Teem/TeemLibraryDepends.cmake lib/cmake/Teem/TeemUse.cmake lib/libteem.so lib/libteem.so.1 lib/libteem.so.1.11.0 diff --git a/science/tweedledum/Makefile b/science/tweedledum/Makefile index 7ad907c5fb0a..51c2f22f8bbd 100644 --- a/science/tweedledum/Makefile +++ b/science/tweedledum/Makefile @@ -1,30 +1,31 @@ PORTNAME= tweedledum DISTVERSIONPREFIX= v DISTVERSION= 1.1.1 CATEGORIES= science python # quantum-computing MAINTAINER= yuri@FreeBSD.org COMMENT= Library for analysis, compilation, synthesis of quantum circuits WWW= https://github.com/boschmitt/tweedledum LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PY_SETUPTOOLS} USES= cmake:testing compiler:c++17-lang python:env USE_GITHUB= yes GH_ACCOUNT= boschmitt CMAKE_OFF= TWEEDLEDUM_PYBINDS # doesn't affect the build result, see https://github.com/boschmitt/tweedledum/issues/175 CMAKE_ON= BUILD_SHARED_LIBS CMAKE_TESTING_ON= TWEEDLEDUM_TESTS CMAKE_TESTING_TARGET= ${ALL_TARGET} # hack to disable the target +CMAKE_ARGS= -DCMAKE_POLICY_VERSION_MINIMUM=3.5 # CMake 4.5 compatibility, see https://github.com/boschmitt/tweedledum/issues/191 TEST_WRKSRC= ${BUILD_WRKSRC}/tests post-test: # run tests, all tests pass with 3313 assertions in 73 test cases, see https://github.com/boschmitt/tweedledum/issues/177 @cd ${TEST_WRKSRC} && ./run_tests .include diff --git a/security/nflib/Makefile b/security/nflib/Makefile index dcc7c0a1e0f6..6eddbeee0470 100644 --- a/security/nflib/Makefile +++ b/security/nflib/Makefile @@ -1,33 +1,35 @@ PORTNAME= nflib DISTVERSIONPREFIX= v DISTVERSION= 1.0.0-23 DISTVERSIONSUFFIX= -g5cf40ed PORTREVISION= 4 CATEGORIES= security math MAINTAINER= yuri@FreeBSD.org COMMENT= NTT-based fast lattice cryptography library WWW= https://github.com/quarkslab/NFLlib LICENSE= MIT LICENSE_FILE= ${WRKSRC}/MIT_LICENSE.txt ONLY_FOR_ARCHS= amd64 ONLY_FOR_ARCHS_REASON= unconditionally includes amd64 assembler code BUILD_DEPENDS= as:devel/binutils LIB_DEPENDS= libmpfr.so:math/mpfr \ libgmp.so:math/gmp USES= cmake:testing compiler:c++11-lang localbase USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= quarkslab GH_PROJECT= NFLlib +CMAKE_ARGS= -DCMAKE_POLICY_VERSION_MINIMUM=3.5 # CMake 4.5 compatibility, see https://github.com/quarkslab/NFLlib/issues/59 + .if !defined(WITH_DEBUG) CMAKE_ON= NFL_OPTIMIZED .endif .include