# -*- 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                libnewt
version             0.52.19
categories          devel
platforms           darwin
maintainers         ryandesign openmaintainer
license             GPL-2

description         text-mode widget-based user interface library

long_description    Newt is a programming library for color text-mode, \
                    widget-based user interfaces. Newt can be used to add \
                    stacked windows, entry widgets, checkboxes, radio \
                    buttons, labels, plain text fields, scrollbars, etc., \
                    to text mode user interfaces.

homepage            https://fedorahosted.org/newt/
master_sites        https://fedorahosted.org/releases/n/e/newt/ \
                    gentoo

distname            newt-${version}

checksums           rmd160  aa914fde11f62086d3ed9f468ab3a5bc7623f6d4 \
                    sha256  08c0db56c21996af6a7cbab99491b774c6c09cef91cd9b03903c84634bff2e80

depends_lib         port:gettext \
                    port:popt \
                    port:tcl \
                    port:slang2

patchfiles          patch-Makefile.in.diff \
                    patch-configure.ac.diff

use_autoreconf      yes

# It can't find tclConfig.sh unless libdir is expanded
configure.args      --without-python \
                    --libdir=${prefix}/lib

# configure: WARNING: unrecognized options: --disable-dependency-tracking
# gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
universal_variant   no

livecheck.type      regex
livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     {newt-([0-9.]+)\.tar}