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

PortSystem                    1.0
PortGroup               qt4   1.0
PortGroup               boost 1.0

name                    olena
version                 2.1
revision                2
categories              devel framework graphics science
platforms               darwin
license                 GPL-2
maintainers             {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
description             Software platform for efficient and generic image processing
long_description        It is composed of a Generic and efficient C++ image \
		                processing library, a framework for Document Image \
		                Analysis and Python bindings.
homepage                https://www.lrde.epita.fr/wiki/Olena

master_sites            https://www.lrde.epita.fr/dload/olena/${version}

checksums               rmd160  19f737476f6c0ec5681277409b5c70f8eba3eda2 \
                        sha256  c5b0512c989269e82223d9617da64659c243dd3cfbd9bce548d6e39a28b3df73 \
                        size    51720766

patchfiles-append       patch-gdcm_libs.diff

boost.version           1.71

depends_build-append    path:bin/dot:graphviz \
                        port:swig \
                        port:swig-python

depends_lib-append      port:cfitsio \
                        port:fftw-3 \
                        port:gdcm2 \
                        port:GraphicsMagick \
                        path:lib/pkgconfig/poppler.pc:poppler \
                        port:python27 \
                        port:tesseract \
                        port:tiff

depends_run-append      port:fop

configure.args-append   --disable-silent-rules \
                        --enable-swilena \
                        --enable-scribo \
                        --enable-apps \
                        --enable-tools

# use GraphicsMagick instead of ImageMagick
configure.args-append   --with-imagemagickxx=no

configure.env-append    PYTHON=${prefix}/bin/python2.7

# required by tesseract
compiler.cxx_standard   2011
configure.cxxflags-append -std=c++11

livecheck.url           https://www.lrde.epita.fr/dload/olena
livecheck.regex         (\[0-9.\]+)/
