Fix svn install renaming in Mac packaging
This commit is contained in:
parent
33a19f30a9
commit
29e267f18a
2 changed files with 9 additions and 25 deletions
|
@ -42,15 +42,6 @@ $prefixDir=Dir.pwd + "/dist"
|
||||||
dmgDir=Dir.pwd + "/image"
|
dmgDir=Dir.pwd + "/image"
|
||||||
srcDir=Dir.pwd + "/flightgear"
|
srcDir=Dir.pwd + "/flightgear"
|
||||||
|
|
||||||
def fix_svn_install_names(object)
|
|
||||||
$svnLibs.each do |l|
|
|
||||||
fileName = "lib#{l}-1.0.dylib"
|
|
||||||
oldName = "#{$prefixDir}/lib/#{fileName}"
|
|
||||||
newName = "@executable_path/../Frameworks/#{fileName}"
|
|
||||||
`install_name_tool -change #{oldName} #{newName} #{object}`
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
puts "Erasing previous image dir"
|
puts "Erasing previous image dir"
|
||||||
`rm -rf #{dmgDir}`
|
`rm -rf #{dmgDir}`
|
||||||
|
|
||||||
|
@ -62,6 +53,14 @@ resourcesDir=contents+"/Resources"
|
||||||
osgPluginsDir=contents+"/PlugIns/osgPlugins-#{osgVersion}"
|
osgPluginsDir=contents+"/PlugIns/osgPlugins-#{osgVersion}"
|
||||||
volName="\"FlightGear Nightly Build\""
|
volName="\"FlightGear Nightly Build\""
|
||||||
|
|
||||||
|
def fix_svn_install_names(object)
|
||||||
|
$svnLibs.each do |l|
|
||||||
|
fileName = "lib#{l}-1.0.dylib"
|
||||||
|
newName = "@executable_path/../Frameworks/#{fileName}"
|
||||||
|
`install_name_tool -change #{fileName} #{newName} #{object}`
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def copy_svn_libs()
|
def copy_svn_libs()
|
||||||
puts "Copying Subversion client libraries"
|
puts "Copying Subversion client libraries"
|
||||||
$svnLibs.each do |l|
|
$svnLibs.each do |l|
|
||||||
|
@ -69,7 +68,7 @@ def copy_svn_libs()
|
||||||
path = "#{$frameworksDir}/#{libFile}"
|
path = "#{$frameworksDir}/#{libFile}"
|
||||||
`cp #{$prefixDir}/lib/#{libFile} #{$frameworksDir}`
|
`cp #{$prefixDir}/lib/#{libFile} #{$frameworksDir}`
|
||||||
fix_svn_install_names(path)
|
fix_svn_install_names(path)
|
||||||
`install_name_tool -id #{libFile} #{path}`
|
# `install_name_tool -id #{libFile} #{path}`
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
SDK_PATH="/Developer/SDKs/MacOSX10.6.sdk"
|
|
||||||
OSX_TARGET="10.6"
|
|
||||||
|
|
||||||
svn co https://macflightgear.svn.sourceforge.net/svnroot/macflightgear/trunk/FlightGearOSX macflightgear
|
|
||||||
|
|
||||||
pushd macflightgear
|
|
||||||
|
|
||||||
# compile the stub executable
|
|
||||||
gcc -o FlightGear -mmacosx-version-min=$OSX_TARGET -isysroot $SDK_PATH -arch i386 main.m \
|
|
||||||
-framework Cocoa -framework RubyCocoa -framework Foundation -framework AppKit
|
|
||||||
|
|
||||||
popd
|
|
||||||
|
|
Loading…
Reference in a new issue