This script is obsolete. Use Homebrew instead:
$ brew install imagemagick
#!/bin/sh | |
## install imagemagick on snow leopard: by kain, improved by mislav | |
## http://www.icoretech.org/2009/08/install-imagemagick-in-leopard-snow-leopard/ | |
# working on 64bit kernel mode | |
set -e | |
PREFIX=/usr/local | |
## Passenger users: amend your Apache global configuration with the following directive | |
# SetEnv PATH /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin | |
wget http://sourceforge.net/projects/freetype/files/freetype2/2.3.9/freetype-2.3.9.tar.gz/download -O- | tar xz | |
cd freetype-2.3.9 | |
./configure --prefix=$PREFIX | |
make | |
sudo make install | |
cd .. | |
wget ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.2.39.tar.bz2 -O- | tar xj | |
cd libpng-1.2.39 | |
./configure --prefix=$PREFIX | |
make | |
sudo make install | |
cd .. | |
wget http://www.ijg.org/files/jpegsrc.v7.tar.gz -O- | tar xz | |
cd jpeg-7 | |
ln -s `which glibtool` ./libtool | |
export MACOSX_DEPLOYMENT_TARGET=10.6 | |
./configure --enable-shared --prefix=$PREFIX | |
make | |
sudo make install | |
cd .. | |
wget http://dl.maptools.org/dl/libtiff/tiff-3.8.2.tar.gz -O- | tar xz | |
cd tiff-3.8.2 | |
./configure --prefix=$PREFIX | |
make | |
sudo make install | |
cd .. | |
wget http://sourceforge.net/projects/wvware/files/libwmf/0.2.8.4/libwmf-0.2.8.4.tar.gz/download -O- | tar xz | |
cd libwmf-0.2.8.4 | |
./configure --prefix=$PREFIX | |
make | |
sudo make install | |
cd .. | |
wget http://www.littlecms.com/lcms-1.18a.tar.gz -O- | tar xz | |
cd lcms-1.18 | |
./configure --prefix=$PREFIX | |
make | |
sudo make install | |
cd .. | |
wget http://ghostscript.com/releases/ghostscript-8.70.tar.gz -O- | tar xz | |
cd ghostscript-8.70 | |
./configure --prefix=$PREFIX | |
make | |
sudo make install | |
cd .. | |
wget http://sourceforge.net/projects/gs-fonts/files/gs-fonts/8.11%20%28base%2035%2C%20GPL%29/ghostscript-fonts-std-8.11.tar.gz/download -O- | tar xz | |
sudo mv fonts $PREFIX/share/ghostscript | |
wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.5.4-10.tar.gz -O- | tar xz | |
cd ImageMagick-6.5.4-10 | |
export CPPFLAGS=-I$PREFIX/include | |
export LDFLAGS=-L$PREFIX/lib | |
./configure --prefix=$PREFIX --disable-static --with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8 --with-gs-font-dir=$PREFIX/share/ghostscript/fonts | |
make | |
sudo make install |