wok-next view imagemagick6/receipt @ rev 20459
Combine receipts
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 02 13:45:43 2018 +0200 (2018-03-02) |
parents | f445ca69a6a7 |
children | 757d032c55c7 |
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 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure \
27 --sysconfdir=/etc \
28 --enable-hdri \
29 --with-modules \
30 --disable-static \
31 $CONFIGURE_ARGS &&
32 make $MAKEFLAGS &&
33 make DESTDIR=$DESTDIR install-libs-only
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 case $PACKAGE in
40 imagemagick6)
41 copy @std
43 # CVE-2016-3714 work around v5
44 sed -i '/<policymap>/r/dev/stdin' $fs/etc/ImageMagick-6/policy.xml <<EOT
45 <policy domain="coder" rights="none" pattern="EPHEMERAL" />
46 <policy domain="coder" rights="none" pattern="URL" />
47 <policy domain="coder" rights="none" pattern="HTTPS" />
48 <policy domain="coder" rights="none" pattern="MVG" />
49 <policy domain="coder" rights="none" pattern="MSL" />
50 <policy domain="coder" rights="none" pattern="TEXT" />
51 <policy domain="coder" rights="none" pattern="SHOW" />
52 <policy domain="coder" rights="none" pattern="WIN" />
53 <policy domain="coder" rights="none" pattern="PLT" />
54 EOT
55 DEPENDS="bzlib cairo fftw fontconfig freetype glib ilmbase lcms2 \
56 libffi libgomp libharfbuzz libjpeg-turbo libltdl liblzma libpng16 \
57 libxml2 openexr pango pcre tiff util-linux-uuid xorg-libICE \
58 xorg-libSM xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext \
59 xorg-libXrender xorg-libXt xorg-libxcb xorg-pixman zlib"
60 TAGS="image photo toolkit"
61 ;;
62 *-dev)
63 copy @dev
64 DEPENDS="imagemagick6 bzip2-dev cairo-dev fftw-dev fontconfig-dev \
65 freetype-dev glib-dev harfbuzz-dev ilmbase-dev lcms2-dev \
66 libffi-dev libjpeg-turbo-dev libpng16-dev libtool libxml2-dev \
67 openexr-dev pango-dev pcre-dev tiff-dev util-linux-uuid-dev \
68 xorg-libICE-dev xorg-libSM-dev xorg-libX11-dev xorg-libXau-dev \
69 xorg-libXdmcp-dev xorg-libXext-dev xorg-libXrender-dev \
70 xorg-libXt-dev xorg-libxcb-dev xorg-pixman-dev xz-dev zlib-dev"
71 ;;
72 esac
73 }