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

name                    dvtm
version                 0.15
revision                0
categories              sysutils
platforms               darwin
license                 MIT
maintainers             nomaintainer

description             Dynamic Virtual Terminal Manager

long_description        dvtm brings the concept of tiling window management, \
                        popularized by X11-window managers like dwm to the \
                        console. As a console window manager it tries to make \
                        it easy to work with multiple console based programs \
                        like vim, mutt, cmus or irssi.

homepage                https://www.brain-dump.org/projects/dvtm
master_sites            ${homepage}/

checksums               rmd160  f4222388098891433711020b2739e5756b7c2122 \
                        sha256  8f2015c05e2ad82f12ae4cf12b363d34f527a4bbc8c369667f239e4542e1e510 \
                        size    40511

depends_lib             port:ncurses

makefile.has_destdir    yes

build.pre_args-append   VERSION=${version}

use_parallel_build      no

platform darwin {
    configure.cflags-append -D_DARWIN_C_SOURCE
}

post-destroot {
    # dvtm terminfo files are already provided by ncurses,
    # so do not include them in the destroot
    delete ${destroot}${prefix}/share/terminfo
}
