blob: ac04f2609ac20b4abc51211ef4a366c733692a19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# $Id: PKGBUILD 22960 2008-12-30 05:45:59Z eric $
# Maintainer: Eric Belanger <eric@archlinux.org>
# NOTE: ImageMagick builds against an existing installation
# uninstall ImageMagick before building, or build it, install it, build it.
# NOTE 2: To circumvent linking problems (FS#10574), this package must now be built the following way:
# install old package, build new package, install new package, rebuild
pkgname=imagemagick
pkgver=6.4.8.2
pkgrel=1
pkgdesc="An image viewing/manipulation program"
arch=('i686' 'x86_64')
url="http://www.imagemagick.org/"
license=('custom')
depends=('lcms' 'libwmf' 'librsvg' 'libxt' 'gcc-libs' 'ghostscript' 'openexr' 'libtool>=2.2' 'heimdal>=1.2.1' 'bzip2' 'libxml2' 'jasper')
#makedepends=('ghostscript' 'openexr')
options=('!makeflags' '!docs')
source=(ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-${pkgver%.*}-${pkgver##*.}.tar.bz2 \
libpng_mmx_patch_x86_64.patch add_delegate.patch)
md5sums=('8454e93a0b88fd9319157b5301deff38' '069980fc2590c02aed86420996259302'\
'7f5851c4450b73d52df55c7e806cc316')
sha1sums=('e5de65c998776c5b49a1b364d05ca3515310e23a'
'e42f3acbe85b6098af75c5cecc9a254baaa0482c'
'19b40dcbc5bf8efb8ce7190fed17e2921de32ea5')
build() {
cd ${srcdir}/ImageMagick-${pkgver%.*}-${pkgver##*.}
if [ "${CARCH}" = "x86_64" ]; then
patch -Np1 < ../libpng_mmx_patch_x86_64.patch || return 1
fi
patch -p0 < ../add_delegate.patch || return 1
sed -i "s/with_autotrace='no'/with_autotrace='yes'/" configure || return 1
LIBS=-lMagickWand ./configure --prefix=/usr --without-modules --disable-static --enable-openmp \
--with-x --with-wmf --with-openexr --with-xml \
--with-gslib --with-gs-font-dir=/usr/share/fonts/Type1 \
--with-perl --with-perl-options="INSTALLDIRS=vendor" \
--without-gvc --without-djvu --with-jp2 \
--without-jbig --without-fpx --without-dps || return 1
make || return 1
make DESTDIR=${pkgdir} install || return 1
install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE || return 1
install -D -m644 NOTICE ${pkgdir}/usr/share/licenses/${pkgname}/NOTICE || return 1
#Cleaning
find ${pkgdir} -name '*.bs' -exec rm {} \; || return 1
find ${pkgdir} -name '.packlist' -exec rm {} \; || return 1
find ${pkgdir} -name 'perllocal.pod' -exec rm {} \; || return 1
rm -f ${pkgdir}/usr/lib/*.la || return 1
}
|