# -*- 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 85246 2011-10-12 04:09:41Z ryandesign@macports.org $

PortSystem          1.0

name                ocropus
hg.tag              62bdc7b8be62
version             0.4-${hg.tag}
categories          textproc
maintainers         nomaintainer
platforms           darwin

description         The OCRopus open source document analysis and OCR system

long_description    OCRopus is a state-of-the-art document analysis and OCR \
                    system, featuring pluggable layout analysis, pluggable \
                    character recognition, statistical natural language \
                    modeling, and multi-lingual capabilities.

fetch.type          hg
hg.url              https://code.google.com/p/ocropus.ocroold/

homepage            http://code.google.com/p/ocropus/

depends_build       port:scons

depends_lib         port:iulib \
                    port:sqlite3 \
                    port:giflib

patchfiles          patch-SConstruct.diff

post-patch {
    reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/SConstruct
}

use_configure       no

build.cmd           scons
build.target
build.args          prefix=${prefix} iulib=${prefix} omp=no

destroot.cmd        scons
destroot.args       ${build.args}
destroot.destdir    destdir=${destroot}
