# $OpenBSD: Makefile,v 1.1.1.1 2008/08/19 23:52:19 espie Exp $

COMMENT =	automatically configure source code on many Un*x platforms

DISTNAME =	autoconf-2.62
PKGNAME =	${DISTNAME}
CATEGORIES =	devel
MASTER_SITES =	${MASTER_SITE_GNU:=autoconf/}

HOMEPAGE =	http://www.gnu.org/software/autoconf/
MAINTAINER =	Marc Espie <espie@openbsd.org>

# GPL
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP =	Yes
PERMIT_PACKAGE_CDROM =	Yes
PERMIT_PACKAGE_FTP =	Yes

BUILD_DEPENDS =		:help2man-*:devel/help2man
RUN_DEPENDS =		::devel/metaauto

SUFFIX =		-2.62
CONFIGURE_STYLE =	gnu
CONFIGURE_ARGS +=	--program-suffix=${SUFFIX} \
			--without-lispdir \
			--mandir=${PREFIX}/man \
			--infodir=${PREFIX}/info
CONFIGURE_ENV +=	M4="/usr/bin/m4"
CONFIGURE_ENV +=	AWK="${AWK}" ac_cv_sh_n_works=yes
MODGNU_CONFIG_GUESS_DIRS =${WRKSRC}/build-aux
MAKE_FLAGS =		pkgdatadir=${PREFIX}/share/autoconf${SUFFIX} EMACS=no
FAKE_FLAGS =		lispdir= EMACS=no
#USE_GMAKE =		Yes
SUBST_VARS =		SUFFIX
REGRESS_DEPENDS =	::devel/automake/1.9
REGRESS_FLAGS +=	AUTOMAKE_VERSION=1.9

.include <bsd.port.mk>
