# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           github 1.0
PortGroup           makefile 1.0

name                terminal-image-viewer
github.setup        stefanhaustein TerminalImageViewer 1.2.1 v
revision            0
categories          graphics
license             Apache-2
maintainers         nomaintainer

description         Display images in a terminal using block graphic characters
long_description    {*}${description}

checksums           rmd160  709ddd561133d29a3a4be5d17758bb7654cd5b61 \
                    sha256  08d0c30e3ffa47b69d1bce07bea56f04b7deb4a8a79307ce435a4f0852fbcd5f \
                    size    537635
github.tarball_from archive

installs_libs       no

# https://github.com/stefanhaustein/TerminalImageViewer/issues/149
patchfiles          patch-fix-install.diff

worksrcdir          ${worksrcpath}/src

depends_run-append  port:GraphicsMagick

compiler.blacklist-append \
                    *gcc-4.* {clang < 1300}
# compiler.cxx_standard   2017

notes "
Modern terminal like contour, mlterm(-minimal) is recommended for better experience.
"
