[Gridflow-cvs] [svn] commit: r5089 - /trunk/bin/build_osx_package

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Fri Feb 26 23:34:23 EST 2010


Author: pboivin
Date: Fri Feb 26 23:34:22 2010
New Revision: 5089

Log:
more unified script for my osx-ppc and osx-intel setups

Modified:
    trunk/bin/build_osx_package

Modified: trunk/bin/build_osx_package
==============================================================================
--- trunk/bin/build_osx_package (original)
+++ trunk/bin/build_osx_package Fri Feb 26 23:34:22 2010
@@ -20,7 +20,7 @@
 
 VERSION="gridflow-$1"
 PACKAGE="gridflow-$1-macosx104-$ARCH.tar.gz"
-GF_README="/usr/src/gridflow/GRIDFLOW_BIN/README.txt"
+GF_README="/usr/src/gridflow/GRIDFLOW_BIN/README-$ARCH.txt"
 
 mkdir $VERSION
 cd $VERSION
@@ -36,11 +36,15 @@
 
 
 #-------------------------------------------------------------------------------
+if [ "$ARCH" = "ppc" ]; then
+    EXTRALIBS="/sw/lib/libpng.3.dylib /sw/lib/libfftw3f.3.dylib /sw/lib/libfftw3.3.dylib /sw/lib/libncurses.5.dylib"
+else
+    EXTRALIBS="/usr/local/lib/libfftw3f.3.dylib /usr/local/lib/libfftw3.3.dylib /sw/lib/ncurses/libncurses.5.dylib"
+fi
+
 BUNDLED_PREFIX="/Library/Pd/gridflow/libs"
-BUNDLED_LIBS="/sw/lib/ncurses/libncurses.5.dylib /sw/lib/libaa.1.dylib \
-/sw/lib/libnetpbm.10.dylib /usr/local/lib/libfftw3f.3.dylib \
-/usr/local/lib/libfftw3.3.dylib /usr/X11/lib/libpng12.0.dylib \
-/sw/lib/libjpeg.62.dylib /sw/lib/libSDL-1.2.0.dylib"
+BUNDLED_LIBS=" /sw/lib/libaa.1.dylib /sw/lib/libnetpbm.10.dylib /usr/X11/lib/libpng12.0.dylib \
+/sw/lib/libjpeg.62.dylib /sw/lib/libSDL-1.2.0.dylib $EXTRALIBS"
 
 mkdir libs
 cp $BUNDLED_LIBS ./libs/
@@ -51,8 +55,12 @@
     install_name_tool -change $LIB $BUNDLED_PREFIX/$FILENAME gridflow.pd_darwin
 done
 
-# should do a 2nd pass of install_name_tool for libs that depend on libs...
+# should do a 2nd pass of install_name_tool for all libs that might depend on other libs...
+if [ "$ARCH" = "ppc" ]; then
+install_name_tool -change  /sw/lib/libncurses.5.dylib  $BUNDLED_PREFIX/libncurses.5.dylib  ./libs/libaa.1.dylib
+else
 install_name_tool -change  /sw/lib/ncurses/libncurses.5.dylib  $BUNDLED_PREFIX/libncurses.5.dylib  ./libs/libaa.1.dylib
+fi
 
 #-------------------------------------------------------------------------------
 



More information about the Gridflow-cvs mailing list