mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Small change to the Mac make package script
It still is rather specific to my system layout, but at least removes a reference to my home directory path... It also removes @rpath references from the executable. This should in theory work, but it failed for me on one machine that I tested on and doing things this way doesn't appear to cause problems. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									774f45b98b
								
							
						
					
					
						commit
						7d2a7da079
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -21,7 +21,7 @@ LIBRARY_PATH=${DIR}/install-root/lib make -j8 | |||
| LIBRARY_PATH=${DIR}/install-root/lib make install | ||||
| 
 | ||||
| # HACK TIME... QtXml is missing. screw this | ||||
| cp -a /Users/hohndel/Qt/5.5/clang_64/lib/QtXml.framework Subsurface.app/Contents/Frameworks | ||||
| cp -a $HOME/Qt/5.5/clang_64/lib/QtXml.framework Subsurface.app/Contents/Frameworks | ||||
| rm -rf Subsurface.app/Contents/Frameworks/QtXml.framework/Versions/5/Headers | ||||
| rm -rf Subsurface.app/Contents/Frameworks/QtXml.framework/Headers | ||||
| rm -rf Subsurface.app/Contents/Frameworks/QtXml.framework/QtXml.prl | ||||
|  | @ -44,6 +44,10 @@ for i in libssh libssrfmarblewidget libgit2; do | |||
| 		install_name_tool -change ${LIBSSH} @executable_path/../Frameworks/${LIBSSH} Subsurface.app/Contents/Frameworks/${SONAME} | ||||
| 	fi | ||||
| done | ||||
| RPATH=$(otool -L ${EXECUTABLE} | grep rpath  | cut -d\  -f1 | tr -d "\t" | cut -b 8- ) | ||||
| for i in ${RPATH}; do | ||||
| 	install_name_tool -change @rpath/$i @executable_path/../Frameworks/$i ${EXECUTABLE} | ||||
| done | ||||
| 
 | ||||
| # next deal with libGrantlee | ||||
| LIBG=Subsurface.app/Contents/Frameworks/libGrantlee_Templates.5.dylib | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue