diff options
author | jlam <jlam@pkgsrc.org> | 2002-09-24 10:41:25 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2002-09-24 10:41:25 +0000 |
commit | 099d7836afe20af9f596bbf930f39bbb4ff03fd0 (patch) | |
tree | 0d687d15d0b8e69bc77aa749ca4d352dbd01cc39 /mk | |
parent | ee0f22a270de39221ee01913ea9df5f6c0f1ac2e (diff) | |
download | pkgsrc-099d7836afe20af9f596bbf930f39bbb4ff03fd0.tar.gz |
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.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/buildlink2/bsd.buildlink2.mk | 6 |
1 files changed, 4 insertions, 2 deletions
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 |