# -*- 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
PortGroup           cmake 1.1
PortGroup           github 1.0
PortGroup           legacysupport 1.1

# clock_gettime
legacysupport.newest_darwin_requires_legacy 15

github.setup        stevenlovegrove Pangolin 0.8 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0
categories          graphics
license             MIT
maintainers         {@ierofant gmail.com:aw.kornilov} openmaintainer

description         Pangolin is a lightweight portable rapid development library for managing OpenGL display
long_description    Pangolin is a lightweight portable rapid development library for managing OpenGL display, \
                    interaction and abstracting video input. At its heart is a simple OpenGl viewport manager \
                    which can help to modularise 3D visualisation without adding to its complexity, \
                    and offers an advanced but intuitive 3D navigation handler. \
                    Pangolin also provides a mechanism for manipulating program variables through config files \
                    and ui integration, and has a flexible real-time plotter for visualising graphical data.

depends_build-append \
                    port:eigen3 \
                    path:bin/pkg-config:pkgconfig

depends_lib-append  port:glew \
                    port:openexr2 \
                    port:libdc1394 \
                    port:zlib \
                    port:libpng \
                    path:include/turbojpeg.h:libjpeg-turbo \
                    port:tiff \
                    path:lib/libavcodec.dylib:ffmpeg

checksums           rmd160  fb486f558f007312c9201a5c327f35690cd7cbb3 \
                    sha256  efe6cc84897dc835fde7467fd09d6f309b152b2a46ca310c6a76e8201bb38824 \
                    size    694228

compiler.cxx_standard \
                    2017

configure.args      -DBUILD_PANGOLIN_GUI=OFF \
                    -DOpenEXR_INCLUDE_DIR=${prefix}/libexec/openexr2/include/OpenEXR \
                    -DOpenEXR_LIBRARY=${prefix}/libexec/openexr2/lib/libIlmImf.dylib
