pkgsrc/mk/automake.mk
wiz 8b816e0fa9 Support the automake17 package, and for now,
default to it until all packages have been fixed.
2003-12-12 19:06:34 +00:00

41 lines
1.3 KiB
Makefile

# $NetBSD: automake.mk,v 1.6 2003/12/12 19:06:34 wiz 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.58 otherwise.
#
.if !defined(AUTOMAKE_MK)
AUTOMAKE_MK= # defined
# minimal required version
AUTOMAKE_REQD?= 1.7
.if !empty(AUTOMAKE_REQD:M1.4*)
BUILD_DEPENDS+= automake14>=${AUTOMAKE_REQD}:../../devel/automake14
_AUTOMAKE_API_VERSION= 1.4
AUTOCONF_REQD?= 2.13
.elif !empty(AUTOMAKE_REQD:M1.7*)
BUILD_DEPENDS+= automake17>=${AUTOMAKE_REQD}:../../devel/automake17
_AUTOMAKE_API_VERSION= 1.7
AUTOCONF_REQD?= 2.54
.else
BUILD_DEPENDS+= automake>=${AUTOMAKE_REQD}:../../devel/automake
_AUTOMAKE_API_VERSION= 1.8
AUTOCONF_REQD?= 2.58
.endif
AUTOMAKE= ${LOCALBASE}/bin/automake-${_AUTOMAKE_API_VERSION}
ACLOCAL= ${LOCALBASE}/bin/aclocal-${_AUTOMAKE_API_VERSION}
.if defined(BUILD_USES_GETTEXT_M4)
BUILD_DEPENDS+= {gettext-0.10.35nb1,gettext-m4-[0-9]*}:../../devel/gettext-m4
.endif
.include "../mk/autoconf.mk"
.endif # AUTOMAKE_MK