wok annotate imagemagick/receipt @ rev 20556
gcc3: set host,build,target
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Dec 12 18:05:39 2018 +0100 (2018-12-12) |
parents | 6f05c710673c |
children | 93d872f4b7a7 |
rev | line source |
---|---|
pankso@294 | 1 # SliTaz package receipt. |
pankso@294 | 2 |
pankso@294 | 3 PACKAGE="imagemagick" |
pascal@14393 | 4 VERSION="6.8.4-10" |
pascal@6413 | 5 SHORT_VERSION="${VERSION%-*}" |
pankso@294 | 6 CATEGORY="graphics" |
pankso@294 | 7 SHORT_DESC="Images manipulation programs." |
pankso@294 | 8 MAINTAINER="pankso@slitaz.org" |
pascal@15600 | 9 LICENSE="Apache" |
pankso@294 | 10 SOURCE="ImageMagick" |
slaxemulator@7348 | 11 TARBALL="$SOURCE-$VERSION.tar.xz" |
pankso@294 | 12 WEB_SITE="http://www.imagemagick.org/" |
pascal@14394 | 13 WGET_URL="http://mirror.checkdomain.de/$PACKAGE/$TARBALL" |
jozee@4938 | 14 TAGS="image photo toolkit" |
pankso@294 | 15 |
pascal@14393 | 16 DEPENDS="xorg-libXext jpeg libpng tiff libxml2 freetype libgomp bzlib expat \ |
pascal@14393 | 17 fontconfig lcms jasper ilmbase openexr graphviz librsvg libgsf libgio cairo \ |
pascal@14393 | 18 pango gcc-lib-base jbigkit libcroco fftw libltdl" |
pascal@14393 | 19 BUILD_DEPENDS="xorg-libXext-dev jpeg-dev libpng-dev tiff-dev libxml2-dev \ |
pascal@14393 | 20 freetype-dev bzip2-dev expat-dev fontconfig-dev lcms-dev jasper-dev \ |
pascal@14393 | 21 ilmbase-dev openexr-dev graphviz-dev librsvg-dev libgsf-dev libgio-dev \ |
pascal@17438 | 22 perl cairo-dev pango-dev libcroco-dev fftw-dev util-linux-uuid-dev libtool" |
pascal@14393 | 23 |
pankso@294 | 24 # Rules to configure and make the package. |
pankso@294 | 25 compile_rules() |
pankso@294 | 26 { |
pankso@294 | 27 cd $src |
pankso@294 | 28 ./configure \ |
pankso@294 | 29 --prefix=/usr \ |
pankso@294 | 30 --infodir=/usr/share/info \ |
pankso@294 | 31 --mandir=/usr/share/man \ |
slaxemulator@12937 | 32 --sysconfdir=/etc \ |
pascal@17438 | 33 --with-perl \ |
devl547@10894 | 34 --with-magick-plus-plus \ |
slaxemulator@12937 | 35 --with-modules \ |
devl547@10893 | 36 --enable-hdri \ |
pascal@2310 | 37 $CONFIGURE_ARGS && |
gokhlayeh@11574 | 38 make $MAKEFLAGS && |
pascal@12623 | 39 make DESTDIR=$DESTDIR install |
pankso@294 | 40 } |
pankso@294 | 41 |
pankso@294 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@294 | 43 genpkg_rules() |
pankso@294 | 44 { |
pankso@294 | 45 mkdir -p $fs/usr/lib $fs/usr/share |
pascal@14393 | 46 cp -a $install/etc $fs |
pascal@14393 | 47 cp -a $install/usr/bin $fs/usr |
pascal@14393 | 48 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@14393 | 49 cp -a $install/usr/lib/$SOURCE-$SHORT_VERSION $fs/usr/lib |
pascal@14394 | 50 cp -a $install/usr/share/$SOURCE-* $fs/usr/share |
pascal@19107 | 51 |
pascal@19107 | 52 # CVE-2016-3714 work around v5 |
pascal@19107 | 53 sed -i '/<policymap>/r/dev/stdin' $fs/etc/ImageMagick-6/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 |
pankso@294 | 64 } |
pankso@294 | 65 |