diff options
author | obache <obache@pkgsrc.org> | 2013-10-30 08:53:40 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2013-10-30 08:53:40 +0000 |
commit | 97ebb59a6a9ee7b7801ccde9a50cbf5fda26bc37 (patch) | |
tree | dd531684a1cd040954d7fba4cd80ac1aea380905 /lang/lua | |
parent | 2f12eeba7a1a5e64898c3ce27516be8704d40df0 (diff) | |
download | pkgsrc-97ebb59a6a9ee7b7801ccde9a50cbf5fda26bc37.tar.gz |
make sure varable is defined before using it.
Diffstat (limited to 'lang/lua')
-rw-r--r-- | lang/lua/luaversion.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lang/lua/luaversion.mk b/lang/lua/luaversion.mk index 6b03a744571..c767243eb10 100644 --- a/lang/lua/luaversion.mk +++ b/lang/lua/luaversion.mk @@ -1,4 +1,4 @@ -# $NetBSD: luaversion.mk,v 1.1 2013/10/30 06:18:09 dholland Exp $ +# $NetBSD: luaversion.mk,v 1.2 2013/10/30 08:53:40 obache Exp $ # This file determins which Lua version is used as a dependency for # a package. @@ -99,7 +99,7 @@ _LUA_VERSION?= none # # Handle self-conflicts # -.if !empty(LUA_SELF_CONFLICT:M[Yy][Ee][Ss]) +.if defined(LUA_SELF_CONFLICT) && !empty(LUA_SELF_CONFLICT:M[Yy][Ee][Ss]) .for v in ${_LUA_VERSIONS_ACCEPTED:N${_LUA_VERSION}} CONFLICTS+= ${PKGNAME:S/lua${_LUA_VERSION}/lua${v}/:C/-[0-9].*$/-[0-9]*/} .endfor |