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

name                ocrad
version             0.29
revision            0
categories          graphics
maintainers         {@aeiouaeiouaeiouaeiouaeiouaeiou outlook.com:aeioudev} openmaintainer
license             GPL-3
description         ocrad is an optical character recognition program
long_description    GNU Ocrad is an OCR (Optical Character Recognition) \
                    program implemented as a filter and based on a feature \
                    extraction method. It reads a bitmap image in pbm \
                    format and produces text in byte (8-bit) or UTF-8 \
                    formats.

homepage            https://www.gnu.org/software/ocrad/ocrad.html
master_sites        gnu

checksums           rmd160  7f57c0f32c81076f636f0c12591fd33da72cdf5d \
                    sha256  11200cc6b0b7ba16884a72dccb58ef694f7aa26cd2b2041e555580f064d2d9e9 \
                    size    96519

depends_extract     bin:lzip:lzip

extract.suffix      .tar.lz
extract.cmd         lzip
extract.pre_args    "-dc"

depends_lib         port:libpng

configure.args      CC="${configure.cc}" \
                    CXX="${configure.cxx}" \
                    CPPFLAGS="${configure.cppflags}" \
                    CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
                    CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \
                    LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"

test.run            yes
test.target         check

destroot.target     install install-man
