diff options
author | grant <grant@pkgsrc.org> | 2005-07-09 03:14:36 +0000 |
---|---|---|
committer | grant <grant@pkgsrc.org> | 2005-07-09 03:14:36 +0000 |
commit | cbc8f8813d06b009563921c65e7f782b9d691b37 (patch) | |
tree | b1b3c2e093a6d5db771d93cf757ad2eef401f9f5 /x11/Xrandr-mixedcase | |
parent | 64caa70b1dba4b395f9672d9faf852ac651bc485 (diff) | |
download | pkgsrc-cbc8f8813d06b009563921c65e7f782b9d691b37.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/Xrandr-mixedcase')
-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 |