Date: Thursday, January 27, 2011 @ 01:52:45 Author: eric Revision: 107846
upgpkg: imagemagick 6.6.7.3-1 Upstream update, Splitted package for imagemagick-doc, Added libpng optdepends (close FS#22076) Modified: imagemagick/trunk/PKGBUILD ----------+ PKGBUILD | 89 ++++++++++++++++++++++++++++++++++--------------------------- 1 file changed, 50 insertions(+), 39 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2011-01-27 06:51:18 UTC (rev 107845) +++ PKGBUILD 2011-01-27 06:52:45 UTC (rev 107846) @@ -1,57 +1,68 @@ # $Id$ -# Contributor: Eric Belanger <e...@archlinux.org> +# Maintainer: Eric Bélanger <e...@archlinux.org> # Maintainer: DAniel J Griffiths <ghost1...@archlinux.us> -pkgname=imagemagick -pkgver=6.6.6.10 -pkgrel=2 -pkgdesc="An image viewing/manipulation program" +pkgbase=imagemagick +pkgname=('imagemagick' 'imagemagick-doc') +pkgver=6.6.7.3 +pkgrel=1 arch=('i686' 'x86_64') url="http://www.imagemagick.org/" license=('custom') -depends=('libtool' 'lcms' 'libxt' 'gcc-libs' 'bzip2' 'freetype2' 'fontconfig' 'libxext') -makedepends=('ghostscript>=9.00' 'openexr' 'libwmf' 'librsvg' 'libxml2' 'jasper' 'libpng') -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') -options=('!makeflags' '!docs' 'force') +depends=('libtool' 'lcms' 'libxt' 'gcc-libs' 'bzip2' 'xz' 'freetype2' 'fontconfig' 'libxext') +makedepends=('ghostscript' 'openexr' 'libwmf' 'librsvg' 'libxml2' 'jasper' 'libpng') source=(ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-${pkgver%.*}-${pkgver##*.}.tar.xz \ - libpng_mmx_patch_x86_64.patch - perlmagick.rpath.patch) -md5sums=('59e2da8333ef645ade5f490c270651a1' - '069980fc2590c02aed86420996259302' + libpng_mmx_patch_x86_64.patch perlmagick.rpath.patch) +md5sums=('192eaa7e3cb763bd824c23f7cb3eaa56' '069980fc2590c02aed86420996259302'\ 'ff9974decbfe9846f8e347239d87e4eb') +sha1sums=('60cf1588185b257c7fb1fc1eb9b186d0f617375a' 'e42f3acbe85b6098af75c5cecc9a254baaa0482c'\ + '23405f80904b1de94ebd7bd6fe2a332471b8c283') build() { - cd "${srcdir}"/ImageMagick-${pkgver%.*}-${pkgver##*.} + cd "${srcdir}"/ImageMagick-${pkgver%.*}-${pkgver##*.} - if [ "${CARCH}" = 'x86_64' ]; then - patch -Np1 < ../libpng_mmx_patch_x86_64.patch - fi + if [ "${CARCH}" = 'x86_64' ]; then + patch -Np1 < ../libpng_mmx_patch_x86_64.patch + fi - patch -p0 < ../perlmagick.rpath.patch - - ./configure --prefix=/usr --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 --without-djvu --without-autotrace --with-jp2 \ - --without-jbig --without-fpx --without-dps - make + patch -p0 < ../perlmagick.rpath.patch + ./configure --prefix=/usr --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 --without-djvu --without-autotrace --with-jp2 \ + --without-jbig --without-fpx --without-dps --without-fftw + make } -package() { - cd "${srcdir}"/ImageMagick-${pkgver%.*}-${pkgver##*.} +package_imagemagick() { + pkgdesc="An image viewing/manipulation program" + 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' \ + 'libpng: for PNG support') + options=('!makeflags' '!docs') - make DESTDIR="${pkgdir}" install + cd "${srcdir}"/ImageMagick-${pkgver%.*}-${pkgver##*.} + make DESTDIR="${pkgdir}" install + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/imagemagick/LICENSE" + install -Dm644 NOTICE "${pkgdir}/usr/share/licenses/imagemagick/NOTICE" - install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - install -Dm644 NOTICE "${pkgdir}/usr/share/licenses/${pkgname}/NOTICE" +#Cleaning + find "${pkgdir}" -name '*.bs' -exec rm {} \; + rm -f "${pkgdir}"/usr/lib/*.la +} - #Cleaning - find "${pkgdir}" -name '*.bs' -exec rm {} \; - rm -f "${pkgdir}"/usr/lib/*.la +package_imagemagick-doc() { + pkgdesc="The ImageMagick documentation (utilities manuals and libraries API)" + depends=() + options=('!makeflags') + + cd "${srcdir}"/ImageMagick-${pkgver%.*}-${pkgver##*.} + make DESTDIR="${pkgdir}" install-data-html + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/imagemagick-doc/LICENSE" + install -Dm644 NOTICE "${pkgdir}/usr/share/licenses/imagemagick-doc/NOTICE" }