Hi, this lets kitinerary build with poppler-24.05.0. I'v not tested wether it still works, because I don't know how to use this application, but the change is similar to the one for inkscape.
ok? Ciao, Kili Index: Makefile =================================================================== RCS file: /cvs/ports/x11/kde-applications/kitinerary/Makefile,v diff -u -p -r1.19 Makefile --- Makefile 20 May 2024 06:38:59 -0000 1.19 +++ Makefile 24 May 2024 20:47:21 -0000 @@ -1,6 +1,7 @@ COMMENT = KDE itinerary data model and itinerary extraction library DISTNAME = kitinerary-${VERSION} CATEGORIES = devel +REVISION = 0 HOMEPAGE = https://apps.kde.org/itinerary Index: patches/patch-src_lib_pdf_pdfdocument_cpp =================================================================== RCS file: patches/patch-src_lib_pdf_pdfdocument_cpp diff -N patches/patch-src_lib_pdf_pdfdocument_cpp --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-src_lib_pdf_pdfdocument_cpp 24 May 2024 20:47:21 -0000 @@ -0,0 +1,20 @@ +Index: src/lib/pdf/pdfdocument.cpp +--- src/lib/pdf/pdfdocument.cpp.orig ++++ src/lib/pdf/pdfdocument.cpp +@@ -22,6 +22,7 @@ + #include <PDFDoc.h> + #include <PDFDocEncoding.h> + #include <Stream.h> ++#include <UTF.h> + + #include <cmath> + +@@ -330,7 +331,7 @@ QString gooStringToUnicode(const std::unique_ptr<GooSt + return {}; + } + +- if (s->hasUnicodeMarker() || s->hasUnicodeMarkerLE()) { ++ if (hasUnicodeByteOrderMark(s->toStr()) || hasUnicodeByteOrderMarkLE(s->toStr())) { + return QString::fromUtf16(reinterpret_cast<const char16_t*>(s->toStr().c_str()), s->toStr().size() / 2); + } else { + int len = 0;