# Maintainer: PktSurf <smlinux@pktsurf.in>
app=imagemagick
version=7.1.1
build=1sml
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-11

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

build() {
  ./configure \
    --prefix= \
    --without-modules \
    --with-x \
    --with-frozenpaths=no \
    --disable-openmp \
    --enable-static=no \
    --enable-shared

  make
  make install DESTDIR=$pkg

  mkfinalpkg
}

sha512sums="
a4ff218db6ea4d034d8f476008948503af6d4a0d61301a8a5ca9a175d59fea3d0505a2283fa6ea444efb2361d665502e35a4f18ed332435dfe9722f4cc8a9776  ImageMagick-7.1.1-11.tar.lz
"
