freebsd-ports/games/rlvm/files/patch-SConscript.luarlvm
Jan Beich 5e498e96a2 Reorganize some my ports for better discoverability
devel/onscripter{,-1byte} -> games/onscripter{,-1byte}
devel/ponscripter-sekai -> games/ponscripter-sekai
devel/renpy{,6} -> games/renpy{,6}
devel/rlvm -> games/rlvm
dns/openmdns -> net/openmdns (where Bonjour and Avahi are)
2018-09-03 00:21:45 +00:00

20 lines
822 B
Text

--- SConscript.luarlvm~
+++ SConscript.luarlvm
@@ -31,7 +31,7 @@ config = test_env.Configure()
# Building the luaRlvm test harness requires having lua installed; if we do
# have lua installed, go ahead and use it, but don't really worry if this fails
# since end users don't use this binary.
-if config.CheckLibWithHeader('lua5.1', 'lua5.1/lua.h', 'cpp'):
+if config.CheckLibWithHeader('lua-5.1', 'lua51/lua.h', 'cpp'):
env['BUILD_LUA_TESTS'] = True
else:
print "Not building luaRlvm. (Don't worry, it's only a testing tool!)"
@@ -50,7 +50,7 @@ script_machine_files = [
]
if env['BUILD_LUA_TESTS'] == True:
- test_env.Append(CPPPATH = [ "/usr/include/lua5.1" ] )
+ test_env.Append(CPPPATH = [ env['ENV']['LUA_INCDIR'] ] )
# Build our included copy of luabind.
test_env.BuildSubcomponent("luabind")