aboutsummaryrefslogtreecommitdiff
path: root/packages/darwin_app
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-04-19 04:30:47 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-04-19 04:30:47 +0000
commitf4e8e5edd57703952508e9f038fce626bb21c1f6 (patch)
treed8dd57ff121a58afb5c5c2772cb84c9fa7456567 /packages/darwin_app
parent823e76c9e5d6bc8cc0de6aa6429f8da672d0f6f1 (diff)
added handling for fink libs that are in subdirs of /sw/lib to support freetype2. See https://pow.idmi.poly.edu/weblog/hans/MacOSX/2007/04/18/install_name_toolchangingins.html for details
svn path=/trunk/; revision=7579
Diffstat (limited to 'packages/darwin_app')
-rwxr-xr-xpackages/darwin_app/embed-MacOSX-dependencies.sh14
1 files changed, 8 insertions, 6 deletions
diff --git a/packages/darwin_app/embed-MacOSX-dependencies.sh b/packages/darwin_app/embed-MacOSX-dependencies.sh
index 0c0392bc..f520fb24 100755
--- a/packages/darwin_app/embed-MacOSX-dependencies.sh
+++ b/packages/darwin_app/embed-MacOSX-dependencies.sh
@@ -29,9 +29,10 @@ for pd_darwin in `find $PD_APP_CONTENTS -name '*.pd_darwin'`; do
echo -e "\t$lib"
install -d $PD_APP_LIB
install -p /sw/lib/$lib $PD_APP_LIB
+ new_lib=`echo $lib | sed 's|.*/\(.*\.dylib\)|\1|'`
# @executable_path starts from Contents/Resources/bin/pd
- install_name_tool -id @executable_path/../../$LIB_DIR/$lib $PD_APP_LIB/$lib
- install_name_tool -change /sw/lib/$lib @executable_path/../../$LIB_DIR/$lib $pd_darwin
+ install_name_tool -id @executable_path/../../$LIB_DIR/$new_lib $PD_APP_LIB/$new_lib
+ install_name_tool -change /sw/lib/$lib @executable_path/../../$LIB_DIR/$new_lib $pd_darwin
done
echo " "
fi
@@ -43,14 +44,15 @@ for dylib in $PD_APP_LIB/*.dylib; do
echo "`echo $dylib | sed 's|.*/\(.*\.dylib\)|\1|'` is using:"
for lib in $LIBS; do
echo -e "\t$lib"
- if [ -e $PD_APP_LIB/$lib ]; then
- echo "$PD_APP_LIB/$lib already exists, skipping copy."
+ 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 -id @executable_path/../../$LIB_DIR/$lib $PD_APP_LIB/$lib
- install_name_tool -change /sw/lib/$lib @executable_path/../../$LIB_DIR/$lib $dylib
+ install_name_tool -id @executable_path/../../$LIB_DIR/$new_lib $PD_APP_LIB/$new_lib
+ install_name_tool -change /sw/lib/$lib @executable_path/../../$LIB_DIR/$new_lib $dylib
done
echo " "
fi