1 # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
2 pkgname=imagemagick-svn
5 pkgdesc="An image viewing/manipulation program"
6 url="http://www.imagemagick.org/"
9 depends=('djvulibre' 'lcms' 'libtool' 'xz' 'bzip2')
10 makedepends=('ghostscript' 'openexr' 'libwmf' 'librsvg' 'libxml2' 'jasper' 'libpng')
11 optdepends=('ghostscript: for Ghostscript support' 'openexr: for OpenEXR support' 'libwmf: for WMF support' 'librsvg: for SVG support' 'libxml2: for XML support' 'jasper: for JPEG-2000 support' 'libjpeg-turbo: for jpeg support' 'libpng: for PNG support')
12 conflicts=('imagemagick')
13 provides=('imagemagick' 'imagemagick-doc')
14 options=('!makeflags' 'libtool')
15 source=(libpng_mmx_patch_x86_64.patch perlmagick.rpath.patch)
16 md5sums=('069980fc2590c02aed86420996259302'
17 'ff9974decbfe9846f8e347239d87e4eb')
18 backup=('etc/ImageMagick/coder.xml'
19 'etc/ImageMagick/colors.xml'
20 'etc/ImageMagick/delegates.xml'
21 'etc/ImageMagick/log.xml'
22 'etc/ImageMagick/magic.xml'
23 'etc/ImageMagick/mime.xml'
24 'etc/ImageMagick/policy.xml'
25 'etc/ImageMagick/sRGB.icm'
26 'etc/ImageMagick/thresholds.xml'
27 'etc/ImageMagick/type.xml'
28 'etc/ImageMagick/type-dejavu.xml'
29 'etc/ImageMagick/type-ghostscript.xml'
30 'etc/ImageMagick/type-windows.xml')
32 _svntrunk=https://www.imagemagick.org/subversion/ImageMagick/trunk
38 if [ -d ${_svnmod}/.svn ]; then
39 (cd ${_svnmod} && svn up -r ${pkgver})
41 svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
44 msg "SVN checkout done or server timeout"
45 msg "Starting make..."
47 [ -d ${_svnmod}-build ] && rm -rf ${_svnmod}-build
48 cp -r ${_svnmod} ${_svnmod}-build
51 if [ "${CARCH}" = 'x86_64' ]; then
52 patch -Np1 < ../libpng_mmx_patch_x86_64.patch
56 patch -p0 < ../perlmagick.rpath.patch
57 ./configure --prefix=/usr --sysconfdir=/etc --with-modules --disable-static \
58 --enable-openmp --with-x --with-wmf --with-openexr --with-xml \
59 --with-gslib --with-gs-font-dir=/usr/share/fonts/Type1 \
60 --with-perl --with-perl-options="INSTALLDIRS=vendor" \
61 --without-gvc --with-djvu --without-autotrace --with-jp2 \
62 --with-jbig --without-fpx --without-dps --without-fftw
68 make DESTDIR=$pkgdir install
69 install -Dm644 LICENSE \
70 "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
71 install -Dm644 NOTICE "${pkgdir}/usr/share/licenses/$pkgname/NOTICE"