# -*- 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                tecla
version             1.6.3
categories          devel
platforms           darwin
license             X11
maintainers         {michaelld @michaelld} openmaintainer

description         The tecla library provides UNIX and LINUX programs with interactive command line editing facilities, similar to those of the unix tcsh shell.
long_description    {*}${description} In addition to simple command-line editing, it supports recall of previously entered command lines, TAB completion of file names, and in-line wild-card expansion of filenames.  The internal functions which perform file-name completion and wild-card expansion are also available externally for optional use by programs, along with a module for tab-completion and lookup of filenames in a list of directories.

homepage            https://www.astro.caltech.edu/~mcs/tecla/

worksrcdir          lib${name}
distname            ${worksrcdir}-${version}
master_sites        ${homepage}

checksums           rmd160 3fc76778c69fe09c17e9a6bb3422ecbefd0a021d \
                    sha256 f2757cc55040859fcf8f59a0b7b26e0184a22bece44ed9568a4534a478c1ee1a

depends_lib-append  port:ncurses

use_parallel_build  no

patchfiles-append   patch-Makefile.in.diff \
                    patch-fix_ioctl_header_enhence.c.diff \
                    patch-config.sub.diff \
                    patch-config.guess.diff

# remove top-level include path, such that internal headers are used
# instead of any already-installed ones.

configure.cppflags-delete -I${prefix}/include

# remove top-level library path, such that internal libraries are used
# instead of any already-installed ones.

configure.ldflags-delete -L${prefix}/lib

build.target        default

livecheck.type      regex
livecheck.regex     is version (\[0-9.\]*). This may
