wok-next annotate imagemagick/receipt @ rev 20424
linux-dev: move creation to compile_rules(), keep genpkg_rules() for copying/splitting only
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jan 12 17:02:57 2018 +0200 (2018-01-12) |
parents | f445ca69a6a7 |
children | bce36a298f1e |
rev | line source |
---|---|
al@19770 | 1 # SliTaz package receipt v2. |
pankso@294 | 2 |
pankso@294 | 3 PACKAGE="imagemagick" |
al@20224 | 4 VERSION="7.0.6-10" |
pankso@294 | 5 CATEGORY="graphics" |
al@19713 | 6 SHORT_DESC="ImageMagick - convert, edit, and compose images" |
pankso@294 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15600 | 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/imagemagick.html" |
pankso@294 | 11 |
al@19713 | 12 TARBALL="ImageMagick-$VERSION.tar.xz" |
al@19713 | 13 WGET_URL="https://www.imagemagick.org/download/releases/$TARBALL" |
al@19713 | 14 |
al@19713 | 15 BUILD_DEPENDS="bzip2-dev xorg-libX11-dev xorg-libICE-dev xorg-libXext-dev \ |
al@19713 | 16 xorg-libXt-dev zlib-dev libtool fftw-dev fontconfig-dev freetype-dev \ |
al@20224 | 17 libjpeg-turbo-dev lcms2-dev xz-dev pango-dev libpng16-dev tiff-dev \ |
al@20224 | 18 libxml2-dev librsvg-dev perl-dev util-linux-uuid-dev jasper-dev ilmbase-dev \ |
al@20224 | 19 openexr-dev libgsf-dev" # graphviz-dev |
al@20224 | 20 SPLIT="perl-image-magick imagemagick imagemagick-dev" |
pascal@14393 | 21 |
pankso@294 | 22 # Rules to configure and make the package. |
pankso@294 | 23 compile_rules() |
pankso@294 | 24 { |
pankso@294 | 25 ./configure \ |
slaxemulator@12937 | 26 --sysconfdir=/etc \ |
pascal@17438 | 27 --with-perl \ |
devl547@10894 | 28 --with-magick-plus-plus \ |
slaxemulator@12937 | 29 --with-modules \ |
devl547@10893 | 30 --enable-hdri \ |
al@19713 | 31 --with-rsvg \ |
al@19713 | 32 --disable-static \ |
pascal@2310 | 33 $CONFIGURE_ARGS && |
gokhlayeh@11574 | 34 make $MAKEFLAGS && |
pascal@12623 | 35 make DESTDIR=$DESTDIR install |
al@19713 | 36 |
al@19713 | 37 chmod -R u+w $install/usr/lib/perl5/ |
pankso@294 | 38 } |
pankso@294 | 39 |
pankso@294 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@294 | 41 genpkg_rules() |
pankso@294 | 42 { |
al@19770 | 43 case $PACKAGE in |
al@20224 | 44 perl-image-magick) |
al@20224 | 45 copy perl5/ |
al@20224 | 46 CAT="perl|Image::Magick Perl module" |
al@20224 | 47 DEPENDS="perl imagemagick" |
al@20224 | 48 ;; |
al@19770 | 49 imagemagick) |
al@20224 | 50 copy @std @rm |
pascal@19107 | 51 |
al@19770 | 52 # CVE-2016-3714 work around v5 |
al@19770 | 53 sed -i '/<policymap>/r/dev/stdin' $fs/etc/ImageMagick-7/policy.xml <<EOT |
pascal@19107 | 54 <policy domain="coder" rights="none" pattern="EPHEMERAL" /> |
pascal@19107 | 55 <policy domain="coder" rights="none" pattern="URL" /> |
pascal@19107 | 56 <policy domain="coder" rights="none" pattern="HTTPS" /> |
pascal@19107 | 57 <policy domain="coder" rights="none" pattern="MVG" /> |
pascal@19107 | 58 <policy domain="coder" rights="none" pattern="MSL" /> |
pascal@19107 | 59 <policy domain="coder" rights="none" pattern="TEXT" /> |
pascal@19107 | 60 <policy domain="coder" rights="none" pattern="SHOW" /> |
pascal@19107 | 61 <policy domain="coder" rights="none" pattern="WIN" /> |
pascal@19107 | 62 <policy domain="coder" rights="none" pattern="PLT" /> |
pascal@19107 | 63 EOT |
al@19770 | 64 DEPENDS="bzlib cairo fftw fontconfig freetype gdk-pixbuf glib \ |
al@19779 | 65 harfbuzz lcms2 libcroco libffi libgomp libjpeg-turbo \ |
al@20224 | 66 libltdl liblzma libpng16 librsvg libxcb libxml2 pango pcre pixman \ |
al@19770 | 67 tiff util-linux-uuid xorg-libICE xorg-libSM xorg-libX11 \ |
al@19770 | 68 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXrender xorg-libXt \ |
al@19770 | 69 zlib" |
al@19770 | 70 TAGS="image photo toolkit" |
al@19770 | 71 ;; |
al@19770 | 72 *-dev) |
al@19770 | 73 copy @dev |
al@19770 | 74 DEPENDS="imagemagick bzip2-dev cairo-dev fftw-dev fontconfig-dev \ |
al@19770 | 75 freetype-dev gdk-pixbuf-dev glib-dev glibc-dev harfbuzz-dev \ |
al@19779 | 76 lcms2-dev libcroco-dev libffi-dev libjpeg-turbo-dev \ |
al@20224 | 77 liblzma-dev libpng16-dev librsvg-dev libtool libxcb-dev libxml2-dev \ |
al@19770 | 78 pango-dev pcre-dev pixman-dev tiff-dev util-linux-uuid-dev \ |
al@19770 | 79 xorg-libICE-dev xorg-libSM-dev xorg-libX11-dev xorg-libXau-dev \ |
al@19770 | 80 xorg-libXdmcp-dev xorg-libXext-dev xorg-libXrender-dev \ |
al@19770 | 81 xorg-libXt-dev zlib-dev" |
al@19770 | 82 ;; |
al@19770 | 83 esac |
pankso@294 | 84 } |