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

codeberg.setup          nsxiv nsxiv 34 v
revision                0
categories              graphics x11
license                 GPL-2+
maintainers             {@commitmaniac} openmaintainer

description             New Suckless X image viewer
long_description        {*}${description}. ${name} is a fork of now unmaintained sxiv \
                        with the purpose of being a drop-in replacement, while adding \
                        and maintaining sensible features.

checksums               rmd160  4f152012e9d070c53442581c43e491b75d14ca0c \
                        sha256  b68356296130924d56abc0616756900c0fe75ac9932b9bb9bed3a349915b7320 \
                        size    78211

depends_lib-append      port:fontconfig \
                        port:freetype \
                        port:giflib \
                        port:imlib2 \
                        port:libexif \
                        port:Xft2 \
                        port:xorg-libX11

# getdelim, strnlen
legacysupport.newest_darwin_requires_legacy \
                        10

makefile.override-append \
                        PREFIX

build.args-append       HAVE_INOTIFY=0

post-destroot {
    xinstall -m 644 ${worksrcpath}/LICENSE ${destroot}${prefix}/share/doc/${name}
}
