#brew install gcc
#export IMAKECPP=${brew_prefix}/bin/cpp
#export IMAKECPP=${brew_prefix}/bin/cpp-4.9
-brew install https://raw.githubusercontent.com/veprbl/homebrew-x11/imake-fix/imake.rb
+brew install homebrew/versions/gcc49
+#brew install homebrew/versions/gcc5
+#brew install homebrew/versions/gcc6
+chise_cc=${brew_prefix}/bin/gcc-4.9
+
+#brew install https://raw.githubusercontent.com/veprbl/homebrew-x11/imake-fix/imake.rb
+brew tap homebrew/x11
+brew install imake
brew -v install libtiff
brew -v install openjpeg
-brew -v install berkeley-db
-brew -v install xaw3d
+
+#brew -v install berkeley-db
+brew tap chise/misc
+#HOMEBREW_CC=gcc-4.9 brew -v install --without-java berkeley-db5
+brew -v install --without-java berkeley-db5
+
+#brew -v install xaw3d
brew -v install gettext
if [ -f /Library/LaunchDaemons/homebrew.mxcl.canna.plist ]
sudo ${brew_prefix}/sbin/cannakill
fi
-brew tap chise/misc
brew -v install canna
+brew -v link canna
sudo sh -c "sed 's/rc\.canna/rc.canna-root/' \
brew -v install wget
-CC=${brew_prefix}/bin/gcc-4.9 ./configure \
+CC=${chise_cc} ./configure \
--with-site-includes=/usr/X11/include \
--with-site-libraries=/usr/X11/lib \
--with-canna