wok-next view imagemagick/receipt @ rev 19769
Update Perl XS modules that need perl-dev to build (unlike Pure Perl), rebuild all module packages as Perl version change.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jun 14 09:51:23 2017 +0300 (2017-06-14) |
parents | 18bbc96124a7 |
children | bc6672455954 |
line source
1 # SliTaz package receipt.
3 PACKAGE="imagemagick"
4 VERSION="7.0.5-5"
5 CATEGORY="graphics"
6 SHORT_DESC="ImageMagick - convert, edit, and compose images"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="Apache"
9 WEB_SITE="http://www.imagemagick.org/"
10 TAGS="image photo toolkit"
12 TARBALL="ImageMagick-$VERSION.tar.xz"
13 WGET_URL="https://www.imagemagick.org/download/releases/$TARBALL"
15 DEPENDS="bzlib cairo fftw fontconfig freetype gdk-pixbuf glib harfbuzz lcms2 \
16 libcroco libffi libgio libgomp libjpeg-turbo libltdl liblzma libpng librsvg \
17 libxcb libxml2 pango pcre pixman tiff util-linux-uuid xorg-libICE xorg-libSM \
18 xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXrender xorg-libXt \
19 zlib"
20 BUILD_DEPENDS="bzip2-dev xorg-libX11-dev xorg-libICE-dev xorg-libXext-dev \
21 xorg-libXt-dev zlib-dev libtool fftw-dev fontconfig-dev freetype-dev \
22 libjpeg-turbo-dev lcms2-dev liblzma-dev pango-dev libpng-dev tiff-dev \
23 libxml2-dev librsvg-dev perl util-linux-uuid-dev"
24 # jasper-dev ilmbase-dev openexr-dev graphviz-dev libgsf-dev
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./configure \
30 --sysconfdir=/etc \
31 --with-perl \
32 --with-magick-plus-plus \
33 --with-modules \
34 --enable-hdri \
35 --with-rsvg \
36 --disable-static \
37 $CONFIGURE_ARGS &&
38 make $MAKEFLAGS &&
39 make DESTDIR=$DESTDIR install
41 chmod -R u+w $install/usr/lib/perl5/
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 copy @std
49 # CVE-2016-3714 work around v5
50 sed -i '/<policymap>/r/dev/stdin' $fs/etc/ImageMagick-7/policy.xml <<EOT
51 <policy domain="coder" rights="none" pattern="EPHEMERAL" />
52 <policy domain="coder" rights="none" pattern="URL" />
53 <policy domain="coder" rights="none" pattern="HTTPS" />
54 <policy domain="coder" rights="none" pattern="MVG" />
55 <policy domain="coder" rights="none" pattern="MSL" />
56 <policy domain="coder" rights="none" pattern="TEXT" />
57 <policy domain="coder" rights="none" pattern="SHOW" />
58 <policy domain="coder" rights="none" pattern="WIN" />
59 <policy domain="coder" rights="none" pattern="PLT" />
60 EOT
61 }