6 brew_prefix=`brew --prefix`
8 #brew install https://raw.github.com/Homebrew/homebrew-dupes/master/gcc.rb \
10 #brew install apple-gcc42
11 #export IMAKECPP=/usr/local/bin/cpp-4.2
13 #export IMAKECPP=${brew_prefix}/bin/cpp
14 #export IMAKECPP=${brew_prefix}/bin/cpp-4.9
15 brew install https://raw.githubusercontent.com/veprbl/homebrew-x11/imake-fix/imake.rb
17 brew -v install libtiff
18 brew -v install openjpeg
19 brew -v install berkeley-db
21 brew -v install gettext
23 if [ -f /Library/LaunchDaemons/homebrew.mxcl.canna.plist ]
25 sudo launchctl unload -w /Library/LaunchDaemons/homebrew.mxcl.canna.plist
27 if [ -x ${brew_prefix}/sbin/cannakill ]
29 sudo ${brew_prefix}/sbin/cannakill
36 sudo sh -c "sed 's/rc\.canna/rc.canna-root/' \
37 < ${brew_prefix}`ls -l ${brew_prefix}/sbin/cannaserver \
38 | sed 's/^.*-> ..//' \
39 | sed 's|/sbin/cannaserver||'`/homebrew.mxcl.canna.plist \
40 > /Library/LaunchDaemons/homebrew.mxcl.canna.plist"
41 sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.canna.plist
45 CC=${brew_prefix}/bin/gcc-4.9 ./configure \
46 --with-site-includes=/usr/X11/include \
47 --with-site-libraries=/usr/X11/lib \
54 cd chise-fonts-installer/TrueType && make build-arphic \
55 && make install-arphic