summaryrefslogtreecommitdiffstats
path: root/games/battletanks/files/patch-engine-SConscript
blob: 73c3cd979f32a639f90c289ef8984a937a8b3828 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- engine/SConscript.orig	2009-12-30 14:50:33.000000000 +0100
+++ engine/SConscript	2010-01-13 23:58:23.000000000 +0100
@@ -79,17 +79,17 @@
 
 if sys.platform != 'win32':
 	got_lua = False
-	for lua in ['lua5.1', 'lua5.0', 'lua']: 
+	for lua in ['lua-5.1', 'lua-5.0', 'lua']: 
 		try: 
 			env.ParseConfig("pkg-config --cflags --libs %s 2>/dev/null" %lua);
 			got_lua = True
 			env.Append(CPPDEFINES=['ENABLE_LUA'])
-			bt_libs.append(lua)
+			bt_libs.append('lua')
 			break
 		except: 
 			continue
 	if not got_lua: 
-		raise Exception("Cannot find lua5.1/lua5.0 or lua pkg-config information")
+		raise Exception("Cannot find lua-5.1/lua-5.0 or lua pkg-config information")
 
 env.Append(CPPDEFINES=['ENABLE_LUA'])
 bt_sources.append('luaxx/state.cpp')
OpenPOWER on IntegriCloud