Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=ryuotesting2.git;a=commitdiff;h=afb5ffb1ba86d4ea96167fe10c9905f4b29a8afb
commit afb5ffb1ba86d4ea96167fe10c9905f4b29a8afb Author: Baste <[email protected]> Date: Wed Jun 27 15:40:58 2012 +0200 leptonica-1.68-3-x86_64 * Add zlib.patch diff --git a/source/xlib-extra/leptonica/FrugalBuild b/source/xlib-extra/leptonica/FrugalBuild index b7fa59e..2351c07 100644 --- a/source/xlib-extra/leptonica/FrugalBuild +++ b/source/xlib-extra/leptonica/FrugalBuild @@ -10,6 +10,7 @@ depends=('zlib' 'libjpeg' 'libpng' 'libtiff' 'libgif ''gnuplot') groups=('xlib-extra') archs=('i686' 'x86_64') up2date="Flasttar http://www.leptonica.com/download.html" -source=($url/source/$pkgname-$pkgver.tar.gz) -sha1sums=('a50563ac091f4195a5a3b4579c4fcc674b81c316') +source=($url/source/$pkgname-$pkgver.tar.gz zlib.patch) +sha1sums=('a50563ac091f4195a5a3b4579c4fcc674b81c316' \ + 'ba0a222a7e9e1c005e4746618185b2d8ecaf16cb') # optimization OK diff --git a/source/xlib-extra/leptonica/zlib.patch b/source/xlib-extra/leptonica/zlib.patch new file mode 100644 index 0000000..e943e31 --- /dev/null +++ b/source/xlib-extra/leptonica/zlib.patch @@ -0,0 +1,14 @@ +diff -Nurd -x'*~' leptonica-1.68.orig/src/pngio.c leptonica-1.68/src/pngio.c +--- leptonica-1.68.orig/src/pngio.c 2011-02-01 00:41:12.000000000 -0500 ++++ leptonica-1.68/src/pngio.c 2011-07-09 09:17:17.000000000 -0400 +@@ -108,6 +108,10 @@ + + #include "png.h" + ++#ifdef HAVE_LIBZ ++#include "zlib.h" ++#endif ++ + /* ----------------Set defaults for read/write options ----------------- */ + /* strip 16 bpp --> 8 bpp on reading png; default is for stripping */ + static l_int32 var_PNG_STRIP_16_TO_8 = 1; _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
