diff --git a/archivers/libszip/Makefile b/archivers/libszip/Makefile index 332908347060..75aaac7d32bb 100644 --- a/archivers/libszip/Makefile +++ b/archivers/libszip/Makefile @@ -1,20 +1,22 @@ PORTNAME= libszip DISTVERSION= 2.1.1 CATEGORIES= archivers MASTER_SITES= https://support.hdfgroup.org/ftp/lib-external/szip/${DISTVERSION}/src/ DISTNAME= szip-${DISTVERSION} MAINTAINER= yuri@FreeBSD.org COMMENT= Implementation of the extended-Rice lossless compression algorithm WWW= https://support.hdfgroup.org/ LICENSE= SZIP LICENSE_NAME= SZIP Copyright and License Notice LICENSE_FILE= ${WRKSRC}/COPYING LICENSE_PERMS= auto-accept dist-mirror pkg-mirror # scientific use only is allowed [...] in conjunction with HDF data storage and retrieval file format and software library products (HDF5) USES= cmake:testing CONFLICTS_INSTALL= libaec +CMAKE_ARGS= -DCMAKE_POLICY_VERSION_MINIMUM=3.5 # CMake 4 compatibility + .include diff --git a/audio/artyfx-lv2/Makefile b/audio/artyfx-lv2/Makefile index 04e425eea6a6..cdd19cccb475 100644 --- a/audio/artyfx-lv2/Makefile +++ b/audio/artyfx-lv2/Makefile @@ -1,44 +1,46 @@ PORTNAME= artyfx DISTVERSIONPREFIX= release- DISTVERSION= 1.3.1 PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= audio PKGNAMESUFFIX= -lv2 MAINTAINER= yuri@FreeBSD.org COMMENT= ArtyFX plugin bundle WWW= http://openavproductions.com/artyfx/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_armv6= error: "NEON support not enabled" BUILD_DEPENDS= lv2>0:audio/lv2 LIB_DEPENDS= libsndfile.so:audio/libsndfile USES= cmake compiler:c++11-lang gnome localbase:ldflags pkgconfig xorg USE_GNOME= cairo USE_XORG= x11 USE_GITHUB= yes GH_ACCOUNT= openAVproductions GH_PROJECT= openAV-ArtyFX OPTIONS_DEFINE_amd64= SSE OPTIONS_DEFINE_i386= SSE OPTIONS_DEFAULT_amd64= SSE OPTIONS_DEFAULT_i386= SSE SSE_CMAKE_ON= -DPORT_SIMD_FLAGS:STRING="-msse -msse2 -mfpmath=sse" CXXFLAGS_powerpc= -maltivec +CMAKE_ARGS= -DCMAKE_POLICY_VERSION_MINIMUM=3.5 # CMake 4 compatibility + post-patch: @${REINPLACE_CMD} -e 's| -g | |; s| -O1 | |; s/-msse2 -mfpmath=sse/$${PORT_SIMD_FLAGS}/g' \ ${WRKSRC}/CMakeLists.txt @${REINPLACE_CMD} -e 's/-msse -msse2 -mfpmath=sse -g/$${PORT_SIMD_FLAGS}/g' \ ${WRKSRC}/src/avtk/CMakeLists.txt .include diff --git a/audio/libmusicxml/Makefile b/audio/libmusicxml/Makefile index d64b26d3975c..14ee90943d47 100644 --- a/audio/libmusicxml/Makefile +++ b/audio/libmusicxml/Makefile @@ -1,34 +1,35 @@ PORTNAME= libmusicxml DISTVERSIONPREFIX= v. DISTVERSION= 3.22 CATEGORIES= audio MAINTAINER= yuri@FreeBSD.org COMMENT= Library and tools for the MusicXML format WWW= https://github.com/grame-cncm/libmusicxml LICENSE= MPL20 LICENSE_FILE= ${WRKSRC}/license.txt USES= cmake compiler:c++17-lang USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= grame-cncm CMAKE_SOURCE_PATH= ${WRKSRC}/build +CMAKE_ARGS= -DCMAKE_POLICY_VERSION_MINIMUM=3.5 # CMake 4 compatibility, see https://github.com/grame-cncm/libmusicxml/issues/67 OPTIONS_DEFINE= DOCS PORTDOCS= * post-stage: @${RM} ${STAGEDIR}${PREFIX}/CHANGELOG.txt @${RM} ${STAGEDIR}${PREFIX}/README.html post-stage-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} \ ${WRKSRC}/doc/presentation/libmusicxml2.pdf \ ${STAGEDIR}${DOCSDIR} .include diff --git a/devel/babelflow/Makefile b/devel/babelflow/Makefile index 1dde4260423c..e20e09c3c63f 100644 --- a/devel/babelflow/Makefile +++ b/devel/babelflow/Makefile @@ -1,36 +1,37 @@ PORTNAME= babelflow DISTVERSIONPREFIX= v DISTVERSION= 1.1.0 PORTREVISION= 3 CATEGORIES= devel MAINTAINER= yuri@FreeBSD.org COMMENT= Embedded Domain Specific Language to describe task graph abstraction WWW= https://github.com/sci-visus/BabelFlow LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE USES= cmake compiler:c++11-lang USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= sci-visus GH_PROJECT= BabelFlow CMAKE_ARGS= -DRUNTIME_TYPE:STRING="MPI" +CMAKE_ARGS+= -DCMAKE_POLICY_VERSION_MINIMUM=3.5 # CMake 4 compatibility, see https://github.com/sci-visus/BabelFlow/issues/7 OPTIONS_SINGLE= MPI OPTIONS_SINGLE_MPI= MPICH OPENMPI OPTIONS_SINGLE_MPI= MPICH OPENMPI OPTIONS_DEFINE= EXAMPLES OPTIONS_DEFAULT= EXAMPLES MPICH OPTIONS_SUB= yes EXAMPLES_CMAKE_BOOL= BUILD_EXAMPLES MPICH_USES= mpi:mpich OPENMPI_USES= mpi:openmpi .include diff --git a/devel/cpp2py/Makefile b/devel/cpp2py/Makefile index 0052a10ea1ea..1c0d3d09f56c 100644 --- a/devel/cpp2py/Makefile +++ b/devel/cpp2py/Makefile @@ -1,40 +1,41 @@ PORTNAME= cpp2py DISTVERSION= 2.0.0 PORTREVISION= 4 CATEGORIES= devel PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ PATCHFILES= 44d5238ab4f05ed4064736ffd2f2b63438d3f64c.patch:-p1 # fix build on i386 MAINTAINER= yuri@FreeBSD.org COMMENT= Reflection tools based on clang WWW= https://github.com/TRIQS/cpp2py LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE.txt BUILD_DEPENDS= ${PY_SETUPTOOLS} \ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>0:math/py-numpy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}h5py>0:science/py-h5py@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}mako>0:textproc/py-mako@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} BUILD_DEPENDS+= ${PY_DEPENDS} RUN_DEPENDS= ${PY_DEPENDS} USES= cmake compiler:c++14-lang gettext-runtime python shebangfix USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= TRIQS SHEBANG_FILES= bin/c* CMAKE_ARGS= -DPYTHON_INTERPRETER:STRING=${PYTHON_CMD} +CMAKE_ARGS+= -DCMAKE_POLICY_VERSION_MINIMUM=3.5 # CMake 4.5 compatibility, see https://github.com/TRIQS/cpp2py/issues/59 PORTSCOUT= limit:^[0-9\.]*$$ post-install: # remove the unnecessary file: https://github.com/TRIQS/cpp2py/issues/41 @${RM} ${STAGEDIR}${PREFIX}/share/cpp2pyvars.sh .include diff --git a/devel/fxdiv/Makefile b/devel/fxdiv/Makefile index cd9f3677cca2..419e81e4cab7 100644 --- a/devel/fxdiv/Makefile +++ b/devel/fxdiv/Makefile @@ -1,32 +1,33 @@ PORTNAME= fxdiv PORTVERSION= g20181121 CATEGORIES= devel MAINTAINER= yuri@FreeBSD.org COMMENT= C/C++ header-only library for division via FP inverse multiplication WWW= https://github.com/Maratyszcza/FXdiv LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE USES= cmake USE_GITHUB= yes GH_ACCOUNT= Maratyszcza GH_PROJECT= FXdiv GH_TAGNAME= f8c5354 USE_LDCONFIG= yes CMAKE_OFF= FXDIV_BUILD_TESTS FXDIV_BUILD_BENCHMARKS +CMAKE_ARGS= -DCMAKE_POLICY_VERSION_MINIMUM=3.5 # CMake 4 compatibility, see https://github.com/Maratyszcza/FXdiv/issues/7 NO_BUILD= yes NO_ARCH= yes PLIST_FILES= include/fxdiv.h do-test: @cd ${BUILD_WRKSRC} && \ ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DFXDIV_BUILD_TESTS:BOOL=ON ${CMAKE_SOURCE_PATH} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test .include diff --git a/devel/gcem/Makefile b/devel/gcem/Makefile index 18b497a750db..6dc0977544b6 100644 --- a/devel/gcem/Makefile +++ b/devel/gcem/Makefile @@ -1,25 +1,27 @@ PORTNAME= gcem DISTVERSIONPREFIX= v DISTVERSION= 1.18.0 CATEGORIES= devel MAINTAINER= yuri@FreeBSD.org COMMENT= C++ header-only library for Generalized Constant Expression Math WWW= https://gcem.readthedocs.io/en/latest/ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE USES= cmake compiler:c++11-lang USE_GITHUB= yes GH_ACCOUNT= kthohr NO_ARCH= yes +CMAKE_ARGS= -DCMAKE_POLICY_VERSION_MINIMUM=3.5 # CMake 4 compatibility, see https://github.com/kthohr/gcem/issues/64 + do-test: @cd ${BUILD_WRKSRC} && \ ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DGCEM_BUILD_TESTS:BOOL=ON ${CMAKE_SOURCE_PATH} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} gcem_tests && \ (cd tests && ./exp.test) .include diff --git a/devel/libcsptr/Makefile b/devel/libcsptr/Makefile index 5080ae704c14..c9ac73629bd5 100644 --- a/devel/libcsptr/Makefile +++ b/devel/libcsptr/Makefile @@ -1,25 +1,27 @@ PORTNAME= libcsptr DISTVERSIONPREFIX= v DISTVERSION= 2.0.4-24 DISTVERSIONSUFFIX= -gac73451 CATEGORIES= devel MAINTAINER= yuri@FreeBSD.org COMMENT= Smart pointers for the (GNU) C programming language -WWW= https://github.com/Snaipe/libcsptr +WWW= https://snai.pe/posts/c-smart-pointers \ + https://github.com/Snaipe/libcsptr LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE TEST_DEPENDS= check>0:devel/check USES= cmake:testing localbase USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= Snaipe CMAKE_ON= BUILD_SHARED_LIBS CMAKE_TESTING_ON= LIBCSPTR_TESTS # tests fail to compile, see https://github.com/Snaipe/libcsptr/issues/23 +CMAKE_ARGS= -DCMAKE_POLICY_VERSION_MINIMUM=3.5 # CMake 4 compatibility, see https://github.com/Snaipe/libcsptr/issues/31 .include diff --git a/devel/libfort/Makefile b/devel/libfort/Makefile index 8701167864bb..6dd261ad9df8 100644 --- a/devel/libfort/Makefile +++ b/devel/libfort/Makefile @@ -1,26 +1,27 @@ PORTNAME= libfort DISTVERSIONPREFIX= v DISTVERSION= 0.4.2-11 DISTVERSIONSUFFIX= -g4123716 CATEGORIES= devel MAINTAINER= yuri@FreeBSD.org COMMENT= C/C++ library to print formatted ASCII tables for console applications WWW= https://github.com/seleznevae/libfort LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE USES= cmake:testing USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= seleznevae CMAKE_ON= BUILD_SHARED_LIBS CMAKE_OFF= FORT_ENABLE_TESTING CMAKE_TESTING_ON= FORT_ENABLE_TESTING # 2 tests are known to fail: https://github.com/seleznevae/libfort/issues/65 +CMAKE_ARGS= -DCMAKE_POLICY_VERSION_MINIMUM=3.5 # CMake 4 compatibility, see https://github.com/seleznevae/libfort/issues/74 # project also optionally bundles devel/astyle .include diff --git a/devel/termcolor/Makefile b/devel/termcolor/Makefile index 0ad0d8c8b39b..575cd32a75a9 100644 --- a/devel/termcolor/Makefile +++ b/devel/termcolor/Makefile @@ -1,24 +1,26 @@ PORTNAME= termcolor DISTVERSIONPREFIX= v DISTVERSION= 2.1.0 CATEGORIES= devel MAINTAINER= yuri@FreeBSD.org COMMENT= Header-only C++ library for printing colored messages to the terminal WWW= https://github.com/ikalnytskyi/termcolor LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE USES= cmake USE_GITHUB= yes GH_ACCOUNT= ikalnytskyi NO_BUILD= yes NO_ARCH= yes PLIST_FILES= include/termcolor/termcolor.hpp \ lib/cmake/termcolor/termcolor-config.cmake \ lib/cmake/termcolor/termcolor-targets.cmake +CMAKE_ARGS= -DCMAKE_POLICY_VERSION_MINIMUM=3.5 # CMake 4 compatibility, see https://github.com/ikalnytskyi/termcolor/issues/78 + .include diff --git a/devel/transwarp/Makefile b/devel/transwarp/Makefile index e0b77d849c82..489e69048076 100644 --- a/devel/transwarp/Makefile +++ b/devel/transwarp/Makefile @@ -1,24 +1,25 @@ PORTNAME= transwarp DISTVERSION= 2.2.3 CATEGORIES= devel MAINTAINER= yuri@FreeBSD.org COMMENT= C++ header-only library for task concurrency WWW= https://github.com/bloomen/transwarp LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE.md USES= cmake:testing compiler:c++17-lang USE_GITHUB= yes GH_ACCOUNT= bloomen CMAKE_TESTING_ON= transwarp_build_tests +CMAKE_ARGS= -DCMAKE_POLICY_VERSION_MINIMUM=3.5 # CMake 4 compatibility, see https://github.com/bloomen/transwarp/issues/41 NO_BUILD= yes NO_ARCH= yes PLIST_FILES= include/transwarp.h .include diff --git a/math/onednn252/Makefile b/math/onednn252/Makefile index fa3a83568be6..be4cc6bb4c76 100644 --- a/math/onednn252/Makefile +++ b/math/onednn252/Makefile @@ -1,82 +1,83 @@ PORTNAME= onednn DISTVERSIONPREFIX= v DISTVERSION= 2.5.2 CATEGORIES= math # machine-learning PKGNAMESUFFIX= 252 MAINTAINER= yuri@FreeBSD.org COMMENT= Intel(R) Math Kernel Library for Deep Neural Networks WWW= https://01.org/onednn LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE NOT_FOR_ARCHS= armv6 armv7 i386 powerpc powerpcspe BROKEN_aarch64= error: sys/prctl.h file not found .if !exists(/usr/include/omp.h) BROKEN= requires OpenMP support that is missing on this architecture .endif TEST_DEPENDS= bash:shells/bash \ libsysinfo>0:devel/libsysinfo USES= cmake compiler:c++11-lang localbase:ldflags USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= oneapi-src GH_PROJECT= oneDNN CMAKE_OFF= DNNL_BUILD_TESTS DNNL_BUILD_EXAMPLES +CMAKE_ARGS= -DCMAKE_POLICY_VERSION_MINIMUM=3.5 # CMake 4 compatibility OPTIONS_DEFAULT= SIMD_DEFAULT OPENMP OPTIONS_SINGLE= SIMD CPU_RUNTIME OPTIONS_SINGLE_SIMD= SIMD_DEFAULT SIMD_NATIVE OPTIONS_SINGLE_CPU_RUNTIME= OPENMP TBB SEQ THREADPOOL_STANDALONE THREADPOOL_EIGEN THREADPOOL_TBB CPU_RUNTIME_DESC= Threading runtime for CPU engines OPENMP_CMAKE_ON= -DDNNL_CPU_RUNTIME=OMP SEQ_DESC= Sequential (no parallelism) SEQ_CMAKE_ON= -DDNNL_CPU_RUNTIME=SEQ SIMD_DEFAULT_DESC= Default, no non-default SIMD instructions are used SIMD_NATIVE_DESC= Optimize for this CPU SIMD_NATIVE_CXXFLAGS= -march=native SIMD_SSE41_DESC= Use SSE4.1 instructions SIMD_SSE41_CXXFLAGS= -msse4.1 TBB_DESC= Threading Building Blocks TBB_CMAKE_ON= -DDNNL_CPU_RUNTIME=TBB TBB_BROKEN= https://github.com/oneapi-src/oneDNN/issues/876 THREADPOOL_STANDALONE_DESC= Threadpool based on the standalone implementation THREADPOOL_STANDALONE_CMAKE_ON= -DDNNL_CPU_RUNTIME=THREADPOOL -D_DNNL_TEST_THREADPOOL_IMPL=STANDALONE THREADPOOL_STANDALONE_BROKEN= https://github.com/oneapi-src/oneDNN/issues/877 THREADPOOL_EIGEN_DESC= Threadpool based on the Eigen implementation THREADPOOL_EIGEN_CMAKE_ON= -DDNNL_CPU_RUNTIME=THREADPOOL -D_DNNL_TEST_THREADPOOL_IMPL=EIGEN THREADPOOL_TBB_DESC= Threadpool based on the TBB implementation THREADPOOL_TBB_CMAKE_ON= -DDNNL_CPU_RUNTIME=THREADPOOL -D_DNNL_TEST_THREADPOOL_IMPL=TBB THREADPOOL_TBB_BROKEN= https://github.com/oneapi-src/oneDNN/issues/876 ARCH_LOCAL!= /usr/bin/uname -p # because OPTIONS_SINGLE_SIMD doesn't support per-ARCH values OPTIONS_SINGLE_SIMD_{arch}, like OPTIONS_DEFINE_{arch} .if ${ARCH_LOCAL} == i386 || ${ARCH_LOCAL} == amd64 OPTIONS_SINGLE_SIMD+= SIMD_SSE41 .endif CXXFLAGS:= ${CXXFLAGS:S/-O2/-O3/} # clang writes wrong binary code when -O2 optimization is used and one testcase is failing, see https://bugs.llvm.org/show_bug.cgi?id=48104 post-install: @${RM} -r ${STAGEDIR}${PREFIX}/share/doc do-test: @${REINPLACE_CMD} 's| /bin/bash | ${LOCALBASE}/bin/bash |' ${WRKSRC}/tests/CMakeLists.txt @cd ${BUILD_WRKSRC} && \ ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DDNNL_BUILD_TESTS=ON ${CMAKE_SOURCE_PATH} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test .include diff --git a/math/petanque/Makefile b/math/petanque/Makefile index a37922685511..b43c8d4fd96f 100644 --- a/math/petanque/Makefile +++ b/math/petanque/Makefile @@ -1,26 +1,27 @@ PORTNAME= petanque DISTVERSIONPREFIX= release- DISTVERSION= 1.1.0 PORTREVISION= 1 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= Library that helps manipulate symbolic boolean expressions WWW= https://github.com/quarkslab/arybo/tree/master/petanque LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.txt USES= cmake:testing compiler:c++14-lang USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= quarkslab GH_PROJECT= arybo WRKSRC_SUBDIR= ${PORTNAME} CMAKE_ON= BUILD_SHARED_LIBS CMAKE_TESTING_ON= WITH_TESTS # tests fail to find TBB, see https://github.com/quarkslab/arybo/issues/29 +CMAKE_ARGS= -DCMAKE_POLICY_VERSION_MINIMUM=3.5 # CMake 4 compatibility, see https://github.com/quarkslab/arybo/issues/35 .include diff --git a/net/zyre/Makefile b/net/zyre/Makefile index 46062f238e1c..e26ceab9357f 100644 --- a/net/zyre/Makefile +++ b/net/zyre/Makefile @@ -1,24 +1,25 @@ PORTNAME= zyre DISTVERSIONPREFIX= v DISTVERSION= 2.0.1 PORTREVISION= 2 CATEGORIES= net MAINTAINER= yuri@FreeBSD.org COMMENT= Framework for proximity-based peer-to-peer applications WWW= https://github.com/zeromq/zyre LICENSE= MPL20 LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libczmq.so:net/czmq \ libzmq.so:net/libzmq4 USES= cmake USE_GITHUB= yes GH_ACCOUNT= zeromq USE_LDCONFIG= yes CMAKE_OFF= ZYRE_BUILD_STATIC +CMAKE_ARGS= -DCMAKE_POLICY_VERSION_MINIMUM=3.5 # CMake 4 compatibility, see https://github.com/zeromq/zyre/issues/760 .include