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

name                libt3window
version             0.4.2
revision            0

homepage            https://os.ghalkes.nl/

description         \
    The ${name} library provides functions for manipulating the terminal and \
    for creating \(possibly overlapping\) windows on a terminal.

long_description    \
    {*}${description} ${name} can be used instead of \(n\)curses for drawing \
    on the terminal. ${name} provides the following features: \(Overlapping\) \
    windows for drawing\; overlapping windows hide windows deeper in the \
    window stack\; clipping of windows to the size of the parent window\; \
    UTF-8 used internally, which is converted to the terminal encoding before \
    output. ${name} depends on libunistring for UTF-8 processing and \
    libtranscript for character set conversion. It provides easy access to \
    the most needed terminal functionality, and has a small code size.

categories          devel
installs_libs       no
license             GPL-3
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  283baf1a314ab0856479f04e97fa85152763f17e \
                    sha256  d5d3fbbed3f51fb5349e29f5bc98a3a7239f88aed18ecf97d21fb8b1a49f2012 \
                    size    96749

depends_build-append \
                    port:libtool \
                    path:bin/pkg-config:pkgconfig

depends_lib-append  port:libtranscript \
                    port:libunistring

master_sites        ${homepage}/dist/
distname            ${name}-${version}
use_bzip2           yes

configure.env-append \
                    LIBTOOL=${prefix}/bin/glibtool
configure.args-append \
                    --without-gettext

build.cmd-prepend   CC=${configure.cc}
