patch-SConstruct 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. $OpenBSD: patch-SConstruct,v 1.5 2016/08/01 18:31:29 bentley Exp $
  2. --- SConstruct.orig Sun Jul 31 20:35:51 2016
  3. +++ SConstruct Sun Jul 31 20:36:16 2016
  4. @@ -128,9 +128,6 @@ else:
  5. env.Append(CPPDEFINES=["_GTK3"])
  6. env.Append(CCFLAGS = ["-D_GTK"])
  7. - ### Just make every configuration use -ldl, it may be needed for some reason.
  8. - env.Append(LIBS = ["-ldl"])
  9. -
  10. ### Lua platform defines
  11. ### Applies to all files even though only lua needs it, but should be ok
  12. if env['LUA']:
  13. @@ -144,9 +141,9 @@ else:
  14. env.Append(CCFLAGS = ["-DLUA_USE_LINUX"])
  15. lua_available = False
  16. if env['SYSTEM_LUA']:
  17. - if conf.CheckLib('lua5.1'):
  18. - env.Append(LINKFLAGS = ["-llua5.1"])
  19. - env.Append(CCFLAGS = ["-I/usr/include/lua5.1"])
  20. + if conf.CheckLib('${MODLUA_WANTLIB}'):
  21. + env.Append(LINKFLAGS = ["${MODLUA_LIB}"])
  22. + env.Append(CCFLAGS = ["-I${MODLUA_INCL_DIR}"])
  23. lua_available = True
  24. elif conf.CheckLib('lua'):
  25. env.Append(LINKFLAGS = ["-llua"])
  26. @@ -184,11 +181,6 @@ if env['FRAMESKIP']:
  27. print "base CPPDEFINES:",env['CPPDEFINES']
  28. print "base CCFLAGS:",env['CCFLAGS']
  29. -if env['DEBUG']:
  30. - env.Append(CPPDEFINES=["_DEBUG"], CCFLAGS = ['-g', '-O0'])
  31. -else:
  32. - env.Append(CCFLAGS = ['-O2'])
  33. -
  34. if env['PLATFORM'] != 'win32' and env['PLATFORM'] != 'cygwin' and env['CREATE_AVI']:
  35. env.Append(CPPDEFINES=["CREATE_AVI"])
  36. else:
  37. @@ -237,5 +229,5 @@ env.InstallAs(prefix + '/share/fceux/', share_src)
  38. env.Install(prefix + '/share/fceux/', auxlib_src)
  39. env.Install(prefix + '/share/pixmaps/', image_src)
  40. env.Install(prefix + '/share/applications/', desktop_src)
  41. -env.Install(prefix + "/share/man/man6/", [man_src, man_net_src])
  42. +env.Install(prefix + "/man/man6/", [man_src, man_net_src])
  43. env.Alias('install', prefix)