LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File freedcppmv-lua-fix.patch of Package freedcppmv (Project home:iboss32)

diff -Naur ./freedcppmv.orig//SConstruct ./freedcppmv//SConstruct
--- ./freedcppmv.orig//SConstruct	2010-09-18 00:28:52.000000000 +0700
+++ ./freedcppmv//SConstruct	2010-09-26 19:44:37.000000000 +0700
@@ -187,7 +187,7 @@
 		Exit(1)
 #	if not conf.CheckHeader(['lua5.1/lua.h', 'lua5.1/lualib.h', 'lua5.1/lauxlib.h']):
 #		conf.env['HAVE_LUA_H'] = True
-	elif conf.CheckPKG('lua5.1 > 5.0'):
+	elif conf.CheckPKG('lua > 5.0'):
 		conf.env['HAVE_LUA_H_B'] = True
 
 	if not conf.CheckHeader('iconv.h'):
@@ -225,9 +225,9 @@
 		env.Append(CXXFLAGS = '-DHAVE_IFADDRS_H')
 	
 	if env.has_key('HAVE_LUA_H_B'):
-		env.Append(CXXFLAGS = '-llua5.1')
+		env.Append(CXXFLAGS = '-llua')
 		env.Append(CXXFLAGS = '-ldl')
-		env.Append(CXXFLAGS = '-I/usr/include/lua5.1')
+		env.Append(CXXFLAGS = '-I/usr/include')
 
 	if env.has_key('debug') and env['debug']:
 		env.Append(CXXFLAGS = ['-g', '-ggdb', '-D_DEBUG', '-Wall'])
@@ -252,7 +252,7 @@
 	env.ParseConfig('pkg-config --libs libnotify')
 	env.ParseConfig('pkg-config --libs gthread-2.0')
 
-	env.ParseConfig('pkg-config --libs lua5.1')
+	env.ParseConfig('pkg-config --libs lua')