summaryrefslogtreecommitdiff
path: root/lang/lua
diff options
context:
space:
mode:
authorobache <obache>2013-10-30 08:53:40 +0000
committerobache <obache>2013-10-30 08:53:40 +0000
commit6573c834b9b9846b9595283f9bcddf4b149a9abb (patch)
treedd531684a1cd040954d7fba4cd80ac1aea380905 /lang/lua
parentaa2b4f6f107131029f10df41b01f01c0f490227b (diff)
downloadpkgsrc-6573c834b9b9846b9595283f9bcddf4b149a9abb.tar.gz
make sure varable is defined before using it.
Diffstat (limited to 'lang/lua')
-rw-r--r--lang/lua/luaversion.mk4
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