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
"
