diff options
author | joerg <joerg@pkgsrc.org> | 2020-01-13 00:57:17 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2020-01-13 00:57:17 +0000 |
commit | d4d07b3c1a66f3bada7c9c7629b9e0cdddbc2a3f (patch) | |
tree | 1cdeddcadc26bfda556196ddd06d299f84518011 | |
parent | 73d2bfb632d0833a243adb300f697484c9e65779 (diff) | |
download | pkgsrc-d4d07b3c1a66f3bada7c9c7629b9e0cdddbc2a3f.tar.gz |
Fix poppler for C consumers.
-rw-r--r-- | print/poppler-includes/Makefile | 3 | ||||
-rw-r--r-- | print/poppler/distinfo | 3 | ||||
-rw-r--r-- | print/poppler/patches/patch-poppler_poppler-config.h.cmake | 17 |
3 files changed, 21 insertions, 2 deletions
diff --git a/print/poppler-includes/Makefile b/print/poppler-includes/Makefile index dc7ca6ab8a6..2b60d756879 100644 --- a/print/poppler-includes/Makefile +++ b/print/poppler-includes/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.26 2019/11/04 19:58:01 rillig Exp $ +# $NetBSD: Makefile,v 1.27 2020/01/13 00:57:18 joerg Exp $ .include "../../print/poppler/Makefile.common" +PKGREVISION= 1 PKGNAME= poppler-includes-${POPPLER_VERS} COMMENT= Poppler Xpdf includes (unsupported) 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))) |