From 5e15133d7d293a1fca92fcd314162823d51d1fab Mon Sep 17 00:00:00 2001 From: dillo Date: Wed, 2 Oct 2002 18:10:15 +0000 Subject: add makefile fragments for packages that need automake / autoconf to build. --- mk/automake.mk | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 mk/automake.mk (limited to 'mk/automake.mk') diff --git a/mk/automake.mk b/mk/automake.mk new file mode 100644 index 00000000000..d64abd84f1a --- /dev/null +++ b/mk/automake.mk @@ -0,0 +1,34 @@ +# $NetBSD: automake.mk,v 1.1 2002/10/02 18:10:16 dillo Exp $ +# +# makefile fragment for packages that use automake +# AUTOMAKE_REQD can be set to the minimum version required. +# It adds a build dependency on the appropriate automake and autoconf +# packages and sets the following variables: +# AUTOMAKE: automake binary to use +# ACLOCAL: aclocal binary to use +# autoconf required version will default to 2.13 if automake 1.4* is used, +# and to 2.50 otherwise. +# + +.if !defined(AUTOMAKE_MK) +AUTOMAKE_MK= # defined + +# minimal required version +AUTOMAKE_REQD?= 1.7 + +.if ${AUTOMAKE_REQD:M1.4*} == "" +BUILD_DEPENDS+= automake>=${AUTOMAKE_REQD}:../../devel/automake-devel +_AUTOMAKE_API_VERSION= 1.7 +AUTOCONF_REQD?= 2.50 +.else +BUILD_DEPENDS+= automake>=${AUTOMAKE_REQD}:../../devel/automake +_AUTOMAKE_API_VERSION= 1.4 +AUTOCONF_REQD?= 2.13 +.endif + +AUTOMAKE= ${LOCALBASE}/bin/automake-${_AUTOMAKE_API_VERSION} +ACLOCAL= ${LOCALBASE}/bin/aclocal-${_AUTOMAKE_API_VERSION} +#AUTOMAKE_SHAREPATH= ${LOCALBASE}/share/automake-${_AUTOMAKE_API_VERSION} + +.include "../../mk/autoconf.mk" +.endif # AUTOMAKE_MK -- cgit v1.2.3