5 apt-get
-y -q remove imagemagick
6 apt-get
-y -q install ghostscript gsfonts pkg-config autoconf libbz2-dev libjpeg-dev libtiff-dev libfreetype6-dev
12 # Build and install libpng
13 git clone
-b v1.6
.24 git
://git.code.sf.net
/p
/libpng
/code
$WDIR/libpng
16 .
/configure
--prefix=$PREFIX
17 make all
&& make install
21 # Build and install ImageMagick
22 wget
-O $WDIR/ImageMagick.
tar.gz
"http://www.imagemagick.org/download/ImageMagick-6.9.7-8.tar.gz"
23 IMDIR
=$WDIR/$
(tar tzf
$WDIR/ImageMagick.
tar.gz
--wildcards "ImageMagick-*/configure" |cut
-d/ -f1)
24 tar zxf
$WDIR/ImageMagick.
tar.gz
-C $WDIR
26 PKG_CONF_LIBDIR
=$PREFIX/lib LDFLAGS
=-L$PREFIX/lib CFLAGS
=-I$PREFIX/include .
/configure \
29 --enable-bounds-checking \
34 --with-quantum-depth=16 \
35 --without-magick-plus-plus \
45 make all
&& make install