# -*- 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                autogen
version             5.18.4
revision            1
categories          devel
platforms           darwin
maintainers         mww openmaintainer
license             GPL-3
description         tool to simplify the creation and maintenance of programs
long_description    AutoGen is a tool designed to simplify the creation \
                    and maintenance of programs that contain large amounts \
                    of repetitious text. It is especially valuable in \
                    programs that have several blocks of text that must \
                    be kept synchronized.

homepage            http://autogen.sourceforge.net/
master_sites        sourceforge gnu:autogen/rel${version}
use_xz              yes

checksums           rmd160  df9e0fc5304ecaa4a15e4fce3fcd074205e00188 \
                    sha256  7fbaff0c25035aee5b96913de2c83d9a5cc973b8dc08d6b7489ecbcfd72eb84b

depends_build       port:pkgconfig

depends_lib         port:guile port:libiconv port:libxml2 port:zlib port:coreutils

# Don't accidentally create flat-namespace dylibs on Yosemite (#44596).
patchfiles          yosemite-libtool.patch

configure.args      --mandir=${prefix}/share/man \
                    --infodir=${prefix}/share/info

test.run            yes
test.target         check

platform darwin 8 {
    configure.cppflags-append "-D_WINT_T"
}

livecheck.type      regex
livecheck.url       http://ftp.gnu.org/gnu/${name}/?C=M&O=D
livecheck.regex     rel(\\d+(?:\\.\\d+)*)