updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / imagemagick-q8 / PKGBUILD
blob6a99eeab70a7d1e65286f01b3753173ee4c95c73
1 #! /bin/bash
2 # Maintainer: bertzi <bertzi87 AT yahoo DOT com>
3 pkgname=imagemagick-q8
4 pkgver=6.7.3.10
5 pkgrel=1
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)."
7 arch=('i686' 'x86_64')
8 url="http://www.imagemagick.org/"
9 provides=(imagemagick)
10 conflicts=(imagemagick)
11 license=('custom')
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')
19 build() {
20 cd "${srcdir}"/ImageMagick-${pkgver%.*}-${pkgver##*.}
22 sed '/AC_PATH_XTRA/d' -i configure.ac
23 autoreconf
24 patch -Np0 -i ../perlmagick.rpath.patch
26 LIBS="$LIBS -L/usr/lib/perl5/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
34 make
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"
67 #Cleaning
68 find "${pkgdir}" -name '*.bs' -delete
69 rm -f "${pkgdir}"/usr/lib/*.la