# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
# vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem        1.0

name              vexus-cdk
version           4.9.13
revision          1
categories        devel
maintainers       nomaintainer
description       Curses Development Kit -- widgets for curses
long_description  \
     CDK is a C based curses widget library. CDK sits on top of the curses  \
     library and provides 21 ready to use widgets for rapid application     \
     development of text based interfaces. CDK delivers many of the common  \
     widget types required for a robust interface. Widgets can be combined  \
     to create complex widgets if needed. CDK significantly reduces the     \
     development time of text based application interfaces.

homepage          http://www.vexus.ca/products/CDK/
platforms         darwin
master_sites      ${homepage}
distfiles         cdk.tar.gz
dist_subdir       ${name}/${version}
checksums \
    md5 dea61345f17ee4d7aa1f2e50d248696a            \
    sha1 6259f67e03f2f790f78e638984e90a0b736f1a04   \
    rmd160 f2d4470d4b0f212a73c55506a678b265033521d3

depends_lib       port:ncurses

livecheck.type    md5
livecheck.url     ${homepage}/${distfiles}
livecheck.md5     dea61345f17ee4d7aa1f2e50d248696a

worksrcdir        cdk-${version}

pre-configure {
    delete ${worksrcpath}/config.cache
}
configure.cflags-append -I${prefix}/include/ncurses

build.target

# Stupid stupid stupid -- Makefile.in assumes the man dir is the final
# directory where all man pages should go, so we have to specify the
# directory manually. Thankfully, every manpage CDK has is in the
# development section, so we can just cop out here and install
# directly.
destroot.destdir \
    INSTALL_DIR=${destroot}${prefix} \
    MAN_DIR=${destroot}${prefix}/share/man/man3
