Index: ../trunk-jpl/externalpackages/mpich/install-3.0-macosx64.sh
===================================================================
--- ../trunk-jpl/externalpackages/mpich/install-3.0-macosx64.sh	(revision 18391)
+++ ../trunk-jpl/externalpackages/mpich/install-3.0-macosx64.sh	(revision 18392)
@@ -19,7 +19,6 @@
 cd src
 ./configure \
 	--prefix="$ISSM_DIR/externalpackages/mpich/install" \
-	--enable-shared
 
 	#CC=llvm-gcc \
 
Index: ../trunk-jpl/externalpackages/dakota/install-5.3.1-macosx64.sh
===================================================================
--- ../trunk-jpl/externalpackages/dakota/install-5.3.1-macosx64.sh	(revision 18391)
+++ ../trunk-jpl/externalpackages/dakota/install-5.3.1-macosx64.sh	(revision 18392)
@@ -24,7 +24,6 @@
 cp $DAK_SRC/cmake/BuildDakotaTemplate.cmake $DAK_SRC/cmake/BuildDakotaCustom.cmake
 patch $DAK_SRC/cmake/BuildDakotaCustom.cmake configs/5.3.1/BuildDakotaCustom.cmake.mac.patch
 patch $DAK_SRC/cmake/DakotaDev.cmake configs/5.3.1/DakotaDev.cmake.patch
-patch $DAK_SRC/CMakeLists.txt configs/5.3.1/CMakeLists.txt.patch
 
 #Apply patches
 patch src/src/ParallelLibrary.cpp configs/5.3.1/ParallelLibrary.cpp.patch
Index: ../trunk-jpl/externalpackages/petsc/install-3.5-macosx64.sh
===================================================================
--- ../trunk-jpl/externalpackages/petsc/install-3.5-macosx64.sh	(revision 18391)
+++ ../trunk-jpl/externalpackages/petsc/install-3.5-macosx64.sh	(revision 18392)
@@ -22,7 +22,9 @@
 	--with-debugging=0 \
 	--with-valgrind=0 \
 	--with-x=0 \
-	--with-shared-libraries=1 \
+	--with-ssl=0 \
+	--with-shared-libraries=0 \
+   --download-fblaslapack=1 \
 	--download-metis=1 \
 	--download-parmetis=1 \
 	--download-mumps=1 \
Index: ../trunk-jpl/packagers/macosx/package.sh
===================================================================
--- ../trunk-jpl/packagers/macosx/package.sh	(revision 18391)
+++ ../trunk-jpl/packagers/macosx/package.sh	(revision 18392)
@@ -1,25 +1,13 @@
 #/bin/bash
 
 #Package using the Package Maker from OSX, driven by command line.
-echo "Cleanup first" 
-sudo sh -c "rm -rf ISSM-MacOSX.pkg bin test"
+tarball_name='issm-mac-static_build.tar.gz'
 
-#We need to copy all the relevant files and set the permissions, as PackageMaker 
-#is not good at that. 
-echo "Copy bin" 
-cp -Rf $ISSM_TIER/bin ./
-echo "Copy test" 
-cp -Rf $ISSM_TIER/test ./
-cp matlabissm startup.m ./bin
+cd $ISSM_DIR
 
-#Now change group and ownership: 
-echo "Change group and ownership" 
-sudo sh -c "chown -R root ./bin && chgrp -R admin ./bin"
-sudo sh -c "chown -R root ./test && chgrp -R admin ./test"
+echo "Cleanup first" 
+ 
+rm $tarball_name
 
-echo "Launch packagemaker" 
-PackageMaker -d ISSM.pmdoc -o ISSM-MacOSX.pkg
-
-#cleanup
-echo "Final cleanup"
-sudo sh -c "rm -rf ./bin && rm -rf ./test"
+echo "Creating tarball: ${tarball_name}"
+tar -czf $tarball_name ./bin ./lib ./test ./examples
