2 # Maintainer: bertzi <bertzi87 AT yahoo DOT com>
6 pkgdesc
="An image viewing/manipulation program (Q8 version can run 10% to 50% faster than the default Q16 version, and uses only half as much memory)."
8 url
="http://www.imagemagick.org/"
10 conflicts
=(imagemagick
)
12 depends
=('libltdl' 'lcms2' 'libxt' 'bzip2' 'xz' 'fontconfig' 'libxext' 'libjpeg-turbo')
13 makedepends
=('ghostscript' 'openexr' 'libwmf' 'librsvg' 'libxml2' 'jasper' 'libpng')
14 source=(ftp://ftp.imagemagick.org
/pub
/ImageMagick
/ImageMagick-
${pkgver%.*}-${pkgver##*.}.
tar.xz \
15 perlmagick.rpath.
patch)
16 sha1sums
=('5fba088d938385a697f7d441bdf0896c55c9d52e'
17 '23405f80904b1de94ebd7bd6fe2a332471b8c283')
20 cd "${srcdir}"/ImageMagick-${pkgver%.*}-${pkgver##*.}
22 sed '/AC_PATH_XTRA/d' -i configure.ac
24 patch -Np0 -i ../perlmagick.rpath.patch
26 LIBS="$LIBS -L/usr
/lib
/perl
5/core_perl
/CORE
-lperl" \
27 ./configure --prefix=/usr --sysconfdir=/etc --with-modules --disable-static \
28 --enable-openmp --with-wmf --with-openexr --with-xml --with-lcms2 --with-jp2 \
29 --with-gslib --with-gs-font-dir=/usr/share/fonts/Type1 \
30 --with-perl --with-perl-options="INSTALLDIRS
=vendor
" \
31 --without-gvc --without-djvu --without-autotrace --without-webp \
32 --without-jbig --without-fpx --without-dps --without-fftw --without-lqr \
33 --with-quantum-depth=8
37 package_imagemagick-q8() {
38 pkgdesc="An image viewing
/manipulation program
"
39 optdepends=('ghostscript: for Ghostscript support'
40 'openexr: for OpenEXR support'
41 'libwmf: for WMF support'
42 'librsvg: for SVG support'
43 'libxml2: for XML support'
44 'jasper: for JPEG-2000 support'
45 'libpng: for PNG support')
46 backup=('etc/ImageMagick/coder.xml'
47 'etc/ImageMagick/colors.xml'
48 'etc/ImageMagick/delegates.xml'
49 'etc/ImageMagick/log.xml'
50 'etc/ImageMagick/magic.xml'
51 'etc/ImageMagick/mime.xml'
52 'etc/ImageMagick/policy.xml'
53 'etc/ImageMagick/sRGB.icc'
54 'etc/ImageMagick/thresholds.xml'
55 'etc/ImageMagick/type.xml'
56 'etc/ImageMagick/type-dejavu.xml'
57 'etc/ImageMagick/type-ghostscript.xml'
58 'etc/ImageMagick/type-windows.xml')
59 options=('!makeflags' '!docs' 'libtool')
61 cd "${srcdir}"/ImageMagick-${pkgver%.*}-${pkgver##*.}
62 make DESTDIR
="${pkgdir}" install
63 chmod 755 "${pkgdir}/usr/lib/perl5/vendor_perl/auto/Image/Magick/Magick.so"
64 install -Dm644 LICENSE
"${pkgdir}/usr/share/licenses/imagemagick/LICENSE"
65 install -Dm644 NOTICE
"${pkgdir}/usr/share/licenses/imagemagick/NOTICE"
68 find "${pkgdir}" -name '*.bs' -delete
69 rm -f "${pkgdir}"/usr
/lib
/*.la