Commit 0965e7f5 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

attempt to addres #215: fluid~ doesn't load on OSX

This should fix any other missing external dependencies in the OSX app bundle
parent 978adcb0
Pipeline #730 passed with stage
in 250 minutes and 29 seconds
......@@ -78,9 +78,9 @@ for dylib in $PD_APP_LIB/*.dylib; do
fi
done
# run it again to catch dylibs that depend on dylibs located in /usr/local/opt
# run it again to catch dylibs that depend on dylibs located in /usr/local/
for dylib in $PD_APP_LIB/*.dylib; do
LIBS=`otool -L $dylib | sed -n 's|.*/usr/local/opt/\(.*\.dylib\).*|\1|p'`
LIBS=`otool -L $dylib | sed -n 's|.*/usr/local/\(.*\.dylib\).*|\1|p'`
if [ "x$LIBS" != "x" ]; then
echo "`echo $dylib | sed 's|.*/\(.*\.dylib\)|\1|'` is using:"
for lib in $LIBS; do
......@@ -89,20 +89,20 @@ for dylib in $PD_APP_LIB/*.dylib; do
if [ -e $PD_APP_LIB/$new_lib ]; then
echo "$PD_APP_LIB/$new_lib already exists, skipping copy."
else
install -vp /usr/local/opt/$lib $PD_APP_LIB
install -vp /usr/local/$lib $PD_APP_LIB
fi
# @executable_path starts from Contents/Resources/app.nw/bin/pd
install_name_tool -id @executable_path/../../../$LIB_DIR/$new_lib $PD_APP_LIB/$new_lib
install_name_tool -change /usr/local/opt/$lib @executable_path/../../../$LIB_DIR/$new_lib $dylib
install_name_tool -change /usr/local/$lib @executable_path/../../../$LIB_DIR/$new_lib $dylib
done
echo " "
fi
done
# finally, run it one more time to catch dylibs that depend on dylibs from
# /usr/local/lib
# /usr/local/
for dylib in $PD_APP_LIB/*.dylib; do
LIBS=`otool -L $dylib | sed -n 's|.*/usr/local/lib/\(.*\.dylib\).*|\1|p'`
LIBS=`otool -L $dylib | sed -n 's|.*/usr/local/\(.*\.dylib\).*|\1|p'`
if [ "x$LIBS" != "x" ]; then
echo "`echo $dylib | sed 's|.*/\(.*\.dylib\)|\1|'` is using:"
for lib in $LIBS; do
......@@ -111,11 +111,11 @@ for dylib in $PD_APP_LIB/*.dylib; do
if [ -e $PD_APP_LIB/$new_lib ]; then
echo "$PD_APP_LIB/$new_lib already exists, skipping copy."
else
install -vp /usr/local/lib/$lib $PD_APP_LIB
install -vp /usr/local/$lib $PD_APP_LIB
fi
# @executable_path starts from Contents/Resources/app.nw/bin/pd
install_name_tool -id @executable_path/../../../$LIB_DIR/$new_lib $PD_APP_LIB/$new_lib
install_name_tool -change /usr/local/lib/$lib @executable_path/../../../$LIB_DIR/$new_lib $dylib
install_name_tool -change /usr/local/$lib @executable_path/../../../$LIB_DIR/$new_lib $dylib
done
echo " "
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment