# -*- 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

PortSystem          1.0

PortGroup           github  1.0

github.setup        DanBloomberg leptonica 1.87.0
github.tarball_from releases
revision            0

description         image processing and image analysis library
long_description    ${name} is an {*}${description}.

categories          graphics science devel
license             BSD

maintainers         {stromnov @stromnov} openmaintainer

checksums           rmd160  d94a571272ad3ecdd359d91cabc3d354f556bda7 \
                    sha256  c73363397f96eb1295602bf44d708a994ad42046c791bf03ea0505d829bdb6a7 \
                    size    14802808

depends_build-append \
                    port:pkgconfig

depends_lib-append  port:tiff \
                    port:zlib \
                    port:libpng \
                    path:include/turbojpeg.h:libjpeg-turbo \
                    port:openjpeg \
                    port:giflib5 \
                    port:webp

# stdatomic.h
compiler.blacklist-append {clang < 700}

use_autoreconf      yes

configure.args      --disable-silent-rules
configure.cflags-prepend \
                    -I${prefix}/include/giflib5
configure.cppflags-prepend \
                    -I${prefix}/include/giflib5
configure.ldflags-prepend \
                    -L${prefix}/lib/giflib5/lib

github.livecheck.regex {([0-9.]+)}
