# -*- 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
PortGroup active_variants 1.1
PortGroup compiler_blacklist_versions 1.0
github.setup ukoethe vigra 1-11-1 Version-
version [strsed ${github.version} {g/-/./}]
maintainers {gmail.com:benjamin.seppke @BSeppke}
description Generic Image Processing Library for C++
long_description VIGRA stands for \"Vision with Generic Algorithms\". \
It's a novel computer vision library that puts its \
main emphasis on customizable algorithms and data \
structures. By using template techniques similar to \
those in the C++ Standard Template Library, you can \
easily adapt any VIGRA component to the needs of your \
application, without thereby giving up execution speed.
homepage https://ukoethe.github.io/vigra/
checksums rmd160 21378c72a0702cbdd4de4d79c59f0587f6bcde8d \
sha256 b0cdf67e283d2b52e35a45cdcff44453b5b73a9b7d7a1ca84d6508107e49832f
# modify tests for existence of c++11 std::unique_ptr
# see https://github.com/ukoethe/vigra/pull/421
patchfiles-append patch-uniq_ptr.diff
# see https://trac.macports.org/ticket/54548
patchfiles-append patch-template.diff
# see https://github.com/ukoethe/vigra/pull/451/commits/a6fa62663c6a6b752ed0707e95f643e25867a0f9
patchfiles-append patch-python.diff
# allow cmake to find MacPorts boost_python library
patchfiles-append patch-boost_python.diff
reinplace "s|@DOCDIR@|${prefix}/share/doc/${name}|g" ${worksrcpath}/config/vigra-config.in
# Some additional parameters for cmake. All other params have already been set
configure.args-append -DWITH_OPENEXR=ON \
# recursive template instantiation exceeded maximum depth of 128
configure.cxxflags-append -ftemplate-depth-1024