diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2010-07-23 16:43:38 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@iem.at> | 2015-10-14 15:05:31 +0200 |
commit | 3b9bca14846932a4c2caacb2ddd66b05b57b779f (patch) | |
tree | c5f3847db6ee0fdcd9997eb755f720f119b8f034 | |
parent | 7393949d3a553b6e3d51a7b4c9d3285b6e510b8b (diff) |
added one last pass to the dylibs for getting rid of the /sw path
svn path=/trunk/externals/august/readanysf~/; revision=13729
-rwxr-xr-x | embed-MacOSX-dependencies.sh | 19 |
1 files changed, 19 insertions, 0 deletions
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 |