Fixed the 'package-macosx' rule

This commit is contained in:
Olivier Teulière 2010-02-18 21:49:59 +00:00
parent 44a7d4b4f9
commit 5a1379cb25

View file

@ -80,10 +80,11 @@ package-macosx:
cp -r /opt/local/libexec/qt4-mac/lib/QtGui.framework/Versions/4/Resources/* $(MACOSX_PACKAGE_DIR)/Contents/Resources
# Change the dependencies, so that we point to the libraries inside the bundle
for lib in `ls $(MACOSX_PACKAGE_DIR)/Contents/Frameworks`; do \
install_name_tool -id @executable_path/../Frameworks/`basename $$lib` $$lib; \
cd $(MACOSX_PACKAGE_DIR)/Contents/Frameworks; \
for lib in `ls`; do \
install_name_tool -id @executable_path/../Frameworks/$$lib $$lib; \
for dep in `otool -L $$lib | grep /opt/local/ | sed 's/ (.*//'`; do \
install_name_tool -change $$dep @executable_path/../Frameworks/`basename $$dep` $$lib \
install_name_tool -change $$dep @executable_path/../Frameworks/`basename $$dep` $$lib; \
done; \
done