# Description: Image processing system
# URL: http://www.graphicsmagick.org
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: brotli freetype jasper lcms2 libwebp
# Optional: libpng libjpeg-turbo libtiff libxml2 graphviz libheif libde265

name=graphicsmagick
version=1.3.40
release=1
source=(https://downloads.sourceforge.net/project/$name/$name/$version/GraphicsMagick-$version.tar.xz)

build() {
	cd GraphicsMagick-$version

	./configure \
		--prefix=/usr \
		--enable-shared \
		--with-modules \
		--with-perl \
		--with-gs-font-dir='/usr/share/fonts/X11/Type1' \
		--with-quantum-depth=16 \
		--with-threads

	make
	make DESTDIR=$PKG install

	rm -r $PKG/usr/share/doc $PKG/usr/share/GraphicsMagick-$version
}
