~armagetronad-ct/armagetronad/os-x-toolkit-sdl2

« back to all changes in this revision

Viewing changes to os-x-toolkit.rb

  • Committer: Voodoo
  • Date: 2014-01-28 09:18:43 UTC
  • Revision ID: voodoo-20140128091843-hjtopaej5whrllev
applying dlh patch to fix SDL2_mixer smpeg2 framework install_name

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
  libs["SDL_mixer"] = Builder.new { |config, arch|
24
24
    archive = fetch("http://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.0.dmg")
25
25
    source = open_dmg(archive)
26
 
    copy_framework(source, "SDL2_mixer", arch)
 
26
    framework = copy_framework(source, "SDL2_mixer", arch)
27
27
    close_dmg(source)
 
28
 
 
29
    # Correct install name for smpeg2
 
30
    system(
 
31
      "install_name_tool",
 
32
      "-change",
 
33
      "@executable_path/../Frameworks/SDL2.framework/Versions/A/SDL2",
 
34
      "@rpath/SDL2.framework/Versions/A/SDL2",
 
35
      File.join(framework, "Frameworks/smpeg2.framework/smpeg2")
 
36
    )
28
37
  }
29
38
 
30
39
  libs["libpng"] = Builder.new("lib/libpng.a") { |config, arch|