From b7c6412a7952ba39d8ec634a0984461216b3d459 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 13 Jun 2007 02:26:32 +0000 Subject: fixed the embedding of libquicktime plugins, I think I actually got it working now svn path=/trunk/; revision=7768 --- packages/darwin_app/embed-MacOSX-dependencies.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'packages/darwin_app') diff --git a/packages/darwin_app/embed-MacOSX-dependencies.sh b/packages/darwin_app/embed-MacOSX-dependencies.sh index f520fb24..7ee90f62 100755 --- a/packages/darwin_app/embed-MacOSX-dependencies.sh +++ b/packages/darwin_app/embed-MacOSX-dependencies.sh @@ -38,6 +38,25 @@ for pd_darwin in `find $PD_APP_CONTENTS -name '*.pd_darwin'`; do fi done +for so in $PD_APP_LIB/*/*.so; do + LIBS=`otool -L $so | 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 -e "\t$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 + # @executable_path starts from Contents/Resources/bin/pd + install_name_tool -change /sw/lib/$lib @executable_path/../../$LIB_DIR/$new_lib $so + done + echo " " + fi +done + 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 -- cgit v1.2.1