public
Last active — forked from soffes/imagemagick.sh

  • Download Gist
imagemagick.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
#!/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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.