summaryrefslogtreecommitdiff
path: root/graphics/xpm
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-01-24 03:12:31 +0000
committerjlam <jlam@pkgsrc.org>2004-01-24 03:12:31 +0000
commit01a5abff019d79930d9efe12799eb86c320e2823 (patch)
tree87be9214184c092f2ec79af859f23d7bdb2d2640 /graphics/xpm
parent5b6314b93388a60a79434d7c074d8587a9c3326a (diff)
downloadpkgsrc-01a5abff019d79930d9efe12799eb86c320e2823.tar.gz
Support BUILDLINK_DEPENDS.<pkg> being a list of values.
Diffstat (limited to 'graphics/xpm')
-rw-r--r--graphics/xpm/buildlink3.mk12
1 files changed, 8 insertions, 4 deletions
diff --git a/graphics/xpm/buildlink3.mk b/graphics/xpm/buildlink3.mk
index aa1f657842f..4a38458f9d2 100644
--- a/graphics/xpm/buildlink3.mk
+++ b/graphics/xpm/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.12 2004/01/24 01:51:07 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.13 2004/01/24 03:12:32 jlam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
XPM_BUILDLINK3_MK:= ${XPM_BUILDLINK3_MK}+
@@ -7,7 +7,7 @@ XPM_BUILDLINK3_MK:= ${XPM_BUILDLINK3_MK}+
.if !empty(XPM_BUILDLINK3_MK:M+)
BUILDLINK_PACKAGES+= xpm
-BUILDLINK_DEPENDS.xpm?= xpm>=3.4k
+BUILDLINK_DEPENDS.xpm+= xpm>=3.4k
BUILDLINK_PKGSRCDIR.xpm?= ../../graphics/xpm
.endif # XPM_BUILDLINK3_MK
@@ -64,13 +64,17 @@ _XPM_PATCH!= \
${AWK} 'BEGIN { split("abcdefghijklmnopqrstuvwxyz", alpha, "") } /\#define[ ]*XpmRevision/ { print alpha[$$3] }' ${_X11_XPM_H}
_XPM_VERSION= ${_XPM_MAJOR}${_XPM_MINOR}${_XPM_PATCH}
_XPM_PKG= xpm-${_XPM_VERSION}
-_XPM_DEPENDS= ${BUILDLINK_DEPENDS.xpm}
+BUILDLINK_USE_BUILTIN.xpm?= YES
+. for _depend_ in ${BUILDLINK_DEPENDS.xpm}
+. if !empty(BUILDLINK_USE_BUILTIN.xpm:M[yY][eE][sS])
BUILDLINK_USE_BUILTIN.xpm!= \
- if ${PKG_ADMIN} pmatch '${_XPM_DEPENDS}' ${_XPM_PKG}; then \
+ if ${PKG_ADMIN} pmatch '${_depend_}' ${_XPM_PKG}; then \
${ECHO} "YES"; \
else \
${ECHO} "NO"; \
fi
+. endif
+. endfor
. endif
MAKEFLAGS+= BUILDLINK_USE_BUILTIN.xpm="${BUILDLINK_USE_BUILTIN.xpm}"
.endif # BUILDLINK_USE_BUILTIN.xpm