# $Id: Portfile 92325 2012-04-25 04:14:26Z ram@macports.org $

PortSystem       1.0

name             autoconf
epoch            1
version          2.69
categories       devel
# the license is GPL-3+ with an exception:
# http://www.gnu.org/licenses/autoconf-exception.html
license          {Autoconf GPL-3+}
installs_libs    no
maintainers      ram openmaintainer
platforms        darwin
supported_archs  noarch

description      Automatically configures software for compilation
long_description \
  Autoconf is an extensible package of m4 macros that produce shell \
  scripts to automatically configure software source code packages. \
  These scripts can adapt the packages to many kinds of UNIX-like \
  systems without manual user intervention. Autoconf creates a \
  configuration script for a package from a template file that lists \
  the operating system features that the package can use, in the form \
  of m4 macro calls.

homepage         http://www.gnu.org/software/autoconf/
master_sites     gnu
use_xz           yes

checksums        rmd160 666aa45a58e856968c651e2a3b44be38de9c14e4 \
                 sha256 64ebcec9f8ac5b2487125a86a7760d2591ac9e1d3dbd59489633f9de62a57684

depends_lib      port:perl5 \
                 port:m4 \
                 port:help2man

# If libtool is eventually installed, it will provide glibtoolize (not libtoolize)
post-patch {
  reinplace "s|'libtoolize'|'glibtoolize'|" ${worksrcpath}/bin/autoreconf.in
}

configure.perl   ${prefix}/bin/perl

test.run         yes
test.target      check

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