wok-current annotate imagemagick/receipt @ rev 24583
updated fusioninventory-agent (2.5.2 -> 2.6)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Feb 27 17:43:39 2022 +0100 (2022-02-27) |
parents | 5a6f87eb0f9c |
children | 36e4c2e537d5 |
rev | line source |
---|---|
pankso@294 | 1 # SliTaz package receipt. |
pankso@294 | 2 |
pankso@294 | 3 PACKAGE="imagemagick" |
Hans-G?nter@22946 | 4 VERSION="7.0.9.26" |
Hans-G?nter@21044 | 5 SHORT_VERSION="${VERSION%.*}" |
pankso@294 | 6 CATEGORY="graphics" |
Hans-G?nter@21044 | 7 TAGS="image photo toolkit" |
pankso@294 | 8 SHORT_DESC="Images manipulation programs." |
pankso@294 | 9 MAINTAINER="pankso@slitaz.org" |
pascal@15600 | 10 LICENSE="Apache" |
Hans-G?nter@21044 | 11 WEB_SITE="https://www.imagemagick.org/" |
Hans-G?nter@21044 | 12 |
pankso@294 | 13 SOURCE="ImageMagick" |
Hans-G?nter@22946 | 14 TARBALL="$SOURCE-${VERSION%.*}-${VERSION##*.}.tar.xz" |
Hans-G?nter@21044 | 15 WGET_URL="${WEB_SITE}download/releases/$TARBALL" |
pankso@294 | 16 |
Hans-G?nter@22946 | 17 DEPENDS="bzlib cairo expat fftw fontconfig freetype gcc-lib-base |
Hans-G?nter@22946 | 18 graphviz ilmbase jasper jbigkit jpeg lcms libcroco libgio |
Hans-G?nter@22946 | 19 libgomp libgsf libltdl libpng librsvg libxml2 openexr |
pascal@22427 | 20 pango tiff xorg-libXext" |
Hans-G?nter@21044 | 21 BUILD_DEPENDS="bzip2-dev cairo-dev expat-dev fftw-dev fontconfig-dev \ |
Hans-G?nter@21044 | 22 freetype-dev graphviz-dev ilmbase-dev jasper-dev jpeg-dev \ |
Hans-G?nter@21044 | 23 lcms-dev libcroco-dev libgio-dev libgsf-dev libpng-dev \ |
Hans-G?nter@21044 | 24 librsvg-dev libtool libxml2-dev openexr-dev pango-dev perl \ |
pascal@22427 | 25 tiff-dev util-linux-uuid-dev xorg-libXext-dev" |
pascal@14393 | 26 |
pascal@24427 | 27 # What is the latest version available today? |
pascal@24427 | 28 current_version() |
pascal@24427 | 29 { |
pascal@24427 | 30 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24427 | 31 sed "/latest/d;/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|;s|-|.|" | sort -Vr | sed q |
pascal@24427 | 32 } |
pascal@24427 | 33 |
pankso@294 | 34 # Rules to configure and make the package. |
pankso@294 | 35 compile_rules() |
pankso@294 | 36 { |
Hans-G?nter@21044 | 37 ./configure \ |
Hans-G?nter@21044 | 38 --prefix=/usr \ |
Hans-G?nter@21044 | 39 --infodir=/usr/share/info \ |
Hans-G?nter@21044 | 40 --mandir=/usr/share/man \ |
Hans-G?nter@21044 | 41 --sysconfdir=/etc \ |
Hans-G?nter@21044 | 42 --with-magick-plus-plus \ |
Hans-G?nter@21044 | 43 --with-modules \ |
Hans-G?nter@21044 | 44 --with-perl \ |
Hans-G?nter@21044 | 45 --enable-hdri \ |
pascal@2310 | 46 $CONFIGURE_ARGS && |
Hans-G?nter@22946 | 47 make $MAKEFLAGS && |
pascal@12623 | 48 make DESTDIR=$DESTDIR install |
pankso@294 | 49 } |
pankso@294 | 50 |
pankso@294 | 51 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@294 | 52 genpkg_rules() |
pankso@294 | 53 { |
Hans-G?nter@21044 | 54 mkdir -p $fs/usr/lib |
Hans-G?nter@21044 | 55 mkdir -p $fs/usr/share |
Hans-G?nter@21044 | 56 |
Hans-G?nter@21044 | 57 cp -a $install/etc $fs |
Hans-G?nter@21044 | 58 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21044 | 59 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@21044 | 60 cp -a $install/usr/lib/$SOURCE-$SHORT_VERSION $fs/usr/lib |
Hans-G?nter@21044 | 61 cp -a $install/usr/share/$SOURCE-* $fs/usr/share |
pascal@19107 | 62 |
pascal@19107 | 63 # CVE-2016-3714 work around v5 |
Hans-G?nter@21044 | 64 sed -i '/<policymap>/r/dev/stdin' $fs/etc/ImageMagick-7/policy.xml <<EOT |
pascal@19107 | 65 <policy domain="coder" rights="none" pattern="EPHEMERAL" /> |
pascal@19107 | 66 <policy domain="coder" rights="none" pattern="URL" /> |
pascal@19107 | 67 <policy domain="coder" rights="none" pattern="HTTPS" /> |
pascal@19107 | 68 <policy domain="coder" rights="none" pattern="MVG" /> |
pascal@19107 | 69 <policy domain="coder" rights="none" pattern="MSL" /> |
pascal@19107 | 70 <policy domain="coder" rights="none" pattern="TEXT" /> |
pascal@19107 | 71 <policy domain="coder" rights="none" pattern="SHOW" /> |
pascal@19107 | 72 <policy domain="coder" rights="none" pattern="WIN" /> |
pascal@19107 | 73 <policy domain="coder" rights="none" pattern="PLT" /> |
pascal@19107 | 74 EOT |
pankso@294 | 75 } |