Index: ../trunk-jpl/configs/config-macosx64-static.sh
===================================================================
--- ../trunk-jpl/configs/config-macosx64-static.sh	(revision 0)
+++ ../trunk-jpl/configs/config-macosx64-static.sh	(revision 18404)
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+#petsc 3.2
+#mpich 1.4
+
+./configure \
+	--prefix=$ISSM_DIR \
+   --disable-static \
+   --enable-standalone-executables \
+   --enable-standalone-libraries \
+	--with-matlab-dir=$MATLAB_DIR \
+	--with-triangle-dir=$ISSM_DIR/externalpackages/triangle/install \
+	--with-metis-dir=$ISSM_DIR/externalpackages/petsc/install \
+	--with-petsc-dir=$ISSM_DIR/externalpackages/petsc/install  \
+   --with-blas-lapack-dir=$ISSM_DIR/externalpackages/petsc/install \
+	--with-mpi-include=$ISSM_DIR/externalpackages/mpich/install/include  \
+	--with-mpi-libflags=" -L$ISSM_DIR/externalpackages/mpich/install/lib -lmpich -lpmpich" \
+	--with-scalapack-dir=$ISSM_DIR/externalpackages/petsc/install \
+	--with-mumps-dir=$ISSM_DIR/externalpackages/petsc/install \
+   --with-fortran-lib="/usr/local/lib/libgfortran.a" \
+   --enable-debugging \
+	--with-numthreads=4

Property changes on: ../trunk-jpl/configs/config-macosx64-static.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: ../trunk-jpl/packagers/macosx/install.sh
===================================================================
--- ../trunk-jpl/packagers/macosx/install.sh	(revision 0)
+++ ../trunk-jpl/packagers/macosx/install.sh	(revision 18404)
@@ -0,0 +1,110 @@
+#!/bin/bash
+
+ISSM_ARCH='macosx64'
+
+# Environment Variables
+#
+# ISSM_DIR and MATLAB_DIR must be set correctly.
+# {{{
+if [ "${ISSM_DIR}x" == "x" ]; then
+   echo "ISSM_DIR is not set!" >&2
+   exit 1;
+elif [ -d ${ISSM_DIR} ]; then
+   echo "ISSM_DIR: ${ISSM_DIR}"
+else
+   echo "ISSM_DIR: ${ISSM_DIR} does not exist!" >&2
+   exit 1;
+fi
+
+if [ "${MATLAB_DIR}x" == "x" ]; then
+   echo "MATLAB_DIR is not set!"
+   exit 1;
+elif [ -d ${MATLAB_DIR} ]; then
+   echo "MATLAB_DIR: ${MATLAB_DIR}"
+else
+   echo "MATLAB_DIR: ${MATLAB_DIR} does not exist!" >&2
+   exit 1;
+fi
+# }}}
+
+cd $ISSM_DIR
+
+# Externalpackages
+# {{{
+echo 'Installing external packages...'
+
+cd "$ISSM_DIR/externalpackages/cmake"
+echo '---------------------------------'
+echo "Installing CMAKE"
+echo '---------------------------------'
+./install.sh &> /dev/null
+
+if [ $? -ne 0 ]; then
+   echo "FAILED TO INSTALL CMAKE!"
+   exit 1;
+fi
+
+cd "$ISSM_DIR/externalpackages/autotools"
+echo '---------------------------------'
+echo "Installing Autotools"
+echo '---------------------------------'
+./install.sh &> /dev/null
+
+if [ $? -ne 0 ]; then
+   echo "FAILED TO INSTALL AUTOTOOLS!"
+   exit 1;
+fi
+
+source $ISSM_DIR/etc/environment.sh
+
+cd "$ISSM_DIR/externalpackages/triangle"
+echo '---------------------------------'
+echo "Installing Triangle"
+echo '---------------------------------'
+./install-macosx64.sh &> /dev/null
+
+if [ $? -ne 0 ]; then
+   echo "FAILED TO INSTALL TRIANGLE!"
+   exit 1;
+fi
+
+cd "$ISSM_DIR/externalpackages/mpich"
+echo '---------------------------------'
+echo "Installing MPICH"
+echo '---------------------------------'
+./install-3.0-macosx64-static.sh &> /dev/null
+
+if [ $? -ne 0 ]; then
+   echo "FAILED TO INSTALL MPICH!"
+   exit 1;
+fi
+
+cd "$ISSM_DIR/externalpackages/petsc"
+echo '---------------------------------'
+echo "Installing PETSc"
+echo '---------------------------------'
+./install-3.5-macosx64-static.sh &> /dev/null
+
+if [ $? -ne 0 ]; then
+   echo "FAILED TO INSTALL PETSC!"
+   exit 1;
+fi
+
+export MATLAB_DIR
+# }}}
+
+source $ISSM_DIR/etc/environment.sh
+
+cd $ISSM_DIR
+
+echo "Aureconf..."
+autoreconf -if &> /dev/null
+
+echo "Configuring..."
+$ISSM_DIR/configs/config-macosx64-static.sh &> /dev/null
+
+echo "Building..."
+make $1 &> /dev/null
+
+echo "Installing..."
+make install &> /dev/null

Property changes on: ../trunk-jpl/packagers/macosx/install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
