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 | c0147f8012fc5a8060a457ccf58a6df17b4c0e23 (patch) | |
tree | b1b3c2e093a6d5db771d93cf757ad2eef401f9f5 /x11 | |
parent | 71f8ad14d93995543b771d8384d8641ba0c78c63 (diff) | |
download | pkgsrc-c0147f8012fc5a8060a457ccf58a6df17b4c0e23.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 |