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