sconstruct-install-images.patch 1.1 KB

123456789101112131415161718192021222324252627
  1. diff -Naur a/Sconstruct b/Sconstruct
  2. --- a/Sconstruct 2011-03-15 12:22:35.000000000 +0000
  3. +++ b/Sconstruct 2011-10-28 03:17:21.000000000 +0100
  4. @@ -214,12 +214,7 @@
  5. for file in files:
  6. if file.endswith(".png"):
  7. - if env['prefix'].endswith("/"):
  8. - dname = dir[2:]
  9. - else:
  10. - dname = dir[1:]
  11. -
  12. - env.Alias(target="install", source=env.Install(dir= env['DESTDIR'] + env['prefix'] + '/share/hydrogen/' + dname, source= dir + "/" + file))
  13. + env.Alias(target="install", source=env.Install(dir= env['DESTDIR'] + env['prefix'] + '/share/hydrogen/img/gray' + file))
  14. def get_hydrogen_gui( lib_hydrogen , opts ):
  15. includes, cppflags, ldflags = get_platform_flags( opts )
  16. @@ -301,7 +296,7 @@
  17. env.Alias(target="install", source=env.Install(dir= env['DESTDIR'] + env['prefix'] + '/share/hydrogen/data', source="./data/img"))
  18. #add every img in ./data/img to the install list.
  19. - os.path.walk("./data/img/",install_images,env)
  20. + os.path.walk("./data/img/gray",install_images,env)
  21. env.Alias(target="install", source=env.Install(dir= env['DESTDIR'] + env['prefix'] + '/share/hydrogen/data', source="./data/drumkits"))