summaryrefslogtreecommitdiff
path: root/print/poppler
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2020-01-13 00:57:17 +0000
committerjoerg <joerg@pkgsrc.org>2020-01-13 00:57:17 +0000
commitd4d07b3c1a66f3bada7c9c7629b9e0cdddbc2a3f (patch)
tree1cdeddcadc26bfda556196ddd06d299f84518011 /print/poppler
parent73d2bfb632d0833a243adb300f697484c9e65779 (diff)
downloadpkgsrc-d4d07b3c1a66f3bada7c9c7629b9e0cdddbc2a3f.tar.gz
Fix poppler for C consumers.
Diffstat (limited to 'print/poppler')
-rw-r--r--print/poppler/distinfo3
-rw-r--r--print/poppler/patches/patch-poppler_poppler-config.h.cmake17
2 files changed, 19 insertions, 1 deletions
diff --git a/print/poppler/distinfo b/print/poppler/distinfo
index 2a4f658b69b..15fb5bf52dd 100644
--- a/print/poppler/distinfo
+++ b/print/poppler/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.143 2020/01/10 13:24:18 wiz Exp $
+$NetBSD: distinfo,v 1.144 2020/01/13 00:57:17 joerg Exp $
SHA1 (poppler-0.84.0.tar.xz) = f362f27b95c12e7fdab983650685dae1052aacf2
RMD160 (poppler-0.84.0.tar.xz) = cb87b2e56d0db84679dc693b5938f1d0de069b5f
SHA512 (poppler-0.84.0.tar.xz) = e00aca76b4909621b79ec68374529396ddba756af5d60d86750095dfebbabe5b576aa7c873c3fcfabaff28c89e3e37e826d4a0fac356d76ef966500514a772e7
Size (poppler-0.84.0.tar.xz) = 1561236 bytes
+SHA1 (patch-poppler_poppler-config.h.cmake) = d2a67beb1275f10f19468421f203806ead6fa8ff
SHA1 (patch-qt5_src_poppler-page.cc) = b4f076c0417d8fbd342a1d9918a52369b2ddc952
diff --git a/print/poppler/patches/patch-poppler_poppler-config.h.cmake b/print/poppler/patches/patch-poppler_poppler-config.h.cmake
new file mode 100644
index 00000000000..ff3fee89000
--- /dev/null
+++ b/print/poppler/patches/patch-poppler_poppler-config.h.cmake
@@ -0,0 +1,17 @@
+$NetBSD: patch-poppler_poppler-config.h.cmake,v 1.1 2020/01/13 00:57:17 joerg Exp $
+
+--- poppler/poppler-config.h.cmake.orig 2020-01-13 00:10:29.414712344 +0000
++++ poppler/poppler-config.h.cmake
+@@ -139,7 +139,11 @@
+ //------------------------------------------------------------------------
+
+ #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
+-#include <cstdio> // __MINGW_PRINTF_FORMAT is defined in the mingw stdio.h
++# if __cplusplus
++# include <cstdio> // __MINGW_PRINTF_FORMAT is defined in the mingw stdio.h
++# else
++# include <stdio.h>
++# endif
+ #ifdef __MINGW_PRINTF_FORMAT
+ #define GCC_PRINTF_FORMAT(fmt_index, va_index) \
+ __attribute__((__format__(__MINGW_PRINTF_FORMAT, fmt_index, va_index)))