# $Id$

PortSystem 1.0

name		automake17
version		1.7.9
revision	2
categories	devel
license		GPL-2+
maintainers	gmail.com:springer.jonathan
description	the gnu automake utility for generating Makefile.in
platforms	darwin freebsd
supported_archs	noarch
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. This is the compatibility version 1.7.x.

homepage	http://www.gnu.org/software/automake/
master_sites	gnu:automake
distname	automake-${version}
checksums	sha1 da96734fa972a22cfbc4118dcd222871272e4d96
use_bzip2	yes

patchfiles	patch-Makefile.in

depends_build	port:autoconf
depends_lib	bin:perl:perl5

post-extract {
	file rename ${worksrcpath}/automake.info ${worksrcpath}/automake-1.7.info
}

configure.args	--program-suffix=-17 \
				--infodir=${prefix}/share/info

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.96 ChangeLog.98 INSTALL NEWS \
		README TODO THANKS ${destroot}${prefix}/share/doc/${name}
}