diff options
author | grant <grant> | 2005-07-09 04:36:42 +0000 |
---|---|---|
committer | grant <grant> | 2005-07-09 04:36:42 +0000 |
commit | 62563af582ebe17473d301b00674664f419905a8 (patch) | |
tree | e89ccf1d5690d1c3e071092692dd4e6f3eb19124 /x11/Xrender/builtin.mk | |
parent | ef6e15894a1eabf8f8dd484872c608c1053038fe (diff) | |
download | pkgsrc-62563af582ebe17473d301b00674664f419905a8.tar.gz |
check variable is defined before testing its value.
Diffstat (limited to 'x11/Xrender/builtin.mk')
-rw-r--r-- | x11/Xrender/builtin.mk | 5 |
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 |