diff options
author | dillo <dillo> | 2002-10-02 18:10:15 +0000 |
---|---|---|
committer | dillo <dillo> | 2002-10-02 18:10:15 +0000 |
commit | 2f30422a3c31cafdb45545c8c806c82a85cb19ca (patch) | |
tree | 0abd86344edecbc04108dad19b551763b72081d2 /mk/autoconf.mk | |
parent | b4c4a3ea108bb7b9d326ca239934fa49aae42d8c (diff) | |
download | pkgsrc-2f30422a3c31cafdb45545c8c806c82a85cb19ca.tar.gz |
add makefile fragments for packages that need automake / autoconf to build.
Diffstat (limited to 'mk/autoconf.mk')
-rw-r--r-- | mk/autoconf.mk | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/mk/autoconf.mk b/mk/autoconf.mk new file mode 100644 index 00000000000..eb875d68fed --- /dev/null +++ b/mk/autoconf.mk @@ -0,0 +1,27 @@ +# $NetBSD: autoconf.mk,v 1.1 2002/10/02 18:10:15 dillo Exp $ +# +# makefile fragment for packages that use autoconf +# AUTOCONF_REQD can be set to the minimum version required. +# It adds a build dependency on the appropriate autoconf package +# and sets the following variables: +# AUTOCONF: autoconf binary to use +# AUTOHEADER; autoheader binary to use +# + +.if !defined(AUTOCONF_MK) +AUTOCONF_MK= # defined + +# minimal required version +AUTOCONF_REQD?= 2.50 + +.if ${AUTOCONF_REQD:M2.1[0-9]*} == "" +BUILD_DEPENDS+= autoconf>=${AUTOCONF_REQD}:../../devel/autoconf-devel +AUTOCONF= ${LOCALBASE}/bin/autoconf +AUTOHEADER= ${LOCALBASE}/bin/autoheader +.else +BUILD_DEPENDS+= autoconf>=${AUTOCONF_REQD}:../../devel/autoconf +AUTOCONF= ${LOCALBASE}/bin/autoconf +AUTOHEADER= ${LOCALBASE}/bin/autoheader +.endif + +.endif # AUTOCONF_MK |