APP=imagemagick
VERSION=7.0.8
BUILD=1sml
HOMEPAGE="http://www.imagemagick.org/"
DOWNLOAD=""
DESC="Robust collection of image processing tools"
REQUIRES="libtool libxml2 libpng fftw fontconfig libxext lcms2 glu pango libraqm librsvg libwebp openjpeg "

build() {
  mkandenterbuilddir
  rm -rf ImageMagick-$VERSION-14

  tar xf $SRCDIR/ImageMagick-$VERSION-14.tar.?z*
  cd ImageMagick-$VERSION-14
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --without-modules \
    --with-x \
    --with-frozenpaths=no \
    --disable-openmp \
    --enable-static=no \
    --enable-shared

  make
  make install DESTDIR=$PKG

  cp LICENSE $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
a86a745a1b693ed825bd167e8c2f9333e188c903cd0beb3295aba537aab022de50fe7b1d92756ea32ed19684806e694c8e3dd3f5cc79fb653338220739aad260  ImageMagick-7.0.8-14.tar.lz
"
