wok-next view imagemagick/receipt @ rev 21727
created recipe for vbindiff
author | Hans-G?nter Theisgen |
---|---|
date | Sat Nov 21 14:32:44 2020 +0100 (2020-11-21) |
parents | 82b613cfd1e0 |
children |
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 COOKOPTS="force-arch" # different configs, .h
17 BUILD_DEPENDS="bzip2-dev libx11-dev libice-dev libxext-dev \
18 libxt-dev zlib-dev libtool fftw-dev fontconfig-dev freetype-dev \
19 libjpeg-turbo-dev lcms2-dev xz-dev pango-dev libpng-dev tiff-dev \
20 libxml2-dev librsvg-dev perl-dev util-linux-uuid-dev jasper-dev ilmbase-dev \
21 openexr-dev libgsf-dev libcroco-dev" # graphviz-dev
22 SPLIT="perl-image-magick $PACKAGE $PACKAGE-dev"
24 compile_rules() {
25 ./configure \
26 --with-perl \
27 --with-magick-plus-plus \
28 --with-modules \
29 --enable-hdri \
30 --with-rsvg \
31 --disable-static \
32 $CONFIGURE_ARGS &&
33 fix libtool &&
34 make $MAKEFLAGS &&
35 make DESTDIR=$install install || return 1
37 chmod -R u+w $install/usr/lib/perl5/
38 }
40 genpkg_rules() {
41 case $PACKAGE in
42 perl-image-magick)
43 copy perl5/
44 CAT="perl|Image::Magick Perl module"
45 DEPENDS="imagemagick perl"
46 ;;
47 imagemagick)
48 copy @std @rm *.la
50 # CVE-2016-3714 work around v5
51 sed -i '/<policymap>/r/dev/stdin' $fs/etc/ImageMagick-7/policy.xml <<EOT
52 <policy domain="coder" rights="none" pattern="EPHEMERAL" />
53 <policy domain="coder" rights="none" pattern="URL" />
54 <policy domain="coder" rights="none" pattern="HTTPS" />
55 <policy domain="coder" rights="none" pattern="MVG" />
56 <policy domain="coder" rights="none" pattern="MSL" />
57 <policy domain="coder" rights="none" pattern="TEXT" />
58 <policy domain="coder" rights="none" pattern="SHOW" />
59 <policy domain="coder" rights="none" pattern="WIN" />
60 <policy domain="coder" rights="none" pattern="PLT" />
61 EOT
62 DEPENDS="libbzip2 libcairo fftw fontconfig freetype glib liblcms2 libgomp \
63 libjpeg-turbo libltdl liblzma libpng librsvg libxml2 openexr \
64 pango libtiff libx11 libxext zlib"
65 TAGS="image photo toolkit"
66 ;;
67 *-dev)
68 copy @dev
69 DEPENDS="imagemagick \
70 bzip2-dev fftw-dev fontconfig-dev freetype-dev lcms2-dev libgomp \
71 libltdl libice-dev libsm-dev libx11-dev \
72 libxext-dev libxt-dev xz-dev zlib-dev"
73 ;;
74 esac
75 }