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

# getline
legacysupport.newest_darwin_requires_legacy 10

github.setup        muennich sxiv 26 v

categories          graphics x11
maintainers         gmail.com:gnubeest \
                    openmaintainer

description         Simple X Image Viewer
long_description    sxiv is an alternative to feh and qiv. Its only \
    dependencies besides xlib are imlib2, libexif and giflib. The primary \
    goal for writing sxiv is to create an image viewer, which only has the \
    most basic features required for fast image viewing (the ones I want). \
    It has vi key bindings and works nicely with tiling window managers. Its \
    code base should be kept small and clean to make it easy for you to dig \
    into it and customize it for your needs.

license             GPL-2

checksums           rmd160  b46c5916c568cbd455695be201e99ed0a22a87fd \
                    sha256  a382ad57734243818e828ba161fc0357b48d8f3a7f8c29cac183492b46b58949 \
                    size    48569
github.tarball_from archive

patchfiles-append   patch-Makefile.diff

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

compiler.c_standard 1999

makefile.override-append \
                    PREFIX

build.args          AUTORELOAD=nop \
                    V=1

destroot.args       {*}${build.args}