diff --git a/graphics/xournalpp/Makefile b/graphics/xournalpp/Makefile index 682def1fd7d4..3bc74b109cca 100644 --- a/graphics/xournalpp/Makefile +++ b/graphics/xournalpp/Makefile @@ -1,36 +1,37 @@ PORTNAME= xournalpp DISTVERSIONPREFIX= v DISTVERSION= 1.3.6 +PORTREVISION= 1 CATEGORIES= graphics MAINTAINER= yuri@FreeBSD.org COMMENT= Handwriting notetaking software with PDF annotation support WWW= https://github.com/xournalpp/xournalpp LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_armv7= compilation fails: error: redefinition of 'getGVariantValue': see https://github.com/xournalpp/xournalpp/issues/5873 BROKEN_i386= compilation fails: error: redefinition of 'getGVariantValue': see https://github.com/xournalpp/xournalpp/issues/5873 BROKEN_powerpc= compilation fails: error: redefinition of 'getGVariantValue': see https://github.com/xournalpp/xournalpp/issues/5873 BUILD_DEPENDS= help2man:misc/help2man LIB_DEPENDS= libgtksourceview-4.so:x11-toolkits/gtksourceview4 \ libharfbuzz.so:print/harfbuzz \ libpoppler-glib.so:graphics/poppler-glib \ libportaudio.so:audio/portaudio \ libqpdf.so:print/qpdf \ libsndfile.so:audio/libsndfile \ libzip.so:archivers/libzip USES= cmake compiler:c++11-lang gettext-tools gnome lua pkgconfig tex xorg desktop-file-utils shared-mime-info USE_GITHUB= yes USE_GNOME= atk cairo gdkpixbuf glib20 gtk30 librsvg2 libxml2 pango USE_XORG= x11 xext xi USE_TEX= latex:build LDFLAGS+= -lexecinfo # CAVEAT: crashes when built with gcc: https://github.com/xournalpp/xournalpp/issues/851 .include diff --git a/graphics/xournalpp/files/patch-src_util_PathUtil.cpp b/graphics/xournalpp/files/patch-src_util_PathUtil.cpp new file mode 100644 index 000000000000..45a940838217 --- /dev/null +++ b/graphics/xournalpp/files/patch-src_util_PathUtil.cpp @@ -0,0 +1,14 @@ +--- src/util/PathUtil.cpp.orig 2026-07-21 03:37:42 UTC ++++ src/util/PathUtil.cpp +@@ -100,7 +100,11 @@ auto Util::getExePath() -> fs::path { + #define PATH_MAX 4096 + #endif + std::array result{}; ++#if !defined(__FreeBSD__) + ssize_t count = readlink("/proc/self/exe", result.data(), PATH_MAX); ++#else ++ ssize_t count = readlink("/proc/curproc/file", result.data(), PATH_MAX); ++#endif + return fs::path{std::string(result.data(), as_unsigned(std::max(ssize_t{0}, count)))}.parent_path(); + } + #endif