diff --git a/devel/libmcfp/Makefile b/devel/libmcfp/Makefile index ffe37eea7498..cb893e35825b 100644 --- a/devel/libmcfp/Makefile +++ b/devel/libmcfp/Makefile @@ -1,29 +1,30 @@ PORTNAME= libmcfp DISTVERSIONPREFIX= v DISTVERSION= 2.0.2 +PORTREVISION= 1 CATEGORIES= devel MAINTAINER= yuri@FreeBSD.org COMMENT= C++ header only library to parse command line arguments WWW= https://github.com/mhekkel/libmcfp LICENSE= BSD2CLAUSE BUILD_DEPENDS= fast_float>0:math/fast_float TEST_DEPENDS= catch2>0:devel/catch2 \ ${LOCALBASE}/include/boost/test/included/unit_test.hpp:devel/boost-libs USES= cmake:testing localbase llvm:build USE_GITHUB= yes GH_ACCOUNT= mhekkel CMAKE_OFF= BUILD_TESTING NO_ARCH= yes PORTSCOUT= limit:^.*[0-9]\.[0-9].* # tests as of 1.4.2: 100% tests passed, 0 tests failed out of 1 .include diff --git a/devel/libmcfp/files/patch-cmake_mcfp-config.cmake.in b/devel/libmcfp/files/patch-cmake_mcfp-config.cmake.in new file mode 100644 index 000000000000..ddd02b12e61b --- /dev/null +++ b/devel/libmcfp/files/patch-cmake_mcfp-config.cmake.in @@ -0,0 +1,18 @@ +-- Make include of mcfp-module-targets.cmake conditional because +-- MCFP_BUILD_CXX_MODULE defaults to OFF and the module targets file +-- is not generated when the module is not built. +-- Without this, dependent projects fail at CMake configure time with: +-- INCLUDE could not find requested file: mcfp-module-targets.cmake + +--- cmake/mcfp-config.cmake.in.orig 2026-06-12 05:39:17 UTC ++++ cmake/mcfp-config.cmake.in +@@ -5,6 +5,8 @@ INCLUDE("${CMAKE_CURRENT_LIST_DIR}/mcfp-targets.cmake" + @PACKAGE_INIT@ + + INCLUDE("${CMAKE_CURRENT_LIST_DIR}/mcfp-targets.cmake") +-INCLUDE("${CMAKE_CURRENT_LIST_DIR}/mcfp-module-targets.cmake") ++IF(EXISTS "${CMAKE_CURRENT_LIST_DIR}/mcfp-module-targets.cmake") ++ INCLUDE("${CMAKE_CURRENT_LIST_DIR}/mcfp-module-targets.cmake") ++ENDIF() + + check_required_components(mcfp)