aboutsummaryrefslogtreecommitdiff
path: root/graphics/leptonica
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2012-06-01 05:26:28 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2012-06-01 05:26:28 +0000
commit2b74a89bc8342f0b9b737c37d87737caf7b0ea1e (patch)
treec04604583d8be53b3ed7f10975be828c731f87cb /graphics/leptonica
parent24315159daa0089f08acea4ba1b130fb6721ad5c (diff)
downloadports-2b74a89bc8342f0b9b737c37d87737caf7b0ea1e.tar.gz
ports-2b74a89bc8342f0b9b737c37d87737caf7b0ea1e.zip
Notes
Diffstat (limited to 'graphics/leptonica')
-rw-r--r--graphics/leptonica/Makefile3
-rw-r--r--graphics/leptonica/files/patch-pngio.c10
2 files changed, 12 insertions, 1 deletions
diff --git a/graphics/leptonica/Makefile b/graphics/leptonica/Makefile
index 5362f3b7c71a..3c479b51dcae 100644
--- a/graphics/leptonica/Makefile
+++ b/graphics/leptonica/Makefile
@@ -7,6 +7,7 @@
PORTNAME= leptonica
PORTVERSION= 1.68
+PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= GOOGLE_CODE
@@ -15,7 +16,7 @@ COMMENT= C library for efficient image processing and image analysis operations
LIB_DEPENDS= gif.5:${PORTSDIR}/graphics/giflib \
jpeg.11:${PORTSDIR}/graphics/jpeg \
- png.6:${PORTSDIR}/graphics/png \
+ png15:${PORTSDIR}/graphics/png \
tiff.4:${PORTSDIR}/graphics/tiff \
webp.2:${PORTSDIR}/graphics/webp
diff --git a/graphics/leptonica/files/patch-pngio.c b/graphics/leptonica/files/patch-pngio.c
new file mode 100644
index 000000000000..70c02ed57047
--- /dev/null
+++ b/graphics/leptonica/files/patch-pngio.c
@@ -0,0 +1,10 @@
+--- src/pngio.c.orig 2011-02-01 06:41:12.000000000 +0100
++++ src/pngio.c 2012-05-04 12:33:51.000000000 +0200
+@@ -107,6 +107,7 @@
+ /* --------------------------------------------*/
+
+ #include "png.h"
++#include "zlib.h"
+
+ /* ----------------Set defaults for read/write options ----------------- */
+ /* strip 16 bpp --> 8 bpp on reading png; default is for stripping */