wok-next view imagemagick6/receipt @ rev 21087
Updates...
Revert names: libsdl -> sdl, libsmpeg -> smpeg, libtdb -> tdb
Revert names: libsdl -> sdl, libsmpeg -> smpeg, libtdb -> tdb
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Dec 28 05:11:49 2018 +0200 (2018-12-28) |
parents | 5669e8b3be70 |
children | e19ff076dc63 |
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="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/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 libx11-dev libice-dev libxext-dev \
17 libxt-dev zlib-dev libtool fftw-dev fontconfig-dev freetype-dev \
18 libjpeg-turbo-dev lcms2-dev xz-dev pango-dev libpng-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="$PACKAGE-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=$install 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 lcms2 libgomp \
52 libjpeg-turbo libltdl liblzma libpng libxml2 openexr pango libtiff \
53 libx11 libxext zlib"
54 TAGS="image photo toolkit"
55 ;;
56 *-dev)
57 copy @dev
58 DEPENDS="imagemagick6 \
59 bzip2-dev fftw-dev fontconfig-dev freetype-dev lcms2-dev libgomp \
60 libltdl libice-dev libsm-dev libx11-dev \
61 libxext-dev libxt-dev xz-dev zlib-dev"
62 ;;
63 esac
64 }