diff options
author | grant <grant> | 2005-07-09 03:14:36 +0000 |
---|---|---|
committer | grant <grant> | 2005-07-09 03:14:36 +0000 |
commit | 28e30cc34ef169fa384ae3cb03f2ba5a8ff1c587 (patch) | |
tree | b1b3c2e093a6d5db771d93cf757ad2eef401f9f5 /x11 | |
parent | d1f812bb568a67a3a479807344eca24db3ba2219 (diff) | |
download | pkgsrc-28e30cc34ef169fa384ae3cb03f2ba5a8ff1c587.tar.gz |
check variable is defined before testing its value. fixes malformed
conditional problem noted by Jake Maciejewski on tech-pkg@
Diffstat (limited to 'x11')
-rw-r--r-- | x11/Xrandr-mixedcase/builtin.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/x11/Xrandr-mixedcase/builtin.mk b/x11/Xrandr-mixedcase/builtin.mk index 7a94c705b59..832179c1213 100644 --- a/x11/Xrandr-mixedcase/builtin.mk +++ b/x11/Xrandr-mixedcase/builtin.mk @@ -1,4 +1,4 @@ -# $NetBSD: builtin.mk,v 1.12 2005/06/03 19:12:49 jlam Exp $ +# $NetBSD: builtin.mk,v 1.13 2005/07/09 03:14:36 grant Exp $ BUILTIN_PKG:= Xrandr @@ -41,7 +41,8 @@ _BLTN_XRANDR_1.0.XFree86= 4.3 4.3.[0-9] 4.3.[0-9].* \ _BLTN_XRANDR_1.0.xorg= 6.[7-9]* 6.[1-9][0-9]* . for _version_ in ${_BLTN_XRANDR_VERSIONS} . for _pattern_ in ${_BLTN_XRANDR_${_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.Xrandr?= ${_version_} . endif . endfor |