# -*- 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.4 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  b2afd2d9523206106874038db7c2088e9a4deda8 \
                    sha256  6a453e033f9dd50a3ac59e1f5c90efb92ba13f31b82a49e1d599b8ae7a292cea \
                    size    143169

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.
"
