ports/editors/libreoffice/files/patch-external_pdfium_pdfium-bsd.patch
Dima Panov 60ab1114e2 */libreoffice*: update to 7.5.0 release (+)
Office team is proud to announce LibreOffice 7.5 Community,
the new major release of the volunteer-supported free office suite for desktop productivity

Read more:	https://blog.documentfoundation.org/blog/2023/02/02/tdf-announces-libreoffice-75-community/
2023-02-04 11:43:03 +03:00

26 lines
1.1 KiB
Diff

Index: external/pdfium/pdfium-bsd.patch
--- external/pdfium/pdfium-bsd.patch.orig 2022-02-15 12:21:30 UTC
+++ external/pdfium/pdfium-bsd.patch
@@ -0,0 +1,22 @@
+--- core/fxge/linux/fx_linux_impl.cpp.orig Thu Feb 3 17:25:22 2022
++++ core/fxge/linux/fx_linux_impl.cpp Thu Feb
+@@ -18,7 +18,7 @@
+ #include "third_party/base/check.h"
+
+ #if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) && !defined(OS_FUCHSIA) && \
+- !defined(OS_ASMJS)
++ !defined(OS_ASMJS) && !defined(OS_FREEBSD) && !defined(OS_OPENBSD)
+ #error "Included on the wrong platform"
+ #endif
+
+--- core/fxge/cfx_fontmapper.cpp.orig Thu Feb 3 17:25:53 2022
++++ core/fxge/cfx_fontmapper.cpp Thu Feb
+@@ -155,7 +155,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";