From 3b9bca14846932a4c2caacb2ddd66b05b57b779f Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 23 Jul 2010 16:43:38 +0000 Subject: added one last pass to the dylibs for getting rid of the /sw path svn path=/trunk/externals/august/readanysf~/; revision=13729 --- embed-MacOSX-dependencies.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/embed-MacOSX-dependencies.sh b/embed-MacOSX-dependencies.sh index 9d91de3..f8275a4 100755 --- a/embed-MacOSX-dependencies.sh +++ b/embed-MacOSX-dependencies.sh @@ -63,3 +63,22 @@ for dylib in $PD_APP_LIB/*.dylib; do fi done +# seems like we need it one last time! phew... +for dylib in $PD_APP_LIB/*.dylib; do + LIBS=`otool -L $dylib | sed -n 's|.*/sw/lib/\(.*\.dylib\).*|\1|p'` + if [ "x$LIBS" != "x" ]; then + echo "`echo $dylib | sed 's|.*/\(.*\.dylib\)|\1|'` is using:" + for lib in $LIBS; do + echo " $lib" + new_lib=`echo $lib | sed 's|.*/\(.*\.dylib\)|\1|'` + if [ -e $PD_APP_LIB/$new_lib ]; then + echo "$PD_APP_LIB/$new_lib already exists, skipping copy." + else + install -vp /sw/lib/$lib $PD_APP_LIB + fi + install_name_tool -id $LIB_DIR/$new_lib $PD_APP_LIB/$new_lib + install_name_tool -change /sw/lib/$lib $LIB_DIR/$new_lib $dylib + done + echo " " + fi +done -- cgit v1.2.1