banshee r4722 - trunk/banshee/build/osx
- From: abock svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r4722 - trunk/banshee/build/osx
- Date: Wed, 22 Oct 2008 21:55:01 +0000 (UTC)
Author: abock
Date: Wed Oct 22 21:55:01 2008
New Revision: 4722
URL: http://svn.gnome.org/viewvc/banshee?rev=4722&view=rev
Log:
Updated, relocation still not fully working
Modified:
trunk/banshee/build/osx/collect-deps.sh
Modified: trunk/banshee/build/osx/collect-deps.sh
==============================================================================
--- trunk/banshee/build/osx/collect-deps.sh (original)
+++ trunk/banshee/build/osx/collect-deps.sh Wed Oct 22 21:55:01 2008
@@ -10,10 +10,32 @@
mkdir $BUNDLE
mkdir $BUNDLE/gstreamer-0.10
-cp $BUILD_PREFIX/bin/{gst-launch,gst-inspect}-0.10 $BUNDLE &>/dev/null
-find $BUILD_PREFIX/lib -name *.dylib -type f -exec cp {} $BUNDLE \; &>/dev/null
-find $BUILD_PREFIX/lib/gstreamer-0.10 -name *.so -type f -exec cp {} $BUNDLE/gstreamer-0.10 \; &>/dev/null
-find $BUILD_PREFIX/lib/mono -name *.dll* -not -name *policy* -type f -exec cp {} $BUNDLE \; &>/dev/null
+LIB_PREFIX=$BUILD_PREFIX/lib
+#cp $BUILD_PREFIX/bin/{gst-launch,gst-inspect}-0.10 $BUNDLE &>/dev/null
+find $LIB_PREFIX -name *.dylib -type f -exec cp {} $BUNDLE \; &>/dev/null
+#find $LIB_PREFIX/gstreamer-0.10 -name *.so -type f -exec cp {} $BUNDLE/gstreamer-0.10 \; &>/dev/null
+#find $LIB_PREFIX/mono -name *.dll* -not -name *policy* -type f -exec cp {} $BUNDLE \; &>/dev/null
+
+pushd $BUNDLE &>/dev/null
+
+# Rebuild symlinks
+for link in $(find $LIB_PREFIX -name \*.dylib -type l); do
+ ln -s "$(basename $(readlink $link))" "$(basename $link)"
+done
+
+# Relocate libraries
+for dep in $(find . -type f -name \*.dylib -o -name \*.so); do
+ link_deps=$(otool -L $dep | cut -f2 | cut -f1 -d' ')
+ echo "Processing $dep for relocation..."
+ for link_dep in $link_deps; do
+ if [ "x${link_dep:0:${#LIB_PREFIX}}" = "x$LIB_PREFIX" ]; then
+ echo "--> $link_dep"
+ install_name_tool -change $link_dep $(basename $link_dep) $dep
+ fi
+ done
+done
+
+popd &>/dev/null
popd &>/dev/null
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]