diff options
author | Joshua I. Haase H. (xihh) <hahj87@gmail.com> | 2012-09-18 23:41:48 -0500 |
---|---|---|
committer | Joshua I. Haase H. (xihh) <hahj87@gmail.com> | 2012-09-18 23:41:48 -0500 |
commit | fa95bb04dbbc63d07b1f84fb8ce5272085097eb7 (patch) | |
tree | 09eb51305956e84dfb79aa89f5b99e595371c54d /community/jbig2dec | |
parent | 6eefbbf4300e680dc93487c11a1ae35ee8299f06 (diff) | |
parent | 5a05be089c68617c86c9c555e63f2b0314451ebf (diff) |
Merge branch 'master' of gitpar:abslibre-mips64el
Diffstat (limited to 'community/jbig2dec')
-rw-r--r-- | community/jbig2dec/PKGBUILD | 2 | ||||
-rw-r--r-- | community/jbig2dec/jbig2dec-0.11-libpng15.patch | 31 |
2 files changed, 32 insertions, 1 deletions
diff --git a/community/jbig2dec/PKGBUILD b/community/jbig2dec/PKGBUILD index 24cc37fe5..9ea255b4b 100644 --- a/community/jbig2dec/PKGBUILD +++ b/community/jbig2dec/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 67870 2012-03-15 15:48:59Z bpiotrowski $ +# $Id: PKGBUILD 73320 2012-07-06 13:34:39Z spupykin $ # Maintainer: Bartłomiej Piotrowski # Contributor: Stefan Husmann <stefan-husmann@t-online.de> diff --git a/community/jbig2dec/jbig2dec-0.11-libpng15.patch b/community/jbig2dec/jbig2dec-0.11-libpng15.patch new file mode 100644 index 000000000..c18ccb7af --- /dev/null +++ b/community/jbig2dec/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); + } |