# Maintainer: PktSurf <smlinux@pktsurf.in>
app=imagemagick
version=7.1.0
build=2sml
homepage="https://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 "

prepbuilddir() {
  mkandenterbuilddir
  rm -rf ImageMagick-$version-62

  tar xf $srcdir/ImageMagick-$version-62.tar.?z*
  cd ImageMagick-$version-62
  fixbuilddirpermissions
}

build() {
  ./configure \
    --prefix="" \
    --docdir="/share/doc/$app-$version" \
    --without-modules \
    --with-x \
    --with-frozenpaths=no \
    --disable-openmp \
    --enable-static=no \
    --enable-shared

  make
  make install DOCUMENTATION_PATH="/share/doc/$app-$version" DESTDIR=$pkg

  mkfinalpkg
}

sha512sums="
9ccd022d3403cd3a1457cb37104e3a804f94c67271847cb85b5b9084d287da77fb348d6f543bb9922c95d00c8865f55018d3e2cd947ccf0e68d335657c8d9841  ImageMagick-7.1.0-62.tar.lz
"
