[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Eliot-dev] eliot Makefile.am
From: |
Olivier Teulière |
Subject: |
[Eliot-dev] eliot Makefile.am |
Date: |
Wed, 17 Feb 2010 22:10:31 +0000 |
CVSROOT: /cvsroot/eliot
Module name: eliot
Changes by: Olivier Teulière <ipkiss> 10/02/17 22:10:31
Modified files:
. : Makefile.am
Log message:
Improved the package-macosx rule to ship the shared libraries in the
bundle.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/eliot/Makefile.am?cvsroot=eliot&r1=1.16&r2=1.17
Patches:
Index: Makefile.am
===================================================================
RCS file: /cvsroot/eliot/eliot/Makefile.am,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -b -r1.16 -r1.17
--- Makefile.am 7 Feb 2010 21:37:24 -0000 1.16
+++ Makefile.am 17 Feb 2010 22:10:30 -0000 1.17
@@ -68,6 +68,26 @@
mkdir -p $(MACOSX_PACKAGE_DIR)/locale/qt4
cp $(QT4LOCALEDIR)/*.qm $(MACOSX_PACKAGE_DIR)/locale/qt4/ || true
+# Copy the shared libraries
+ mkdir -p $(MACOSX_PACKAGE_DIR)/Contents/Frameworks
+ for lib in `otool -L $(MACOSX_PACKAGE_DIR)/Contents/MacOS/Eliot | grep
/opt/local/ | sed 's/ (.*//'`; do \
+ cp $$lib $(MACOSX_PACKAGE_DIR)/Contents/Frameworks; \
+ install_name_tool -change $$lib
@executable_path/../Frameworks/`basename $$lib`
$(MACOSX_PACKAGE_DIR)/Contents/MacOS/Eliot; \
+ done
+
+# Copy needed Qt resources
+ mkdir -p $(MACOSX_PACKAGE_DIR)/Contents/Resources
+ 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; \
+ for dep in `otool -L $$lib | grep /opt/local/ | sed 's/
(.*//'`; do \
+ install_name_tool -change $$dep
@executable_path/../Frameworks/`basename $$dep` $$lib \
+ done; \
+ done
+
+
# Build the .dmg file
package-macosx-dmg: package-macosx
rm -f $(DMG_FILE)