wok-next view imagemagick/receipt @ rev 20200
libgnomeprint: add bison 3 patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 03 17:38:15 2017 +0100 (2017-11-03) |
parents | e70c0b9c5adf |
children | fcbd6baa8d54 |
line source
1 # SliTaz package receipt v2.
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/"
11 TARBALL="ImageMagick-$VERSION.tar.xz"
12 WGET_URL="https://www.imagemagick.org/download/releases/$TARBALL"
14 BUILD_DEPENDS="bzip2-dev xorg-libX11-dev xorg-libICE-dev xorg-libXext-dev \
15 xorg-libXt-dev zlib-dev libtool fftw-dev fontconfig-dev freetype-dev \
16 libjpeg-turbo-dev lcms2-dev xz-dev pango-dev libpng-dev tiff-dev \
17 libxml2-dev librsvg-dev perl-dev util-linux-uuid-dev"
18 # jasper-dev ilmbase-dev openexr-dev graphviz-dev libgsf-dev
19 SPLIT="imagemagick-dev perl-image-magick"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 ./configure \
25 --sysconfdir=/etc \
26 --with-perl \
27 --with-magick-plus-plus \
28 --with-modules \
29 --enable-hdri \
30 --with-rsvg \
31 --disable-static \
32 $CONFIGURE_ARGS &&
33 make $MAKEFLAGS &&
34 make DESTDIR=$DESTDIR install
36 chmod -R u+w $install/usr/lib/perl5/
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 case $PACKAGE in
43 imagemagick)
44 copy @std
46 # CVE-2016-3714 work around v5
47 sed -i '/<policymap>/r/dev/stdin' $fs/etc/ImageMagick-7/policy.xml <<EOT
48 <policy domain="coder" rights="none" pattern="EPHEMERAL" />
49 <policy domain="coder" rights="none" pattern="URL" />
50 <policy domain="coder" rights="none" pattern="HTTPS" />
51 <policy domain="coder" rights="none" pattern="MVG" />
52 <policy domain="coder" rights="none" pattern="MSL" />
53 <policy domain="coder" rights="none" pattern="TEXT" />
54 <policy domain="coder" rights="none" pattern="SHOW" />
55 <policy domain="coder" rights="none" pattern="WIN" />
56 <policy domain="coder" rights="none" pattern="PLT" />
57 EOT
58 DEPENDS="bzlib cairo fftw fontconfig freetype gdk-pixbuf glib \
59 harfbuzz lcms2 libcroco libffi libgomp libjpeg-turbo \
60 libltdl liblzma libpng librsvg libxcb libxml2 pango pcre pixman \
61 tiff util-linux-uuid xorg-libICE xorg-libSM xorg-libX11 \
62 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXrender xorg-libXt \
63 zlib"
64 TAGS="image photo toolkit"
65 ;;
66 *-dev)
67 copy @dev
68 DEPENDS="imagemagick bzip2-dev cairo-dev fftw-dev fontconfig-dev \
69 freetype-dev gdk-pixbuf-dev glib-dev glibc-dev harfbuzz-dev \
70 lcms2-dev libcroco-dev libffi-dev libjpeg-turbo-dev \
71 liblzma-dev libpng-dev librsvg-dev libtool libxcb-dev libxml2-dev \
72 pango-dev pcre-dev pixman-dev tiff-dev util-linux-uuid-dev \
73 xorg-libICE-dev xorg-libSM-dev xorg-libX11-dev xorg-libXau-dev \
74 xorg-libXdmcp-dev xorg-libXext-dev xorg-libXrender-dev \
75 xorg-libXt-dev zlib-dev"
76 ;;
77 perl-image-magick)
78 copy perl5/
79 CAT="perl|Image::Magick Perl module"
80 DEPENDS="perl imagemagick"
81 ;;
82 esac
83 }