#!/bin/bash


case $1 in
  ("homebrew")
    brew tap homebrew/science
    brew tap homebrew/python
    brew install python numpy
    brew install vtk5 --with-qt ;;
  ("macports")
    echo "WARNING: install_prereqs macports not implemented for this module" ;;
  ("ubuntu")
    apt-get install libqt4-dev libvtk5-dev libvtk5-qt4-dev python-vtk python-numpy ;;
  ("cygwin")
    echo "WARNING: install_prereqs cygwin not implemented for this module" ;;
  (*)
    echo "Usage: ./install_prereqs.sh package_manager"
    echo "where package_manager is one of the following: "
    echo "  homebrew"
    echo "  macports"
    echo "  ubuntu"
    echo "  cygwin"
    exit 1 ;;
esac

if [ -f tobuild.txt ]; then
  SUBDIRS=`grep -v "^\#" tobuild.txt`
  for subdir in $SUBDIRS; do
    if [ -f $subdir/install_prereqs.sh ]; then
      echo "installing prereqs for $subdir"
      ( cd $subdir; ./install_prereqs.sh $1 || true )
    fi
  done
fi

#!/bin/bash


case $1 in
  ("homebrew")
    brew tap homebrew/science
    brew tap homebrew/python
    brew install python numpy
    brew install vtk5 --with-qt ;;
  ("macports")
    port install qt4-mac qwt
    port install python27 py-pip py-numpy
    port install vtk5 +qt4_mac +python27 ;;
  ("ubuntu")
    apt-get install libqt4-dev libvtk5-dev libvtk5-qt4-dev python-vtk python-numpy ;;
  ("cygwin")
    echo "WARNING: install_prereqs cygwin not implemented for this module" ;;
  (*)
    echo "Usage: ./install_prereqs.sh package_manager"
    echo "where package_manager is one of the following: "
    echo "  homebrew"
    echo "  macports"
    echo "  ubuntu"
    echo "  cygwin"
    exit 1 ;;
esac

if [ -f tobuild.txt ]; then
  SUBDIRS=`grep -v "^\#" tobuild.txt`
  for subdir in $SUBDIRS; do
    if [ -f $subdir/install_prereqs.sh ]; then
      echo "installing prereqs for $subdir"
      ( cd $subdir; ./install_prereqs.sh $1 || true )
    fi
  done
fi

Update installation pre-requisites when using MacPorts on Mac OS X 10.10.
Update installation pre-requisites when using MacPorts on Mac OS X 10.10.

This commit updates the install_prereqs.sh script to install vtk5
using MacPorts-2.3.4, on Mac OS X 10.10.

Signed-off-by: Elvis Dowson <fe163f549996e45acac0751db00b2c2e7db54786@gmail.com>
