diff options
author | jlam <jlam@pkgsrc.org> | 2005-04-28 03:01:11 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2005-04-28 03:01:11 +0000 |
commit | efc8bca44ceb090a858b31e2a177e2b90cf2b781 (patch) | |
tree | c6dcf6427b92bec2dbf7f999b008ac40a1f5a476 /mk/tools/autoconf.mk | |
parent | 9a3f61784815c055bf09e0ba11208a923d7d015c (diff) | |
download | pkgsrc-efc8bca44ceb090a858b31e2a177e2b90cf2b781.tar.gz |
Define TOOLS_DEPENDS.* to be the dependency that will be added, and
filter out dependencies that have already been added.
Diffstat (limited to 'mk/tools/autoconf.mk')
-rw-r--r-- | mk/tools/autoconf.mk | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/mk/tools/autoconf.mk b/mk/tools/autoconf.mk index 8c9f0ea4abb..6b31608466d 100644 --- a/mk/tools/autoconf.mk +++ b/mk/tools/autoconf.mk @@ -1,4 +1,4 @@ -# $NetBSD: autoconf.mk,v 1.3 2005/04/26 15:32:05 jlam Exp $ +# $NetBSD: autoconf.mk,v 1.4 2005/04/28 03:01:11 jlam Exp $ # # This Makefile fragment handles packages that use GNU autoconf. # @@ -55,7 +55,12 @@ _TOOLS_AUTOCONF_LINKS= # empty MAKEFLAGS+= TOOLS_IGNORE.autoconf= . else AUTOCONF_REQD?= 2.50 -BUILD_DEPENDS+= autoconf>=${AUTOCONF_REQD}:../../devel/autoconf + +TOOLS_DEPMETHOD.autoconf?= BUILD_DEPENDS +TOOLS_DEPENDS.autoconf?= autoconf>=${AUTOCONF_REQD}:../../devel/autoconf +. if empty(${TOOLS_DEPMETHOD.autoconf}:M${TOOLS_DEPENDS.autoconf}) +${TOOLS_DEPMETHOD.autoconf}+= ${TOOLS_DEPENDS.autoconf} +. endif _TOOLS_AUTOCONF_LINKS+= autoconf TOOLS_REAL_CMD.autoconf= ${LOCALBASE}/bin/autoconf @@ -92,7 +97,12 @@ AUTORECONF= ${TOOLS_CMD.autoreconf} MAKEFLAGS+= TOOLS_IGNORE.autoconf213= . else AUTOCONF_REQD?= 2.13 -BUILD_DEPENDS+= autoconf213>=${AUTOCONF_REQD}:../../devel/autoconf213 + +TOOLS_DEPMETHOD.autoconf213?= BUILD_DEPENDS +TOOLS_DEPENDS.autoconf213?= autoconf213>=${AUTOCONF_REQD}:../../devel/autoconf213 +. if empty(${TOOLS_DEPMETHOD.autoconf213}:M${TOOLS_DEPENDS.autoconf213}) +${TOOLS_DEPMETHOD.autoconf213}+= ${TOOLS_DEPENDS.autoconf213} +. endif _TOOLS_AUTOCONF_LINKS+= autoconf TOOLS_REAL_CMD.autoconf= ${LOCALBASE}/bin/autoconf-2.13 |