# -*- 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           github 1.0

github.setup        phillipberndt pqiv 2.12
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball

checksums           rmd160  9c920f29d85988c27342b02018fa676a9395282a \
                    sha256  9c6109da3e5bd360ac93a751445f8b77fcf52e32f3032d2473e6e62824153e14 \
                    size    141966

categories          graphics
maintainers         nomaintainer
license             GPL-3

description         A powerful GTK 3 based command-line image viewer \
                    with a minimal UI

long_description    A powerful GTK 3 based command-line image viewer \
                    with a minimal UI. It is highly customizable, can \
                    be fully controlled from scripts, and has support \
                    for various file formats including PDF, \
                    Postscript, video files and archives. It is \
                    optimized to be quick and responsive. \
                    \
                    It comes with support for animations, slideshows, \
                    transparency, VIM-like key bindings, automated \
                    loading of new images as they appear, external \
                    image filters, marks, image preloading, and much \
                    more. \
                    \
                    pqiv started as a Python rewrite of qiv avoiding \
                    imlib, but evolved into a much more powerful tool. \
                    Today, pqiv stands for powerful quick image viewer.

# pqiv.c: error: #pragma GCC diagnostic not allowed inside functions
if {[string match *gcc-4.* ${configure.compiler}]} {
    patchfiles-append \
                    patch-gcc-4.diff
}

depends_build-append \
                    port:pkgconfig

depends_lib-append  path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    path:lib/pkgconfig/cairo.pc:cairo
