# -*- 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            autoconf264
version         2.64
categories      devel
maintainers     nomaintainer
# there is an exception that basically means dependents don't have to be GPL
license         {Autoconf GPL-2+}
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.
platforms       any
supported_archs noarch
homepage        https://www.gnu.org/software/autoconf/
master_sites    gnu:autoconf
use_bzip2       yes
distname        autoconf-${version}
dist_subdir     autoconf

checksums       rmd160  cf498949b3cc0a6bc465a50114c98750871bcf49

depends_lib     path:bin/perl:perl5 \
                port:m4

# 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
configure.args  --program-suffix=264 \
                --datadir=${prefix}/share/${name}

post-destroot {
    delete ${destroot}${prefix}/share/emacs
    delete ${destroot}${prefix}/share/info
}

livecheck.type  none
