wok-next view imagemagick/receipt @ rev 21031
Random updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Nov 03 15:42:26 2018 +0200 (2018-11-03) |
parents | f48456621a9d |
children | 5669e8b3be70 |
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="devel@slitaz.org"
8 LICENSE="Apache"
9 WEB_SITE="https://www.imagemagick.org/script/index.php"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/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 libcroco-dev" # graphviz-dev
20 SPLIT="perl-image-magick $PACKAGE $PACKAGE-dev"
22 compile_rules() {
23 ./configure \
24 --with-perl \
25 --with-magick-plus-plus \
26 --with-modules \
27 --enable-hdri \
28 --with-rsvg \
29 --disable-static \
30 $CONFIGURE_ARGS &&
31 fix libtool &&
32 make $MAKEFLAGS &&
33 make DESTDIR=$install install || return 1
35 chmod -R u+w $install/usr/lib/perl5/
36 }
38 genpkg_rules() {
39 case $PACKAGE in
40 perl-image-magick)
41 copy perl5/
42 CAT="perl|Image::Magick Perl module"
43 DEPENDS="imagemagick perl"
44 ;;
45 imagemagick)
46 copy @std @rm *.la
48 # CVE-2016-3714 work around v5
49 sed -i '/<policymap>/r/dev/stdin' $fs/etc/ImageMagick-7/policy.xml <<EOT
50 <policy domain="coder" rights="none" pattern="EPHEMERAL" />
51 <policy domain="coder" rights="none" pattern="URL" />
52 <policy domain="coder" rights="none" pattern="HTTPS" />
53 <policy domain="coder" rights="none" pattern="MVG" />
54 <policy domain="coder" rights="none" pattern="MSL" />
55 <policy domain="coder" rights="none" pattern="TEXT" />
56 <policy domain="coder" rights="none" pattern="SHOW" />
57 <policy domain="coder" rights="none" pattern="WIN" />
58 <policy domain="coder" rights="none" pattern="PLT" />
59 EOT
60 DEPENDS="bzlib cairo fftw fontconfig freetype glib lcms2 libgomp \
61 libjpeg-turbo libltdl liblzma libpng16 librsvg libxml2 openexr \
62 pango tiff xorg-libX11 xorg-libXext zlib"
63 TAGS="image photo toolkit"
64 ;;
65 *-dev)
66 copy @dev
67 DEPENDS="imagemagick \
68 bzip2-dev fftw-dev fontconfig-dev freetype-dev lcms2-dev libgomp \
69 libltdl xorg-libICE-dev xorg-libSM-dev xorg-libX11-dev \
70 xorg-libXext-dev xorg-libXt-dev xz-dev zlib-dev"
71 ;;
72 esac
73 }