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

PortSystem          1.0

name                olena
version             2.0
revision            1
categories          devel framework graphics science
platforms           darwin
license             GPL-2
maintainers         lrde.epita.fr:olena
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            http://olena.lrde.epita.fr
master_sites        http://www.lrde.epita.fr/dload/olena/

checksums           md5     b5c28d5f9e184bbefb50757115fa6551 \
                    sha1    d3a829fa56bff4edbca58af0c9a39c9569820c60 \
                    rmd160  276abd7a2af6e7627aa1ab91df0ea7fd11a713ef

depends_lib         port:GraphicsMagick \
                    port:tiff

configure.args      --with-imagemagickxx=no
# code violates aliasing rules
configure.cxxflags-append -fno-strict-aliasing

variant scribo description {Add a DIA framework} {
    depends_lib-append port:tesseract \
                       port:qt4-mac   \
                       port:libxslt

    depends_run-append port:fop

    configure.args-append --enable-scribo
}

variant swilena description {Add Python bindings} {
    configure.args-append --enable-swilena
}

default_variants    +scribo