core/imagemagick/PKGBUILD

87 lines
2.8 KiB
Bash
Raw Normal View History

pkgname=imagemagick
pkgver=6.9.4.7
pkgrel=1
pkgdesc="An image viewing/manipulation program"
arch=('x86_64')
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')
optdepends=('ghostscript: for Ghostscript support'
'openexr: for OpenEXR support'
2014-04-01 03:02:39 +08:00
'jasper: for JPEG-2000 support'
'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')
source=(http://www.imagemagick.org/download/releases/ImageMagick-${pkgver%.*}-${pkgver##*.}.tar.xz{,.asc}
'perlmagick.rpath.patch')
sha1sums=('d386de76334a7c1c13f40d337a0f38b18c4ca86c'
2014-04-01 03:02:39 +08:00
'SKIP'
'e143cf9d530fabf3b58023899b5cc544ba93daec')
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")
prepare() {
cd ImageMagick-${pkgver%.*}-${pkgver##*.}
sed '/AC_PATH_XTRA/d' -i configure.ac
autoreconf --force --install
patch -p0 -i "${srcdir}/perlmagick.rpath.patch"
}
build() {
cd ${srcdir}/ImageMagick-${pkgver%.*}-${pkgver##*.}
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--libdir=/usr/lib \
--localstatedir=/var \
2015-02-16 03:29:14 +08:00
--disable-static \
--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-openjp2 \
--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-xml \
--without-autotrace \
--without-dps \
2015-02-16 03:29:14 +08:00
--without-fpx \
--without-gvc \
--without-jbig
make
}
package() {
cd ${srcdir}/ImageMagick-${pkgver%.*}-${pkgver##*.}
make DESTDIR=${pkgdir} install
install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
install -Dm644 NOTICE ${pkgdir}/usr/share/licenses/${pkgname}/NOTICE
}