# Contributor: Carlo Landmeter # Maintainer: pkgname=graphicsmagick pkgver=1.3.23 pkgrel=0 pkgdesc="Image processing system" url="http://www.graphicsmagick.org/" arch="all" license="MIT" depends="" depends_dev="jasper-dev libpng-dev tiff-dev libxml2-dev libwmf-dev" makedepends="$depends_dev libtool libltdl" install="" subpackages="$pkgname-dev $pkgname-doc" source="http://downloads.sourceforge.net/$pkgname/$pkgname/$pkgver/GraphicsMagick-$pkgver.tar.xz" _builddir="$srcdir"/GraphicsMagick-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --enable-shared \ --disable-static \ --with-modules \ --with-threads \ --with-gs-font-dir=/usr/share/fonts/Type1 \ --with-quantum-depth=16 \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } md5sums="9885ff5d91bc215a0adb3be1185e9777 GraphicsMagick-1.3.23.tar.xz" sha256sums="fd2535a529528ec6f0bd493fed4395e08082faf940d51d7c18c25586a0a0e60d GraphicsMagick-1.3.23.tar.xz" sha512sums="40f0a2d96ea568cc6e52ae0003c2ad393b2cffc6eabb85db78cb22af00eafec3fa1e64ebb26eed4a271f7a54c35c3b985e99a3d0b404fd025f4dba156856c99a GraphicsMagick-1.3.23.tar.xz"