wok-current view imagemagick/receipt @ rev 24613

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