# $Id: Portfile,v 1.10 2006/04/16 09:00:17 mww Exp $

PortSystem 1.0

name			autogen
version			5.8.4
categories		devel
platforms		darwin
maintainers		mww@opendarwin.org
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
checksums		sha1 09c513d065c6e674b8e3a32e8769b579a33b4e6b
use_bzip2		yes

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

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

test.run		no
test.target		check

platform darwin 8 {
	configure.env	CC=/usr/bin/gcc-4.0 CXX=/usr/bin/g++-4.0 \
		CPP=/usr/bin/cpp-4.0 CPPFLAGS="-D_WINT_T"
}

platform darwin 6 {
	pre-build {
		reinplace "s|define HAVE_SYS_SIGLIST 1|undef HAVE_SYS_SIGLIST|g" \
			${worksrcpath}/config.h
	}
}

