wok-next view imagemagick6/receipt @ rev 20674
Up putty (0.70)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 12 05:17:48 2018 +0300 (2018-05-12) |
parents | fcbd6baa8d54 |
children | 342b30daff76 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="imagemagick6"
4 VERSION="6.9.9-9"
5 CATEGORY="graphics"
6 SHORT_DESC="ImageMagick (v.6) - 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/imagemagick6.html"
12 TARBALL="ImageMagick-$VERSION.tar.xz"
13 #WGET_URL="https://www.imagemagick.org/download/releases/$TARBALL" # not available here now
14 WGET_URL="ftp://ftp.osuosl.org/pub/blfs/conglomeration/ImageMagick/$TARBALL"
16 BUILD_DEPENDS="bzip2-dev xorg-libX11-dev xorg-libICE-dev xorg-libXext-dev \
17 xorg-libXt-dev zlib-dev libtool fftw-dev fontconfig-dev freetype-dev \
18 libjpeg-turbo-dev lcms2-dev xz-dev pango-dev libpng16-dev tiff-dev \
19 libxml2-dev librsvg-dev perl-dev util-linux-uuid-dev jasper-dev ilmbase-dev \
20 openexr-dev libgsf-dev" # graphviz-dev
21 SPLIT="imagemagick6-dev"
23 compile_rules() {
24 ./configure \
25 --enable-hdri \
26 --with-modules \
27 --disable-static \
28 $CONFIGURE_ARGS &&
29 fix libtool &&
30 make $MAKEFLAGS &&
31 make DESTDIR=$DESTDIR install-libs-only
32 }
34 genpkg_rules() {
35 case $PACKAGE in
36 imagemagick6)
37 copy @std
39 # CVE-2016-3714 work around v5
40 sed -i '/<policymap>/r/dev/stdin' $fs/etc/ImageMagick-6/policy.xml <<EOT
41 <policy domain="coder" rights="none" pattern="EPHEMERAL" />
42 <policy domain="coder" rights="none" pattern="URL" />
43 <policy domain="coder" rights="none" pattern="HTTPS" />
44 <policy domain="coder" rights="none" pattern="MVG" />
45 <policy domain="coder" rights="none" pattern="MSL" />
46 <policy domain="coder" rights="none" pattern="TEXT" />
47 <policy domain="coder" rights="none" pattern="SHOW" />
48 <policy domain="coder" rights="none" pattern="WIN" />
49 <policy domain="coder" rights="none" pattern="PLT" />
50 EOT
51 DEPENDS="bzlib cairo fftw fontconfig freetype glib ilmbase lcms2 \
52 libffi libgomp libharfbuzz libjpeg-turbo libltdl liblzma libpng16 \
53 libxml2 openexr pango pcre tiff util-linux-uuid xorg-libICE \
54 xorg-libSM xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext \
55 xorg-libXrender xorg-libXt xorg-libxcb xorg-pixman zlib"
56 TAGS="image photo toolkit"
57 ;;
58 *-dev)
59 copy @dev
60 DEPENDS="imagemagick6 bzip2-dev cairo-dev fftw-dev fontconfig-dev \
61 freetype-dev glib-dev harfbuzz-dev ilmbase-dev lcms2-dev \
62 libffi-dev libjpeg-turbo-dev libpng16-dev libtool libxml2-dev \
63 openexr-dev pango-dev pcre-dev tiff-dev util-linux-uuid-dev \
64 xorg-libICE-dev xorg-libSM-dev xorg-libX11-dev xorg-libXau-dev \
65 xorg-libXdmcp-dev xorg-libXext-dev xorg-libXrender-dev \
66 xorg-libXt-dev xorg-libxcb-dev xorg-pixman-dev xz-dev zlib-dev"
67 ;;
68 esac
69 }