wok-next annotate imagemagick/receipt @ rev 20749
pcre package was split into separate libs. Update the dependencies of the packages that previously depended on pcre.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jun 01 00:47:43 2018 +0300 (2018-06-01) |
parents | 757d032c55c7 |
children | f48456621a9d |
rev | line source |
---|---|
al@19770 | 1 # SliTaz package receipt v2. |
pankso@294 | 2 |
pankso@294 | 3 PACKAGE="imagemagick" |
al@20224 | 4 VERSION="7.0.6-10" |
pankso@294 | 5 CATEGORY="graphics" |
al@19713 | 6 SHORT_DESC="ImageMagick - convert, edit, and compose images" |
pankso@294 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15600 | 8 LICENSE="Apache" |
al@20224 | 9 WEB_SITE="https://www.imagemagick.org/script/index.php" |
al@20224 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/imagemagick.html" |
pankso@294 | 11 |
al@19713 | 12 TARBALL="ImageMagick-$VERSION.tar.xz" |
al@19713 | 13 WGET_URL="https://www.imagemagick.org/download/releases/$TARBALL" |
al@19713 | 14 |
al@19713 | 15 BUILD_DEPENDS="bzip2-dev xorg-libX11-dev xorg-libICE-dev xorg-libXext-dev \ |
al@19713 | 16 xorg-libXt-dev zlib-dev libtool fftw-dev fontconfig-dev freetype-dev \ |
al@20224 | 17 libjpeg-turbo-dev lcms2-dev xz-dev pango-dev libpng16-dev tiff-dev \ |
al@20224 | 18 libxml2-dev librsvg-dev perl-dev util-linux-uuid-dev jasper-dev ilmbase-dev \ |
al@20471 | 19 openexr-dev libgsf-dev libcroco-dev" # graphviz-dev |
al@20224 | 20 SPLIT="perl-image-magick imagemagick imagemagick-dev" |
pascal@14393 | 21 |
al@20471 | 22 compile_rules() { |
pankso@294 | 23 ./configure \ |
pascal@17438 | 24 --with-perl \ |
devl547@10894 | 25 --with-magick-plus-plus \ |
slaxemulator@12937 | 26 --with-modules \ |
devl547@10893 | 27 --enable-hdri \ |
al@19713 | 28 --with-rsvg \ |
al@19713 | 29 --disable-static \ |
pascal@2310 | 30 $CONFIGURE_ARGS && |
al@20534 | 31 fix libtool && |
gokhlayeh@11574 | 32 make $MAKEFLAGS && |
al@20534 | 33 make DESTDIR=$DESTDIR install || return 1 |
al@19713 | 34 |
al@19713 | 35 chmod -R u+w $install/usr/lib/perl5/ |
pankso@294 | 36 } |
pankso@294 | 37 |
al@20471 | 38 genpkg_rules() { |
al@19770 | 39 case $PACKAGE in |
al@20224 | 40 perl-image-magick) |
al@20224 | 41 copy perl5/ |
al@20224 | 42 CAT="perl|Image::Magick Perl module" |
al@20749 | 43 DEPENDS="imagemagick perl" |
al@20224 | 44 ;; |
al@19770 | 45 imagemagick) |
al@20749 | 46 copy @std @rm *.la |
pascal@19107 | 47 |
al@19770 | 48 # CVE-2016-3714 work around v5 |
al@19770 | 49 sed -i '/<policymap>/r/dev/stdin' $fs/etc/ImageMagick-7/policy.xml <<EOT |
pascal@19107 | 50 <policy domain="coder" rights="none" pattern="EPHEMERAL" /> |
pascal@19107 | 51 <policy domain="coder" rights="none" pattern="URL" /> |
pascal@19107 | 52 <policy domain="coder" rights="none" pattern="HTTPS" /> |
pascal@19107 | 53 <policy domain="coder" rights="none" pattern="MVG" /> |
pascal@19107 | 54 <policy domain="coder" rights="none" pattern="MSL" /> |
pascal@19107 | 55 <policy domain="coder" rights="none" pattern="TEXT" /> |
pascal@19107 | 56 <policy domain="coder" rights="none" pattern="SHOW" /> |
pascal@19107 | 57 <policy domain="coder" rights="none" pattern="WIN" /> |
pascal@19107 | 58 <policy domain="coder" rights="none" pattern="PLT" /> |
pascal@19107 | 59 EOT |
al@20749 | 60 DEPENDS="bzlib cairo fftw fontconfig freetype glib lcms2 libgomp \ |
al@20749 | 61 libjpeg-turbo libltdl liblzma libpng16 librsvg libxml2 openexr \ |
al@20749 | 62 pango tiff xorg-libX11 xorg-libXext zlib" |
al@19770 | 63 TAGS="image photo toolkit" |
al@19770 | 64 ;; |
al@19770 | 65 *-dev) |
al@19770 | 66 copy @dev |
al@20749 | 67 DEPENDS="imagemagick \ |
al@20749 | 68 bzip2-dev fftw-dev fontconfig-dev freetype-dev lcms2-dev libgomp \ |
al@20749 | 69 libltdl xorg-libICE-dev xorg-libSM-dev xorg-libX11-dev \ |
al@20749 | 70 xorg-libXext-dev xorg-libXt-dev xz-dev zlib-dev" |
al@19770 | 71 ;; |
al@19770 | 72 esac |
pankso@294 | 73 } |