diff --git a/devel/heaptrack/Makefile b/devel/heaptrack/Makefile index 1cd10c4d50ea..a2a200db50a1 100644 --- a/devel/heaptrack/Makefile +++ b/devel/heaptrack/Makefile @@ -1,25 +1,26 @@ PORTNAME= heaptrack DISTVERSION= 1.3.0 +PORTREVISION= 1 CATEGORIES= devel kde MASTER_SITES= KDE/stable/${PORTNAME}/${PORTVERSION}/ MAINTAINER= kde@FreeBSD.org COMMENT= Heap memory profiler LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/LICENSES/GPL-2.0-or-later.txt LIB_DEPENDS= libboost_regex.so:devel/boost-libs \ libunwind.so:devel/libunwind \ libKChart.so:graphics/kdiagram USES= cmake compiler:c++11-lang desktop-file-utils kde:5 \ localbase qt:5 tar:xz USE_KDE= auth auth codecs completion config config \ configwidgets coreaddons ecm i18n itemmodels \ jobwidgets kio kio service threadweaver \ widgetsaddons windowsystem USE_QT= concurrent core dbus gui network widgets xml \ buildtools_build qmake_build .include diff --git a/devel/heaptrack/files/patch-cmake_FindLibunwind.cmake b/devel/heaptrack/files/patch-cmake_FindLibunwind.cmake new file mode 100644 index 000000000000..5141d7b6b37b --- /dev/null +++ b/devel/heaptrack/files/patch-cmake_FindLibunwind.cmake @@ -0,0 +1,18 @@ +--- cmake/FindLibunwind.cmake.orig 2022-05-09 10:37:16 UTC ++++ cmake/FindLibunwind.cmake +@@ -23,9 +23,15 @@ + + + find_path(LIBUNWIND_INCLUDE_DIR libunwind.h ) ++if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD") ++# FreeBSD 14 doesn't install an header with ++# the libunwind port, and in any case it is not needed. ++message(STATUS "Assuming there is a corresponding unwind.h") ++else() + if(NOT EXISTS "${LIBUNWIND_INCLUDE_DIR}/unwind.h") + MESSAGE("Found libunwind.h but corresponding unwind.h is absent!") + SET(LIBUNWIND_INCLUDE_DIR "") ++endif() + endif() + + find_library(LIBUNWIND_LIBRARY unwind)