# Maintainer: Daniel Bermond < yahoo-com: danielbermond > # ImageMagick compiled with all features and delegate libraries. # Using quantum depth 32 (Q32) and HDRI. # NOTE: DPS (Display PostScript) feature is obsolete and thus not enabled. # For more information about DPS being obsolete please visit: # http://www.x.org/releases/X11R7.7/doc/xorg-docs/graphics/dps.html # NOTE: # Change font directories bellow to match yours. # DeJaVu and GhostScript font directories provided bellow are the default ones. # Windows font directory provided bellow is set according to the example in Arch Linux Wiki. _dejavu_font_dir="/usr/share/fonts/TTF" _gs_font_dir="/usr/share/fonts/Type1" _windows_font_dir="/usr/share/fonts/WindowsFonts" _srcname="ImageMagick" _srcver="6.9.3-4" pkgname=imagemagick-full pkgver="$(echo ${_srcver} | tr '-' '.')" pkgrel=2 pkgdesc="An image viewing/manipulation program (Q32 HDRI with all libs and features)" arch=('i686' 'x86_64') url="http://www.imagemagick.org/" license=('custom') depends=('jemalloc' 'bzip2' 'libx11' 'libxext' 'libxt' 'libsm' 'zlib' 'autotrace-nomagick' 'fftw' 'libfpx' 'djvulibre' 'fontconfig' 'freetype2' 'ghostscript' 'gsfonts' 'graphviz' 'jbigkit' 'libjpeg-turbo' 'lcms' 'lcms2' 'openjpeg2' 'liblqr' 'xz' 'openexr' 'pango' 'libpng' 'librsvg' 'libtiff' 'libwebp' 'libwmf' 'libxml2' 'libmpeg2' 'opencl-headers' 'ocl-icd') provides=('imagemagick' 'libMagickCore-6.Q32HDRI.so' 'libMagickWand-6.Q32HDRI.so' 'libMagick++-6.Q32HDRI.so') conflicts=('imagemagick' 'imagemagick-git' 'imagemagick-fftw' 'imagemagick-no-hdri') backup=("etc/ImageMagick-${pkgver%%.*}/coder.xml" "etc/ImageMagick-${pkgver%%.*}/colors.xml" "etc/ImageMagick-${pkgver%%.*}/delegates.xml" "etc/ImageMagick-${pkgver%%.*}/log.xml" "etc/ImageMagick-${pkgver%%.*}/magic.xml" "etc/ImageMagick-${pkgver%%.*}/mime.xml" "etc/ImageMagick-${pkgver%%.*}/policy.xml" "etc/ImageMagick-${pkgver%%.*}/quantization-table.xml" "etc/ImageMagick-${pkgver%%.*}/thresholds.xml" "etc/ImageMagick-${pkgver%%.*}/type.xml" "etc/ImageMagick-${pkgver%%.*}/type-dejavu.xml" "etc/ImageMagick-${pkgver%%.*}/type-ghostscript.xml" "etc/ImageMagick-${pkgver%%.*}/type-windows.xml") options=('!docs' 'libtool' '!emptydirs') source=("http://www.imagemagick.org/download/${_srcname}-${_srcver}.tar.xz") sha256sums=('0d4266940d27afb617fc8b3481ffdf63dd02ca13806d581ac5cb28638725c275') build() { cd "$_srcname"-"$_srcver" ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --enable-static=no \ --enable-shared=yes \ --enable-opencl \ --enable-hdri \ --enable-hugepages \ --disable-delegate-build \ --with-modules \ --with-quantum-depth=32 \ --with-magick-plus-plus \ --with-perl \ --with-perl-options="INSTALLDIRS=vendor" \ --with-jemalloc \ --with-umem \ --with-bzlib \ --with-x \ --with-zlib \ --with-autotrace \ --without-dps \ --with-fftw \ --with-fpx \ --with-djvu \ --with-fontconfig \ --with-freetype \ --with-gslib \ --with-gvc \ --with-jbig \ --with-jpeg \ --with-lcms \ --with-openjp2 \ --with-lqr \ --with-lzma \ --with-openexr \ --with-pango \ --with-png \ --with-rsvg \ --with-tiff \ --with-webp \ --with-wmf \ --with-xml \ --with-dejavu-font-dir="$_dejavu_font_dir" \ --with-gs-font-dir="$_gs_font_dir" \ --with-windows-font-dir="$_windows_font_dir" make } package() { cd "$_srcname"-"$_srcver" make -j1 DESTDIR="$pkgdir/" install install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm644 NOTICE "${pkgdir}/usr/share/licenses/${pkgname}/NOTICE" }