### this file is sourced not run
PKGVER=7.1.1.12
PKGBUILD=1
PKGARCH=x86_64

# source: james updated to BLFS 11.3 to BLFS SVN r890 
TARBALL=ImageMagick-7.1.1-12.tar.xz
MD5SUM=7d04ecc28b035922697630c92cdfbfb8
SRC_URL=https://www.imagemagick.org/archive/releases/$TARBALL
BUNDLE=

SLACKREQ='autotrace libfftw3 fontconfig freetype2 lcms2 librsvg libtiff \
libpng libdjvulibre libX11 libxml2 libjpeg-turbo libopenjpeg2  \
libwebp liblqr libheif libde265' # libjbig compile-time only
SLACKDESC="imagemagick: imagemagick $PKGVER (Image converter)  
imagemagick:  
imagemagick: ImageMagick® is a software suite to create, edit, compose, or 
imagemagick: convert bitmap images. It can read and write images in a variety 
imagemagick: of formats (over 100) including DPX, EXR, GIF, JPEG, JPEG-2000, 
imagemagick: PDF, PNG, Postscript, SVG, and TIFF. Use ImageMagick to resize, 
imagemagick: flip, mirror, rotate, distort, shear and transform images, adjust 
imagemagick: image colors, apply various special effects, or draw text, lines, 
imagemagick: polygons, ellipses and Bézier curves.  
imagemagick: 
imagemagick: https://www.imagemagick.org/
"
SLACKSUG='graphviz-qt5'

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	CONFFLAGS="$CONFFLAGS \
		--enable-hdri     \
		--with-modules    \
		--with-perl       \
		--disable-static  \
		--with-gs-font-dir=/usr/share/ghostscript/fonts \
		--with-fftw       \
		--with-rsvg       \
		--with-autotrace  \
	" &&
	MAKEINSTALLFLAGS="$MAKEINSTALLFLAGS DOCUMENTATION_PATH=/usr/share/doc/imagemagick-$PKGVER" &&
	pkg_build_autoconf &&
	pkg_build_slackdesc
}
