wok-next annotate imagemagick6/receipt @ rev 20337
orpheus: tiny patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Nov 16 21:37:29 2017 +0100 (2017-11-16) |
parents | f445ca69a6a7 |
children | 757d032c55c7 |
rev | line source |
---|---|
al@19771 | 1 # SliTaz package receipt v2. |
al@19713 | 2 |
al@19713 | 3 PACKAGE="imagemagick6" |
al@20224 | 4 VERSION="6.9.9-9" |
al@19713 | 5 CATEGORY="graphics" |
al@19713 | 6 SHORT_DESC="ImageMagick (v.6) - convert, edit, and compose images" |
al@19713 | 7 MAINTAINER="pankso@slitaz.org" |
al@19713 | 8 LICENSE="Apache" |
al@20224 | 9 WEB_SITE="https://www.imagemagick.org/script/index.php" |
al@20224 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/imagemagick6.html" |
al@19713 | 11 |
al@19713 | 12 TARBALL="ImageMagick-$VERSION.tar.xz" |
al@20224 | 13 #WGET_URL="https://www.imagemagick.org/download/releases/$TARBALL" # not available here now |
al@20224 | 14 WGET_URL="ftp://ftp.osuosl.org/pub/blfs/conglomeration/ImageMagick/$TARBALL" |
al@19713 | 15 |
al@19713 | 16 BUILD_DEPENDS="bzip2-dev xorg-libX11-dev xorg-libICE-dev xorg-libXext-dev \ |
al@19713 | 17 xorg-libXt-dev zlib-dev libtool fftw-dev fontconfig-dev freetype-dev \ |
al@20224 | 18 libjpeg-turbo-dev lcms2-dev xz-dev pango-dev libpng16-dev tiff-dev \ |
al@20224 | 19 libxml2-dev librsvg-dev perl-dev util-linux-uuid-dev jasper-dev ilmbase-dev \ |
al@20224 | 20 openexr-dev libgsf-dev" # graphviz-dev |
al@19771 | 21 SPLIT="imagemagick6-dev" |
al@19713 | 22 |
al@19713 | 23 # Rules to configure and make the package. |
al@19713 | 24 compile_rules() |
al@19713 | 25 { |
al@19713 | 26 ./configure \ |
al@19713 | 27 --sysconfdir=/etc \ |
al@20224 | 28 --enable-hdri \ |
al@19713 | 29 --with-modules \ |
al@19713 | 30 --disable-static \ |
al@19713 | 31 $CONFIGURE_ARGS && |
al@19713 | 32 make $MAKEFLAGS && |
al@20224 | 33 make DESTDIR=$DESTDIR install-libs-only |
al@19713 | 34 } |
al@19713 | 35 |
al@19713 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@19713 | 37 genpkg_rules() |
al@19713 | 38 { |
al@19771 | 39 case $PACKAGE in |
al@19771 | 40 imagemagick6) |
al@19771 | 41 copy @std |
al@19713 | 42 |
al@19771 | 43 # CVE-2016-3714 work around v5 |
al@19771 | 44 sed -i '/<policymap>/r/dev/stdin' $fs/etc/ImageMagick-6/policy.xml <<EOT |
al@19713 | 45 <policy domain="coder" rights="none" pattern="EPHEMERAL" /> |
al@19713 | 46 <policy domain="coder" rights="none" pattern="URL" /> |
al@19713 | 47 <policy domain="coder" rights="none" pattern="HTTPS" /> |
al@19713 | 48 <policy domain="coder" rights="none" pattern="MVG" /> |
al@19713 | 49 <policy domain="coder" rights="none" pattern="MSL" /> |
al@19713 | 50 <policy domain="coder" rights="none" pattern="TEXT" /> |
al@19713 | 51 <policy domain="coder" rights="none" pattern="SHOW" /> |
al@19713 | 52 <policy domain="coder" rights="none" pattern="WIN" /> |
al@19713 | 53 <policy domain="coder" rights="none" pattern="PLT" /> |
al@19713 | 54 EOT |
al@20224 | 55 DEPENDS="bzlib cairo fftw fontconfig freetype glib ilmbase lcms2 \ |
al@20224 | 56 libffi libgomp libharfbuzz libjpeg-turbo libltdl liblzma libpng16 \ |
al@20224 | 57 libxml2 openexr pango pcre tiff util-linux-uuid xorg-libICE \ |
al@20224 | 58 xorg-libSM xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext \ |
al@20224 | 59 xorg-libXrender xorg-libXt xorg-libxcb xorg-pixman zlib" |
al@19771 | 60 TAGS="image photo toolkit" |
al@19771 | 61 ;; |
al@19771 | 62 *-dev) |
al@19771 | 63 copy @dev |
al@19771 | 64 DEPENDS="imagemagick6 bzip2-dev cairo-dev fftw-dev fontconfig-dev \ |
al@20224 | 65 freetype-dev glib-dev harfbuzz-dev ilmbase-dev lcms2-dev \ |
al@20224 | 66 libffi-dev libjpeg-turbo-dev libpng16-dev libtool libxml2-dev \ |
al@20224 | 67 openexr-dev pango-dev pcre-dev tiff-dev util-linux-uuid-dev \ |
al@19771 | 68 xorg-libICE-dev xorg-libSM-dev xorg-libX11-dev xorg-libXau-dev \ |
al@19771 | 69 xorg-libXdmcp-dev xorg-libXext-dev xorg-libXrender-dev \ |
al@20224 | 70 xorg-libXt-dev xorg-libxcb-dev xorg-pixman-dev xz-dev zlib-dev" |
al@19771 | 71 ;; |
al@19771 | 72 esac |
al@19713 | 73 } |