core/imagemagick/PKGBUILD

73 lines
2.1 KiB
Bash
Raw Normal View History

2015-02-13 19:58:43 +08:00
# Maintainer: Chaoting Liu <brli@sourceforge.net>
pkgname=imagemagick
2014-04-01 03:02:39 +08:00
pkgver=6.8.8.9
2015-02-13 19:58:43 +08:00
pkgrel=4
pkgdesc="An image viewing/manipulation program"
arch=('x86_64')
url="http://www.imagemagick.org/"
license=('custom')
depends=('libltdl' 'lcms' 'lcms2' 'libxt' 'gcc-libs' 'bzip2' 'freetype2' 'fontconfig'
'libxext' 'fftw' 'liblqr' 'libwmf' 'librsvg' 'libxml2' 'perl' )
2015-02-13 19:58:43 +08:00
makedepends=('ghostscript' 'openexr' 'jasper' 'subversion' 'ttf-dejavu')
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-01-28 23:58:42 +08:00
options=('!makeflags' '!docs')
2014-04-01 03:02:39 +08:00
source=(ftp://ftp.sunet.se/pub/multimedia/graphics/ImageMagick/ImageMagick-${pkgver%.*}-${pkgver##*.}.tar.xz{,.asc}
'perlmagick.rpath.patch')
2014-04-01 03:02:39 +08:00
sha1sums=('3ad2deadbc7e7c6e61eb5590fcc49d71fd96b247'
'SKIP'
'23405f80904b1de94ebd7bd6fe2a332471b8c283')
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 \
2015-01-28 22:23:41 +08:00
--sysconfdir=/etc \
2015-02-13 19:58:43 +08:00
--libdir=/usr/lib \
2015-01-28 22:23:41 +08:00
--localstatedir=/var \
2015-02-13 19:58:43 +08:00
--enable-hdri \
--with-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 \
2015-02-13 19:58:43 +08:00
--with-dejavu-font-dir=/usr/share/fonts/TTF \
--without-autotrace \
--with-jp2 \
--without-jbig \
--without-fpx \
--without-dps \
2015-01-28 22:23:41 +08:00
--with-fftw
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
}