rafkill-1.2.3-build.patch 779 B

12345678910111213141516171819202122232425262728
  1. --- a/SConstruct
  2. +++ b/SConstruct
  3. @@ -8,8 +8,8 @@
  4. print "Use 'scons -h' for help"
  5. -prefix = '/usr/local/games'
  6. -bin = '/usr/local/bin'
  7. +prefix = 'data'
  8. +bin = 'src'
  9. if sys.platform == 'win32':
  10. try:
  11. Execute(Mkdir('gen'))
  12. @@ -46,7 +46,12 @@
  13. # print "Install directory = $prefix"
  14. # print "Directory where symlinked binary will go = $bin"
  15. -flags = [ '-g3', '-Wall', '-fno-rtti', '-Woverloaded-virtual', '-O2', '-DINSTALL_DIR=\\\"$prefix\\\"' ];
  16. +SConsignFile()
  17. +env.Replace(CXX = os.environ['CXX'])
  18. +if os.environ.get('CXXFLAGS'):
  19. + env.Replace(CPPFLAGS = os.environ['CXXFLAGS'])
  20. +
  21. +flags = [ '-Wall', '-fno-rtti', '-Woverloaded-virtual' ];
  22. env.Append( CCFLAGS = flags, CPPPATH = [ "build" ] )
  23. # SConscript( 'src/SConscript', build_dir='build', exports = 'env' );