wok-next annotate imagemagick6/receipt @ rev 21231
updated clamtk (4.36 -> 5.27)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Dec 03 17:21:10 2019 +0100 (2019-12-03) |
parents | 82b613cfd1e0 |
children |
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@21020 | 7 MAINTAINER="devel@slitaz.org" |
al@19713 | 8 LICENSE="Apache" |
al@20224 | 9 WEB_SITE="https://www.imagemagick.org/script/index.php" |
al@21017 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/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@21094 | 16 COOKOPTS="force-arch" # different .h |
al@21094 | 17 |
al@21078 | 18 BUILD_DEPENDS="bzip2-dev libx11-dev libice-dev libxext-dev \ |
al@21078 | 19 libxt-dev zlib-dev libtool fftw-dev fontconfig-dev freetype-dev \ |
al@21078 | 20 libjpeg-turbo-dev lcms2-dev xz-dev pango-dev libpng-dev tiff-dev \ |
al@20224 | 21 libxml2-dev librsvg-dev perl-dev util-linux-uuid-dev jasper-dev ilmbase-dev \ |
al@20224 | 22 openexr-dev libgsf-dev" # graphviz-dev |
al@21020 | 23 SPLIT="$PACKAGE-dev" |
al@19713 | 24 |
al@20534 | 25 compile_rules() { |
al@19713 | 26 ./configure \ |
al@20224 | 27 --enable-hdri \ |
al@19713 | 28 --with-modules \ |
al@19713 | 29 --disable-static \ |
al@19713 | 30 $CONFIGURE_ARGS && |
al@20534 | 31 fix libtool && |
al@19713 | 32 make $MAKEFLAGS && |
al@21020 | 33 make DESTDIR=$install install-libs-only |
al@19713 | 34 } |
al@19713 | 35 |
al@20534 | 36 genpkg_rules() { |
al@19771 | 37 case $PACKAGE in |
al@19771 | 38 imagemagick6) |
al@19771 | 39 copy @std |
al@19713 | 40 |
al@19771 | 41 # CVE-2016-3714 work around v5 |
al@19771 | 42 sed -i '/<policymap>/r/dev/stdin' $fs/etc/ImageMagick-6/policy.xml <<EOT |
al@19713 | 43 <policy domain="coder" rights="none" pattern="EPHEMERAL" /> |
al@19713 | 44 <policy domain="coder" rights="none" pattern="URL" /> |
al@19713 | 45 <policy domain="coder" rights="none" pattern="HTTPS" /> |
al@19713 | 46 <policy domain="coder" rights="none" pattern="MVG" /> |
al@19713 | 47 <policy domain="coder" rights="none" pattern="MSL" /> |
al@19713 | 48 <policy domain="coder" rights="none" pattern="TEXT" /> |
al@19713 | 49 <policy domain="coder" rights="none" pattern="SHOW" /> |
al@19713 | 50 <policy domain="coder" rights="none" pattern="WIN" /> |
al@19713 | 51 <policy domain="coder" rights="none" pattern="PLT" /> |
al@19713 | 52 EOT |
al@21143 | 53 DEPENDS="libbzip2 libcairo fftw fontconfig freetype glib liblcms2 libgomp \ |
al@21080 | 54 libjpeg-turbo libltdl liblzma libpng libxml2 openexr pango libtiff \ |
al@21078 | 55 libx11 libxext zlib" |
al@19771 | 56 TAGS="image photo toolkit" |
al@19771 | 57 ;; |
al@19771 | 58 *-dev) |
al@19771 | 59 copy @dev |
al@20749 | 60 DEPENDS="imagemagick6 \ |
al@20749 | 61 bzip2-dev fftw-dev fontconfig-dev freetype-dev lcms2-dev libgomp \ |
al@21078 | 62 libltdl libice-dev libsm-dev libx11-dev \ |
al@21078 | 63 libxext-dev libxt-dev xz-dev zlib-dev" |
al@19771 | 64 ;; |
al@19771 | 65 esac |
al@19713 | 66 } |