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
15 brew -v install libtiff
16 brew -v install openjpeg
17 brew -v install berkeley-db
19 brew -v install gettext
21 if [ -f /Library/LaunchDaemons/homebrew.mxcl.canna.plist ]
23 sudo launchctl unload -w /Library/LaunchDaemons/homebrew.mxcl.canna.plist
25 if [ -x ${brew_prefix}/sbin/cannakill ]
27 sudo ${brew_prefix}/sbin/cannakill
34 sudo sh -c "sed 's/rc\.canna/rc.canna-root/' \
35 < ${brew_prefix}`ls -l ${brew_prefix}/sbin/cannaserver \
36 | sed 's/^.*-> ..//' \
37 | sed 's|/sbin/cannaserver||'`/homebrew.mxcl.canna.plist \
38 > /Library/LaunchDaemons/homebrew.mxcl.canna.plist"
39 sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.canna.plist
43 CC=${brew_prefix}/bin/gcc ./configure \
44 --with-site-includes=/usr/X11/include \
45 --with-site-libraries=/usr/X11/lib \
52 cd chise-fonts-installer/TrueType && make build-arphic \
53 && make install-arphic