wok-next view imagemagick/receipt @ rev 19681
Up cookutils, cups, fontconfig, gtk+, ijs, paper-icon-theme, poppler, qpdf.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 07 17:30:10 2017 +0300 (2017-04-07) |
parents | 6f05c710673c |
children | 827e7447f207 |
line source
1 # SliTaz package receipt.
3 PACKAGE="imagemagick"
4 VERSION="6.8.4-10"
5 SHORT_VERSION="${VERSION%-*}"
6 CATEGORY="graphics"
7 SHORT_DESC="Images manipulation programs."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="Apache"
10 SOURCE="ImageMagick"
11 TARBALL="$SOURCE-$VERSION.tar.xz"
12 WEB_SITE="http://www.imagemagick.org/"
13 WGET_URL="http://mirror.checkdomain.de/$PACKAGE/$TARBALL"
14 TAGS="image photo toolkit"
16 DEPENDS="xorg-libXext jpeg libpng tiff libxml2 freetype libgomp bzlib expat \
17 fontconfig lcms jasper ilmbase openexr graphviz librsvg libgsf libgio cairo \
18 pango gcc-lib-base jbigkit libcroco fftw libltdl"
19 BUILD_DEPENDS="xorg-libXext-dev jpeg-dev libpng-dev tiff-dev libxml2-dev \
20 freetype-dev bzip2-dev expat-dev fontconfig-dev lcms-dev jasper-dev \
21 ilmbase-dev openexr-dev graphviz-dev librsvg-dev libgsf-dev libgio-dev \
22 perl cairo-dev pango-dev libcroco-dev fftw-dev util-linux-uuid-dev libtool"
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src
28 ./configure \
29 --prefix=/usr \
30 --infodir=/usr/share/info \
31 --mandir=/usr/share/man \
32 --sysconfdir=/etc \
33 --with-perl \
34 --with-magick-plus-plus \
35 --with-modules \
36 --enable-hdri \
37 $CONFIGURE_ARGS &&
38 make $MAKEFLAGS &&
39 make DESTDIR=$DESTDIR install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/lib $fs/usr/share
46 cp -a $install/etc $fs
47 cp -a $install/usr/bin $fs/usr
48 cp -a $install/usr/lib/*.so* $fs/usr/lib
49 cp -a $install/usr/lib/$SOURCE-$SHORT_VERSION $fs/usr/lib
50 cp -a $install/usr/share/$SOURCE-* $fs/usr/share
52 # CVE-2016-3714 work around v5
53 sed -i '/<policymap>/r/dev/stdin' $fs/etc/ImageMagick-6/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 }