# -*- 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
# $Id$

PortSystem          1.0

name                libvterm
set bzr_rev         679
set git_rev         04781d37ce5af3f580376dc721bd3b89c434966b
version             0.0.${bzr_rev}
categories          devel
platforms           darwin
maintainers         raimue \
                    openmaintainer
license             MIT

description         A library for a VT220/xterm/ECMA-48 terminal emulator
  
long_description \
    An abstract C99 library which implements a VT220 or xterm-like terminal \
    emulator. It doesn't use any particular graphics toolkit or output system, \
    instead it invokes callback function pointers that its embedding program \
    should provide it to draw on its behalf. It avoids calling malloc() during \
    normal running state, allowing it to be used in embedded kernel situations.

homepage            http://www.leonerd.org.uk/code/libvterm/

# fetch from github mirror as launchpad regenerates the tarball for every
# download with new checksums
master_sites        https://github.com/neovim/libvterm/archive/
distname            ${git_rev}
worksrcdir          ${name}-${git_rev}

checksums           rmd160  97d6212bb52b64cfb282c947e053e5e07418c790 \
                    sha256  3704b7e151579c12909d87f11b7f5dc99f8b02a1d2d32cd341becd5fba71c547

depends_build       port:libtool \
                    port:pkgconfig

use_configure no

build.args          PREFIX=${prefix}
build.env-append    CC=${configure.cc} \
                    CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
                    LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"

destroot.args       ${build.args}

# this port tracks development snapshots, there are no releases to follow
livecheck.type      none