# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 102865 2013-02-09 19:16:59Z jeremyhu@macports.org $

PortSystem          1.0

name                leptonica
version             1.69
revision            5
categories          graphics science devel
license             BSD
platforms           darwin

maintainers         stromnov openmaintainer

description         Leptonica is a image processing and image analysis library.
long_description    ${description}

homepage            http://www.leptonica.com/
master_sites        googlecode

checksums           rmd160  1115048d67f6537bd41e1f7dabe81dd6d62bd44c \
                    sha256  178021f2bff504cc0e30bd91a0347a82bf726eca2778b68db4b44aaee3020b11

depends_lib         port:tiff \
                    port:zlib \
                    port:libpng \
                    port:jpeg \
                    port:giflib \
                    port:webp

patchfiles          patch-src-environ.h.diff

livecheck.type      regex
livecheck.url       http://www.leptonica.com/download.html
livecheck.regex     "leptonica-(\\d+(?:\\.\\d+)*)${extract.suffix}"
