wok-6.x view imagemagick/receipt @ rev 24264
updated perl-tk (804.034 -> 804.036)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Jan 02 10:23:39 2022 +0100 (2022-01-02) |
parents | 333648262dc5 |
children | 83b97236db32 |
line source
1 # SliTaz package receipt.
3 PACKAGE="imagemagick"
4 VERSION="7.0.9.26"
5 SHORT_VERSION="${VERSION%.*}"
6 CATEGORY="graphics"
7 TAGS="image photo toolkit"
8 SHORT_DESC="Images manipulation programs."
9 MAINTAINER="pankso@slitaz.org"
10 LICENSE="Apache"
11 WEB_SITE="https://www.imagemagick.org/"
13 SOURCE="ImageMagick"
14 TARBALL="$SOURCE-${VERSION%.*}-${VERSION##*.}.tar.xz"
15 WGET_URL="${WEB_SITE}download/releases/$TARBALL"
17 DEPENDS="bzlib cairo expat fftw fontconfig freetype gcc-lib-base
18 graphviz ilmbase jasper jbigkit jpeg lcms libcroco libgio
19 libgomp libgsf libltdl libpng librsvg libxml2 openexr
20 pango tiff xorg-libXext"
21 BUILD_DEPENDS="bzip2-dev cairo-dev expat-dev fftw-dev fontconfig-dev \
22 freetype-dev graphviz-dev ilmbase-dev jasper-dev jpeg-dev \
23 lcms-dev libcroco-dev libgio-dev libgsf-dev libpng-dev \
24 librsvg-dev libtool libxml2-dev openexr-dev pango-dev perl \
25 tiff-dev util-linux-uuid-dev xorg-libXext-dev"
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 ./configure \
31 --prefix=/usr \
32 --infodir=/usr/share/info \
33 --mandir=/usr/share/man \
34 --sysconfdir=/etc \
35 --with-magick-plus-plus \
36 --with-modules \
37 --with-perl \
38 --enable-hdri \
39 $CONFIGURE_ARGS &&
40 make $MAKEFLAGS &&
41 make DESTDIR=$DESTDIR install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/lib
48 mkdir -p $fs/usr/share
50 cp -a $install/etc $fs
51 cp -a $install/usr/bin $fs/usr
52 cp -a $install/usr/lib/*.so* $fs/usr/lib
53 cp -a $install/usr/lib/$SOURCE-$SHORT_VERSION $fs/usr/lib
54 cp -a $install/usr/share/$SOURCE-* $fs/usr/share
56 # CVE-2016-3714 work around v5
57 sed -i '/<policymap>/r/dev/stdin' $fs/etc/ImageMagick-7/policy.xml <<EOT
58 <policy domain="coder" rights="none" pattern="EPHEMERAL" />
59 <policy domain="coder" rights="none" pattern="URL" />
60 <policy domain="coder" rights="none" pattern="HTTPS" />
61 <policy domain="coder" rights="none" pattern="MVG" />
62 <policy domain="coder" rights="none" pattern="MSL" />
63 <policy domain="coder" rights="none" pattern="TEXT" />
64 <policy domain="coder" rights="none" pattern="SHOW" />
65 <policy domain="coder" rights="none" pattern="WIN" />
66 <policy domain="coder" rights="none" pattern="PLT" />
67 EOT
68 }