summaryrefslogtreecommitdiff
path: root/x11/Xrender
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2005-07-09 04:36:42 +0000
committergrant <grant@pkgsrc.org>2005-07-09 04:36:42 +0000
commit9702906ad3ae10a7f044122ff6aaa931796f4bac (patch)
treee89ccf1d5690d1c3e071092692dd4e6f3eb19124 /x11/Xrender
parentc14e2de987202ba90f3e0e8a377499dd57e3d752 (diff)
downloadpkgsrc-9702906ad3ae10a7f044122ff6aaa931796f4bac.tar.gz
check variable is defined before testing its value.
Diffstat (limited to 'x11/Xrender')
-rw-r--r--x11/Xrender/builtin.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/x11/Xrender/builtin.mk b/x11/Xrender/builtin.mk
index e107e21c9bf..c59c88ac84c 100644
--- a/x11/Xrender/builtin.mk
+++ b/x11/Xrender/builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.11 2005/06/03 19:12:50 jlam Exp $
+# $NetBSD: builtin.mk,v 1.12 2005/07/09 04:36:42 grant Exp $
BUILTIN_PKG:= Xrender
@@ -44,7 +44,8 @@ _BLTN_XRENDER_0.8.XFree86= 4.2.99.* 4.3 4.3.[0-9] 4.3.[0-9].* \
_BLTN_XRENDER_0.8.xorg= 6.[7-9]* 6.[1-9][0-9]*
. for _version_ in ${_BLTN_XRENDER_VERSIONS}
. for _pattern_ in ${_BLTN_XRENDER_${_version_}.${BUILTIN_X11_TYPE.${X11_TYPE}}}
-. if !empty(BUILTIN_X11_VERSION.${X11_TYPE}:M${_pattern_})
+. if defined(BUILTIN_X11_VERSION.${X11_TYPE}) && \
+ !empty(BUILTIN_X11_VERSION.${X11_TYPE}:M${_pattern_})
BUILTIN_VERSION.Xrender?= ${_version_}
. endif
. endfor