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

codeberg.setup      ciberandy qiv 3.0.2 v
categories          graphics
license             GPL-2
maintainers         {lloyd.io:me @lloyd}

description         A very small and pretty fast gdk/Imlib image viewer

long_description    A very small and pretty fast gdk/Imlib image viewer \
                    for X.

homepage            http://spiegl.de/qiv/

checksums           rmd160  0b776a2cb0de3aac5a3a416c33f04e5de67a6745 \
                    sha256  c0887644d84b3680f73d56d5f4be0b3347d51fad7b41bd9736f75956d17efa89 \
                    size    141558

depends_build       port:pkgconfig

depends_lib         path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
                    port:lcms2 \
                    port:libexif \
                    port:libmagic

patchfiles          patch-Makefile.diff

post-patch {
    reinplace "s|@PREFIX@|${prefix}|" ${worksrcpath}/Makefile
}

use_configure       no

variant universal {}

build.args          CC="${configure.cc} [get_canonical_archflags cc]"

notes "
Install port webp-pixbuf-loader if you need qiv (and GDK Pixbuf) to
display WEBP image files.
"
