# Contributor: Ɓukasz Jendrysik # Contributor: Carlo Landmeter # Maintainer: Natanael Copa setvar pkgname = 'imagemagick' setvar pkgver = '7.0.7.5' setvar _abiver = '7' setvar _pkgver = "${pkgver%.*}-${pkgver##*.}" setvar pkgrel = '0' setvar pkgdesc = ""A collection of tools and libraries for many image formats"" setvar url = ""http://www.imagemagick.org/"" setvar arch = ""all"" setvar license = ""custom"" setvar depends = """" setvar options = ""libtool"" setvar makedepends = ""zlib-dev libpng-dev libjpeg-turbo-dev freetype-dev fontconfig-dev perl-dev ghostscript-dev libwebp-dev libtool tiff-dev lcms2-dev libwebp-dev libxml2-dev librsvg-dev"" setvar subpackages = ""$pkgname-doc $pkgname-dev $pkgname-c++:_cxx $pkgname-libs"" setvar source = ""http://www.imagemagick.org/download/releases/ImageMagick-$_pkgver.tar.xz"" setvar builddir = ""$srcdir/ImageMagick-${_pkgver}"" proc build { cd $builddir # fix doc dir, Gentoo bug 91911 sed -i -e \ 's:DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}":DOCUMENTATION_PATH="/usr/share/doc/imagemagick":g' \ configure ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --disable-static \ --with-threads \ --without-x \ --with-tiff \ --with-png \ --with-webp \ --with-rsvg \ --with-gslib \ --with-gs-font-dir=/usr/share/fonts/Type1 \ --with-modules \ --with-xml \ $_pic make } proc package { cd $builddir make -j1 DESTDIR="$pkgdir" install if ! test -e "$pkgdir"/usr/lib/libMagickCore-$_abiver.Q16HDRI.so { error "Has ABI verision changed? (current is $_abiver)" return 1 } # we cannot let abuild delete the *.la files due to we need *.la # for the modules rm "$pkgdir"/usr/lib/*.la find $pkgdir -name '.packlist' -o -name 'perllocal.pod' \ -o -name '*.bs' -delete install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } proc _cxx { setvar pkgdesc = ""ImageMagick Magick++ library (C++ bindings)"" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/libMagick++*.so.* "$subpkgdir"/usr/lib/ } setvar sha512sums = ""8226c5391d00bc5d9a84f2015ac16a17dc8c6730d0f1ac629cab57b08371e79c033be98c49ce6b0e3ba6b4b84fd952228eef497dc620cda5c7fa93792b768810 ImageMagick-7.0.7-5.tar.xz""