pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/buildlink3 Suppress duplicate dependencies in the D...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e6aab5de6b1c
branches:  trunk
changeset: 466999:e6aab5de6b1c
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sun Jan 25 13:09:46 2004 +0000

description:
Suppress duplicate dependencies in the DEPENDS and BUILD_DEPENDS list
added by buildlink3.mk files if the dependencies are _exactly_ the same.

diffstat:

 mk/buildlink3/bsd.buildlink3.mk |  12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r b1c6aaab1634 -r e6aab5de6b1c mk/buildlink3/bsd.buildlink3.mk
--- a/mk/buildlink3/bsd.buildlink3.mk   Sun Jan 25 12:44:34 2004 +0000
+++ b/mk/buildlink3/bsd.buildlink3.mk   Sun Jan 25 13:09:46 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink3.mk,v 1.55 2004/01/25 12:43:24 jlam Exp $
+# $NetBSD: bsd.buildlink3.mk,v 1.56 2004/01/25 13:09:46 jlam Exp $
 #
 # An example package buildlink3.mk file:
 #
@@ -98,6 +98,9 @@
 .  endif
 .endfor
 
+DEPENDS?=      # empty
+BUILD_DEPENDS?=        # empty
+
 .for _pkg_ in ${_BLNK_DEPENDS}
 #
 # Add the proper dependency on each package pulled in by buildlink3.mk
@@ -117,9 +120,10 @@
 .  endif
 .  if defined(BUILDLINK_DEPENDS.${_pkg_}) && \
       defined(BUILDLINK_PKGSRCDIR.${_pkg_})
-.    for _depends_ in ${BUILDLINK_DEPENDS.${_pkg_}}
-${_BLNK_DEPMETHOD.${_pkg_}}+= \
-       ${_depends_}:${BUILDLINK_PKGSRCDIR.${_pkg_}}
+.    for _depend_ in ${BUILDLINK_DEPENDS.${_pkg_}}
+.      if empty(${_BLNK_DEPMETHOD.${_pkg_}}:M${_depend_}\:*)
+${_BLNK_DEPMETHOD.${_pkg_}}+=  ${_depend_}:${BUILDLINK_PKGSRCDIR.${_pkg_}}
+.      endif
 .    endfor
 .  endif
 .  if defined(BUILDLINK_RECOMMENDED.${_pkg_}) && \



Home | Main Index | Thread Index | Old Index