Update of /cvsroot/pure-data/packages/darwin_app In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24529
Modified Files: Tag: branch-v0-39-2-extended embed-MacOSX-dependencies.sh Log Message: 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_toolcha... for details
Index: embed-MacOSX-dependencies.sh =================================================================== RCS file: /cvsroot/pure-data/packages/darwin_app/embed-MacOSX-dependencies.sh,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -C2 -d -r1.2 -r1.2.2.1 *** embed-MacOSX-dependencies.sh 16 Jan 2006 04:33:04 -0000 1.2 --- embed-MacOSX-dependencies.sh 19 Apr 2007 04:30:47 -0000 1.2.2.1 *************** *** 30,36 **** install -d $PD_APP_LIB install -p /sw/lib/$lib $PD_APP_LIB # @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 done echo " " --- 30,37 ---- 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/$new_lib $PD_APP_LIB/$new_lib ! install_name_tool -change /sw/lib/$lib @executable_path/../../$LIB_DIR/$new_lib $pd_darwin done echo " " *************** *** 44,55 **** 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." 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 done echo " " --- 45,57 ---- 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 -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 " "