summaryrefslogtreecommitdiff
path: root/mk/tools/autoconf.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2005-04-28 03:01:11 +0000
committerjlam <jlam@pkgsrc.org>2005-04-28 03:01:11 +0000
commitefc8bca44ceb090a858b31e2a177e2b90cf2b781 (patch)
treec6dcf6427b92bec2dbf7f999b008ac40a1f5a476 /mk/tools/autoconf.mk
parent9a3f61784815c055bf09e0ba11208a923d7d015c (diff)
downloadpkgsrc-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.mk16
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