# $Id: Portfile 67923 2010-05-21 16:45:01Z jmr@macports.org $

PortSystem 1.0

name		automake
version		1.11.1
categories	devel
maintainers	mww
description	the gnu automake utility for generating Makefile.in
platforms	darwin freebsd
long_description	Automake is a tool for automatically generating \
		Makefile.in files from files called Makefile.am. Each \
		Makefile.am is basically a series of make variable \
		definitions, with rules being thrown in occasionally. The \
		generated Makefile.in files are compliant with the GNU \
		Makefile standards.

homepage	http://www.gnu.org/software/automake/
master_sites	gnu
checksums           md5     c2972c4d9b3e29c03d5f2af86249876f \
                    sha1    44ab0007d8edbe82338e29bdda2f461f43a98818 \
                    rmd160  0d160a06a022b145095c6433c3f0511ec5a8c6fd
use_bzip2	yes

depends_build	port:autoconf
depends_lib	path:bin/perl:perl5

if {[info exists supported_archs]} {
    supported_archs noarch
} else {
    universal_variant no
}

configure.args	--infodir=${prefix}/share/info
configure.perl	${prefix}/bin/perl

test.run	yes
test.target	check

post-destroot	{
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog ChangeLog.00 \
		ChangeLog.01 ChangeLog.02 ChangeLog.03 ChangeLog.04 ChangeLog.96 \
		ChangeLog.98 INSTALL NEWS README TODO THANKS \
		${destroot}${prefix}/share/doc/${name}
}

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

