2015-02-13 19:58:43 +08:00
|
|
|
# Maintainer: Chaoting Liu <brli@sourceforge.net>
|
2010-05-18 22:39:29 +08:00
|
|
|
|
|
|
|
pkgname=imagemagick
|
2016-03-18 05:35:24 +08:00
|
|
|
pkgver=6.9.0.10
|
|
|
|
pkgrel=1
|
2010-05-18 22:39:29 +08:00
|
|
|
pkgdesc="An image viewing/manipulation program"
|
2012-11-01 13:42:49 +08:00
|
|
|
arch=('x86_64')
|
2010-05-18 22:39:29 +08:00
|
|
|
url="http://www.imagemagick.org/"
|
|
|
|
license=('custom')
|
2015-03-09 19:44:49 +08:00
|
|
|
depends=('perl' 'libltdl' 'lcms2' 'libxt' 'fontconfig' 'libxext' 'liblqr' 'libcl' 'fftw')
|
|
|
|
makedepends=('lcms2' 'fontconfig' 'ghostscript'
|
|
|
|
'openexr' 'libwmf' 'librsvg' 'libxml2' 'opencl-headers' 'libwebp')
|
2015-02-15 04:15:52 +08:00
|
|
|
optdepends=('ghostscript: for Ghostscript support'
|
|
|
|
'openexr: for OpenEXR support'
|
2014-04-01 03:02:39 +08:00
|
|
|
'jasper: for JPEG-2000 support'
|
2015-02-15 04:15:52 +08:00
|
|
|
'libwmf: for WMF support'
|
|
|
|
'librsvg: for SVG support'
|
|
|
|
'libxml2: for XML support'
|
|
|
|
'libpng: for PNG support'
|
|
|
|
'libwebp: for WEBP support')
|
2015-02-16 03:29:14 +08:00
|
|
|
options=('libtool' '!emptydirs')
|
2016-03-18 05:35:24 +08:00
|
|
|
source=(http://www.imagemagick.org/download/releases/ImageMagick-${pkgver%.*}-${pkgver##*.}.tar.xz{,.asc}
|
2015-02-15 04:15:52 +08:00
|
|
|
'perlmagick.rpath.patch')
|
2016-03-18 05:35:24 +08:00
|
|
|
sha1sums=('fa557737223ac5c055d702cbeb0d69fea7b9b756'
|
2014-04-01 03:02:39 +08:00
|
|
|
'SKIP'
|
2013-07-28 00:51:03 +08:00
|
|
|
'23405f80904b1de94ebd7bd6fe2a332471b8c283')
|
2015-02-16 03:29:14 +08:00
|
|
|
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")
|
2013-07-28 00:51:03 +08:00
|
|
|
|
|
|
|
prepare() {
|
2015-02-15 04:15:52 +08:00
|
|
|
cd ImageMagick-${pkgver%.*}-${pkgver##*.}
|
|
|
|
sed '/AC_PATH_XTRA/d' -i configure.ac
|
|
|
|
autoreconf --force --install
|
|
|
|
patch -p0 -i "${srcdir}/perlmagick.rpath.patch"
|
2013-07-28 00:51:03 +08:00
|
|
|
}
|
2010-05-18 22:39:29 +08:00
|
|
|
|
|
|
|
build() {
|
2015-02-15 04:15:52 +08:00
|
|
|
cd ${srcdir}/ImageMagick-${pkgver%.*}-${pkgver##*.}
|
2010-05-18 22:39:29 +08:00
|
|
|
|
2015-02-15 04:15:52 +08:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--libdir=/usr/lib \
|
|
|
|
--localstatedir=/var \
|
2015-02-16 03:29:14 +08:00
|
|
|
--disable-static \
|
2015-02-15 04:15:52 +08:00
|
|
|
--enable-hdri \
|
2015-02-16 03:29:14 +08:00
|
|
|
--enable-opencl \
|
|
|
|
--with-dejavu-font-dir=/usr/share/fonts/TTF \
|
|
|
|
--with-fftw \
|
|
|
|
--with-gs-font-dir=/usr/share/fonts/Type1 \
|
|
|
|
--with-gslib \
|
|
|
|
--with-jp2 \
|
|
|
|
--with-lcms2 \
|
2015-02-15 04:15:52 +08:00
|
|
|
--with-modules \
|
|
|
|
--with-openexr \
|
|
|
|
--with-perl \
|
|
|
|
--with-perl-options="INSTALLDIRS=vendor" \
|
2015-02-16 03:29:14 +08:00
|
|
|
--with-rsvg \
|
|
|
|
--with-webp \
|
|
|
|
--with-wmf \
|
|
|
|
--with-x \
|
|
|
|
--with-xml \
|
2015-02-15 04:15:52 +08:00
|
|
|
--without-autotrace \
|
|
|
|
--without-dps \
|
2015-02-16 03:29:14 +08:00
|
|
|
--without-fpx \
|
|
|
|
--without-gvc \
|
|
|
|
--without-jbig
|
|
|
|
# --enable-openmp \
|
|
|
|
|
2015-02-15 04:15:52 +08:00
|
|
|
make
|
2010-05-18 22:39:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2015-02-15 04:15:52 +08:00
|
|
|
cd ${srcdir}/ImageMagick-${pkgver%.*}-${pkgver##*.}
|
2010-05-18 22:39:29 +08:00
|
|
|
|
2015-02-15 04:15:52 +08:00
|
|
|
make DESTDIR=${pkgdir} install
|
2010-05-18 22:39:29 +08:00
|
|
|
|
2015-02-15 04:15:52 +08:00
|
|
|
install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
|
|
|
|
install -Dm644 NOTICE ${pkgdir}/usr/share/licenses/${pkgname}/NOTICE
|
2010-05-18 22:39:29 +08:00
|
|
|
}
|