From 5a1379cb2561ba98cfb1b5c55f4167d5cb64316b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Teuli=C3=A8re?= Date: Thu, 18 Feb 2010 21:49:59 +0000 Subject: [PATCH] Fixed the 'package-macosx' rule --- Makefile.am | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index 3c89699..9f3781e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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