From 099d7836afe20af9f596bbf930f39bbb4ff03fd0 Mon Sep 17 00:00:00 2001 From: jlam <jlam@pkgsrc.org> Date: Tue, 24 Sep 2002 10:41:25 +0000 Subject: Allow passing multiple items to BUILDLINK_DEPENDS.<pkg>. So, if we have BUILDLINK_DEPENDS.foo= foo>=1.0 foo<1.5 then this is converted to: DEPENDS+= foo>=1.0:../../category/foo DEPENDS+= foo<1.5:../../category/foo We can use this to record upper bounds on dependency versions. --- mk/buildlink2/bsd.buildlink2.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mk/buildlink2') diff --git a/mk/buildlink2/bsd.buildlink2.mk b/mk/buildlink2/bsd.buildlink2.mk index af73bd6b4e7..d693c4f44fc 100644 --- a/mk/buildlink2/bsd.buildlink2.mk +++ b/mk/buildlink2/bsd.buildlink2.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.buildlink2.mk,v 1.29 2002/09/23 22:32:07 jlam Exp $ +# $NetBSD: bsd.buildlink2.mk,v 1.30 2002/09/24 10:41:25 jlam Exp $ # # An example package buildlink2.mk file: # @@ -83,8 +83,10 @@ _BUILDLINK_DEPMETHOD.${_pkg_}= BUILD_DEPENDS . endif . if defined(BUILDLINK_DEPENDS.${_pkg_}) && \ defined(BUILDLINK_PKGSRCDIR.${_pkg_}) +. for _depends_ in ${BUILDLINK_DEPENDS.${_pkg_}} ${_BUILDLINK_DEPMETHOD.${_pkg_}}+= \ - ${BUILDLINK_DEPENDS.${_pkg_}}:${BUILDLINK_PKGSRCDIR.${_pkg_}} + ${_depends_}:${BUILDLINK_PKGSRCDIR.${_pkg_}} +. endfor . endif .endfor -- cgit v1.2.3