ports/editors/libreoffice/files/patch-external_pdfium_pdfium-bsd.patch
Dima Panov d8273ae222
editors/libreoffice: update to 24.8.0 release (+)
New major release!

LibreOffice 24.8, the new major release of the free, volunteer-supported office suite
has been released with a wealth of improvements:

* Handy "Quick find" deck in the Sidebar
* New spreadsheet functions, including XLOOKUP
* Better presentation templates
* New password-based encryption for documents

and much more:	https://blog.documentfoundation.org/blog/2024/08/22/libreoffice-248/

Release notes:	https://wiki.documentfoundation.org/ReleaseNotes/24.8

Co-Authored-by:	Li-Wen Hsu <lwhsu@FreeBSD.org>

Sponsored by:	Serenity Cybersecurity, LLC
2024-08-23 00:43:30 +03:00

26 lines
1.1 KiB
Diff

Index: external/pdfium/pdfium-bsd.patch
--- external/pdfium/pdfium-bsd.patch.orig 2024-06-19 20:37:06 UTC
+++ external/pdfium/pdfium-bsd.patch
@@ -0,0 +1,22 @@
+--- core/fxge/linux/fx_linux_impl.cpp.orig 2024-04-16 00:00:38 UTC
++++ core/fxge/linux/fx_linux_impl.cpp
+@@ -17,7 +17,7 @@
+ #include "core/fxge/fx_font.h"
+ #include "core/fxge/systemfontinfo_iface.h"
+
+-#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) && !defined(OS_ASMJS)
++#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) && !defined(OS_ASMJS) && !defined(OS_FREEBSD) && !defined(OS_OPENBSD)
+ #error "Included on the wrong platform"
+ #endif
+
+--- core/fxge/cfx_fontmapper.cpp.orig 2024-04-16 00:00:38 UTC
++++ core/fxge/cfx_fontmapper.cpp
+@@ -157,7 +157,7 @@ constexpr AltFontFamily kAltFontFamilies[] = {
+ {"ForteMT", "Forte"},
+ };
+
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || defined(OS_ASMJS)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || defined(OS_ASMJS) || defined(OS_FREEBSD) || defined(OS_OPENBSD)
+ const char kNarrowFamily[] = "LiberationSansNarrow";
+ #elif BUILDFLAG(IS_ANDROID)
+ const char kNarrowFamily[] = "RobotoCondensed";