diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2012-02-09 16:13:51 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2012-02-09 16:13:51 +0000 |
commit | 9d82ae882afa55607e3a6b6fffbdafc59010cf2c (patch) | |
tree | 55409048e9b6a327f1558e7dba73cafa675e5f2d /media-libs/jbig2dec/files | |
parent | Bump up to EAPI=4 so we can use REQUIRED_USE to ensure at least one is enabled. (diff) | |
download | historical-9d82ae882afa55607e3a6b6fffbdafc59010cf2c.tar.gz historical-9d82ae882afa55607e3a6b6fffbdafc59010cf2c.tar.bz2 historical-9d82ae882afa55607e3a6b6fffbdafc59010cf2c.zip |
Fix building with libpng15.
Package-Manager: portage-2.2.0_alpha84/cvs/Linux x86_64
Diffstat (limited to 'media-libs/jbig2dec/files')
-rw-r--r-- | media-libs/jbig2dec/files/jbig2dec-0.11-libpng15.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/media-libs/jbig2dec/files/jbig2dec-0.11-libpng15.patch b/media-libs/jbig2dec/files/jbig2dec-0.11-libpng15.patch new file mode 100644 index 000000000000..c18ccb7af606 --- /dev/null +++ b/media-libs/jbig2dec/files/jbig2dec-0.11-libpng15.patch @@ -0,0 +1,31 @@ +--- configure.ac ++++ configure.ac +@@ -45,7 +45,7 @@ + fi + dnl libpng requires pow() which may be in libm + AC_SEARCH_LIBS([pow], [m]) +- AC_CHECK_LIB([png], [png_check_sig], [ ++ AC_CHECK_LIB([png], [png_sig_cmp], [ + AC_CHECK_LIB([z], [deflate], [ + AC_DEFINE(HAVE_LIBPNG, 1, [Define if libpng is available (-lpng)]) + LIBS="-lpng -lz $LIBS" +--- jbig2_image_png.c ++++ jbig2_image_png.c +@@ -33,7 +33,7 @@ + { + png_size_t check; + +- check = fwrite(data, 1, length, (png_FILE_p)png_ptr->io_ptr); ++ check = fwrite(data, 1, length, (png_FILE_p)png_get_io_ptr(png_ptr)); + if (check != length) { + png_error(png_ptr, "Write Error"); + } +@@ -43,7 +43,7 @@ + jbig2_png_flush(png_structp png_ptr) + { + png_FILE_p io_ptr; +- io_ptr = (png_FILE_p)CVT_PTR((png_ptr->io_ptr)); ++ io_ptr = (png_FILE_p)png_get_io_ptr(png_ptr); + if (io_ptr != NULL) + fflush(io_ptr); + } |