head 1.3; access; symbols pkgsrc-2020Q3:1.1.0.4 pkgsrc-2020Q3-base:1.1 pkgsrc-2020Q2:1.1.0.2 pkgsrc-2020Q2-base:1.1; locks; strict; comment @// @; 1.3 date 2026.06.24.21.57.36; author wiz; state Exp; branches; next 1.2; commitid k6TcQUOC0vZpe6LG; 1.2 date 2020.12.09.15.05.08; author ryoon; state dead; branches; next 1.1; commitid 3txGRaAp0c7BY4zC; 1.1 date 2020.05.22.01.15.34; author joerg; state Exp; branches; next ; commitid RL7RF3cpaXQyQa9C; desc @@ 1.3 log @pdf2djvu: fix build with poppler 26.06.0 Bump PKGREVISION. @ text @$NetBSD$ Fix build with poppler 26.06. From Arch. https://aur.archlinux.org/cgit/aur.git/plain/pdf2djvu-poppler-26.01.0.patch?h=pdf2djvu https://aur.archlinux.org/cgit/aur.git/plain/pdf2djvu-poppler-26.x.patch?h=pdf2djvu --- pdf-dpi.cc.orig 2022-08-09 20:28:01.000000000 +0000 +++ pdf-dpi.cc @@@@ -91,7 +91,11 @@@@ void DpiGuessDevice::process_image(pdf::gfx::State *st void DpiGuessDevice::process_image(pdf::gfx::State *state, int width, int height) { +#if POPPLER_VERSION > 260100 + const std::array &ctm = state->getCTM(); +#else const double *ctm = state->getCTM(); +#endif double h_dpi = 72.0 * width / hypot(ctm[0], ctm[1]); double v_dpi = 72.0 * height / hypot(ctm[2], ctm[3]); this->min_ = std::min(this->min_, std::min(h_dpi, v_dpi)); @ 1.2 log @pdf2djvu: Update to 0.9.17.1 Changelog: pdf2djvu (0.9.17.1) unstable; urgency=low * Fix build failure with Poppler >= 20.08. -- Jakub Wilk Fri, 07 Aug 2020 19:13:22 +0200 pdf2djvu (0.9.17) unstable; urgency=low * Fix build failure with Poppler >= 0.86. Thanks to David B. Evans for the bug report. https://github.com/jwilk/pdf2djvu/issues/142 * Drop support for Poppler < 0.35. * Upgrade libraries bundled with the Windows package: - Poppler to 0.86.1; - Expat to 2.2.9; - FreeType to 2.10.1. -- Jakub Wilk Mon, 02 Mar 2020 17:46:38 +0100 pdf2djvu (0.9.16) unstable; urgency=low * Fix build failure with Poppler >= 0.85. -- Jakub Wilk Thu, 20 Feb 2020 11:38:58 +0100 pdf2djvu (0.9.15) unstable; urgency=low * Fix build failure with Poppler >= 0.83. -- Jakub Wilk Fri, 20 Dec 2019 15:30:18 +0100 pdf2djvu (0.9.14) unstable; urgency=low * Fix build failure with Poppler >= 0.82. -- Jakub Wilk Mon, 28 Oct 2019 17:07:29 +0100 @ text @d1 1 a1 1 $NetBSD: patch-pdf-dpi.cc,v 1.1 2020/05/22 01:15:34 joerg Exp $ d3 6 a8 1 --- pdf-dpi.cc.orig 2020-05-16 19:34:23.424498851 +0000 d10 1 a10 2 @@@@ -34,7 +34,7 @@@@ protected: } d12 10 a21 6 virtual void drawImage(pdf::gfx::State *state, pdf::Object *object, pdf::Stream *stream, int width, int height, - pdf::gfx::ImageColorMap *color_map, bool interpolate, int *mask_colors, bool inline_image) + pdf::gfx::ImageColorMap *color_map, bool interpolate, const int *mask_colors, bool inline_image) { this->process_image(state, width, height); } @ 1.1 log @Deal with poppler API fallout @ text @d1 1 a1 1 $NetBSD$ @