diff options
author | jlam <jlam@pkgsrc.org> | 2004-01-24 03:12:31 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-01-24 03:12:31 +0000 |
commit | 01a5abff019d79930d9efe12799eb86c320e2823 (patch) | |
tree | 87be9214184c092f2ec79af859f23d7bdb2d2640 /devel/ncurses | |
parent | 5b6314b93388a60a79434d7c074d8587a9c3326a (diff) | |
download | pkgsrc-01a5abff019d79930d9efe12799eb86c320e2823.tar.gz |
Support BUILDLINK_DEPENDS.<pkg> being a list of values.
Diffstat (limited to 'devel/ncurses')
-rw-r--r-- | devel/ncurses/buildlink3.mk | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/devel/ncurses/buildlink3.mk b/devel/ncurses/buildlink3.mk index 4ebebd9bcd2..f7ef5fdab0b 100644 --- a/devel/ncurses/buildlink3.mk +++ b/devel/ncurses/buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink3.mk,v 1.9 2004/01/21 04:28:06 jlam Exp $ +# $NetBSD: buildlink3.mk,v 1.10 2004/01/24 03:12:32 jlam Exp $ BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ NCURSES_BUILDLINK3_MK:= ${NCURSES_BUILDLINK3_MK}+ @@ -7,7 +7,7 @@ NCURSES_BUILDLINK3_MK:= ${NCURSES_BUILDLINK3_MK}+ .if !empty(NCURSES_BUILDLINK3_MK:M+) BUILDLINK_PACKAGES+= ncurses -BUILDLINK_DEPENDS.ncurses?= ncurses>=5.0 +BUILDLINK_DEPENDS.ncurses+= ncurses>=5.0 BUILDLINK_PKGSRCDIR.ncurses?= ../../devel/ncurses .endif # NCURSES_BUILDLINK3_MK @@ -89,13 +89,17 @@ _NCURSES_VERSION!= \ } \ ' ${_NCURSES_H} _NCURSES_PKG= ncurses-${_NCURSES_VERSION} -_NCURSES_DEPENDS= ${BUILDLINK_DEPENDS.ncurses} +BUILDLINK_USE_BUILTIN.ncurses?= YES +. for _depend_ in ${BUILDLINK_DEPENDS.ncurses} +. if !empty(BUILDLINK_USE_BUILTIN.ncurses:M[yY][eE][sS]) BUILDLINK_USE_BUILTIN.ncurses!= \ - if ${PKG_ADMIN} pmatch '${_NCURSES_DEPENDS}' ${_NCURSES_PKG}; then \ + if ${PKG_ADMIN} pmatch '${_depend_}' ${_NCURSES_PKG}; then \ ${ECHO} "YES"; \ else \ ${ECHO} "NO"; \ fi +. endif +. endfor . endif MAKEFLAGS+= \ BUILDLINK_USE_BUILTIN.ncurses="${BUILDLINK_USE_BUILTIN.ncurses}" |