From 0e111a62ff15b543c84e855e9e99eafc2bb90a27 Mon Sep 17 00:00:00 2001 From: James Cotton Date: Tue, 9 Oct 2012 08:27:20 -0500 Subject: [PATCH] OSX Packaging: Make sure to link libgamepad to the distributed SDL --- package/osx/libraries | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/package/osx/libraries b/package/osx/libraries index d6c559682..21ab5b8fa 100755 --- a/package/osx/libraries +++ b/package/osx/libraries @@ -72,8 +72,12 @@ cp -r "/Library/Frameworks/SDL.framework" "${APP}/Contents/Frameworks/" echo "Changing package identification of SDL" install_name_tool -id \ - @executable_path/../Frameworks/SDL.framework/Versions/A/SDL \ - "${APP}/Contents/Frameworks/SDL.framework/Versions/A/SDL" + @executable_path/../Frameworks/SDL.framework/SDL \ + "${APP}/Contents/Frameworks/SDL.framework/SDL" +install_name_tool -change \ + @rpath/SDL.framework/Versions/A/SDL \ + "${APP}/Contents/Frameworks/SDL.framework/SDL" \ + "${APP}/Contents/Plugins/libsdlgamepad.1.dylib" # deleting unnecessary files echo "Deleting unnecessary files"