$NetBSD: patch-external_pdfium_pkgsrc.patch.1,v 1.4 2020/02/05 14:10:35 ryoon Exp $ * Support NetBSD * Add pkgsrc font path --- external/pdfium/pkgsrc.patch.1.orig 2020-01-29 23:29:18.991317260 +0000 +++ external/pdfium/pkgsrc.patch.1 @@ -0,0 +1,33 @@ +--- pdfioum/core/fxcrt/cfx_fileaccess_posix.h.orig 2019-11-07 01:11:27.000000000 +0000 ++++ pdfium/core/fxcrt/cfx_fileaccess_posix.h +@@ -12,7 +12,7 @@ + #include "core/fxcrt/fx_system.h" + + #if _FX_PLATFORM_ != _FX_PLATFORM_LINUX_ && !defined(OS_MACOSX) && \ +- !defined(OS_ANDROID) ++ !defined(OS_ANDROID) && !defined(OS_NETBSD) + #error "Included on the wrong platform" + #endif + + /************************************************************************** +--- pdfium/core/fxcrt/fx_system.h.orig 2019-11-07 01:11:27.000000000 +0000 ++++ pdfium/core/fxcrt/fx_system.h +@@ -26,7 +26,7 @@ + #define _FX_PLATFORM_ _FX_PLATFORM_WINDOWS_ + #elif defined(_WIN64) + #define _FX_PLATFORM_ _FX_PLATFORM_WINDOWS_ +-#elif defined(__linux__) ++#elif defined(__linux__) || defined(__NetBSD__) + #define _FX_PLATFORM_ _FX_PLATFORM_LINUX_ + #elif defined(__APPLE__) + #define _FX_PLATFORM_ _FX_PLATFORM_APPLE_ +--- pdfium/core/fxge/fx_ge_linux.cpp.orig 2019-11-07 01:11:27.000000000 +0000 ++++ pdfium/core/fxge/fx_ge_linux.cpp +@@ -155,6 +155,7 @@ std::unique_ptr Sys + pInfo->AddPath("/usr/share/X11/fonts/Type1"); + pInfo->AddPath("/usr/share/X11/fonts/TTF"); + pInfo->AddPath("/usr/local/share/fonts"); ++ pInfo->AddPath("@X11BASE@/share/fonts"); + } + return std::move(pInfo); + }