1 # $NetBSD: automake.mk,v 1.7 2004/03/27 23:05:07 wiz Exp $
3 # makefile fragment for packages that use automake
4 # AUTOMAKE_REQD can be set to the minimum version required.
5 # It adds a build dependency on the appropriate automake and autoconf
6 # packages and sets the following variables:
7 # AUTOMAKE: automake binary to use
8 # ACLOCAL: aclocal binary to use
9 # autoconf required version will default to 2.13 if automake 1.4* is used,
10 # and to 2.58 otherwise.
13 .if !defined(AUTOMAKE_MK)
14 AUTOMAKE_MK= # defined
16 # minimal required version
19 .if !empty(AUTOMAKE_REQD:M1.4*)
20 BUILD_DEPENDS+= automake14>=${AUTOMAKE_REQD}:../../devel/automake14
21 _AUTOMAKE_API_VERSION= 1.4
24 BUILD_DEPENDS+= automake>=${AUTOMAKE_REQD}:../../devel/automake
25 _AUTOMAKE_API_VERSION= 1.9
29 AUTOMAKE= ${LOCALBASE}/bin/automake-${_AUTOMAKE_API_VERSION}
30 ACLOCAL= ${LOCALBASE}/bin/aclocal-${_AUTOMAKE_API_VERSION}
32 .if defined(BUILD_USES_GETTEXT_M4)
33 BUILD_DEPENDS+= {gettext-0.10.35nb1,gettext-m4-[0-9]*}:../../devel/gettext-m4
36 .include "../mk/autoconf.mk"