summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2011-04-12 21:48:01 +0000
committerwiz <wiz@pkgsrc.org>2011-04-12 21:48:01 +0000
commit67382713710395ae02999bc6af2ddd17e979ca82 (patch)
treedd95573c50105f027e443d1603b4247ebdbe6e04 /misc
parent9ffcaf0178c13a02051736bee7b576d718ef8e04 (diff)
downloadpkgsrc-67382713710395ae02999bc6af2ddd17e979ca82.tar.gz
Fix build with png-1.5.
Diffstat (limited to 'misc')
-rw-r--r--misc/calibre/distinfo3
-rw-r--r--misc/calibre/patches/patch-src_calibre_ebooks_pdf_images.cpp23
2 files changed, 25 insertions, 1 deletions
diff --git a/misc/calibre/distinfo b/misc/calibre/distinfo
index b447855a9ba..0cc8094fe75 100644
--- a/misc/calibre/distinfo
+++ b/misc/calibre/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.2 2009/11/18 17:41:20 wiz Exp $
+$NetBSD: distinfo,v 1.3 2011/04/12 21:48:01 wiz Exp $
SHA1 (calibre-0.6.24.tar.gz) = 8484746cb058d7719225b02a843d29bd7626ffa0
RMD160 (calibre-0.6.24.tar.gz) = a7833156b635bfd14842b055e3b44debe64e4752
Size (calibre-0.6.24.tar.gz) = 10953557 bytes
SHA1 (patch-aa) = cf794f388d8193c3384f7f36208bef606c14dc6d
SHA1 (patch-ac) = da8fedb745ebb29ea7df0a5b7a642384273ae324
+SHA1 (patch-src_calibre_ebooks_pdf_images.cpp) = 31deac71af1f8d6f04978df26104ccd91229950c
diff --git a/misc/calibre/patches/patch-src_calibre_ebooks_pdf_images.cpp b/misc/calibre/patches/patch-src_calibre_ebooks_pdf_images.cpp
new file mode 100644
index 00000000000..f079da4f136
--- /dev/null
+++ b/misc/calibre/patches/patch-src_calibre_ebooks_pdf_images.cpp
@@ -0,0 +1,23 @@
+$NetBSD: patch-src_calibre_ebooks_pdf_images.cpp,v 1.1 2011/04/12 21:48:01 wiz Exp $
+
+Fix build with png-1.5.
+
+--- src/calibre/ebooks/pdf/images.cpp.orig 2009-11-16 19:41:31.000000000 +0000
++++ src/calibre/ebooks/pdf/images.cpp
+@@ -6,6 +6,7 @@
+ #include <math.h>
+ #include <iostream>
+ #include <wand/MagickWand.h>
++#include <zlib.h>
+
+ #include "images.h"
+ #include "utils.h"
+@@ -294,7 +295,7 @@ void PNGWriter::write_splash_bitmap(Spla
+
+ void calibre_png_mem_write(png_structp png_ptr, png_bytep data, png_size_t length) {
+ if (!png_ptr || length < 1) return;
+- vector<char> *buf = static_cast< vector<char>* >(png_ptr->io_ptr);
++ vector<char> *buf = static_cast< vector<char>* >(png_get_io_ptr(png_ptr));
+ buf->reserve(buf->capacity() + length);
+ do {
+ buf->push_back(static_cast<char>(*data));