summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGyorgy Sarvari <skandigraun@gmail.com>2026-03-24 20:32:39 +0100
committerKhem Raj <khem.raj@oss.qualcomm.com>2026-03-24 14:22:33 -0700
commit5cfa1275ec72a8fbbd57a2661c26ccc5e77748d6 (patch)
tree0fdd0eee7abf965975719fc2c228565a69094300
parentea89aba402e9ffb76ea7e2f376f9b6bcb73d295d (diff)
downloadmeta-openembedded-5cfa1275ec72a8fbbd57a2661c26ccc5e77748d6.tar.gz
imagemagick: upgrade 7.1.2-17 -> 7.1.2-18
Bug- and security-fix release. Shortlog: https://github.com/ImageMagick/ImageMagick/compare/7.1.2-17...7.1.2-18 Also remove the obsolete CVE_STATUS assignments - all of these have been corrected at NVD, and they are tracked with a version/CPE that mirror the real vulnerability state of the recipe. While at it, also corrected the reason for the remaining CVE_STATUS assignments. Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
-rw-r--r--meta-oe/recipes-support/imagemagick/imagemagick_7.1.2-17.bb197
-rw-r--r--meta-oe/recipes-support/imagemagick/imagemagick_7.1.2-18.bb130
2 files changed, 130 insertions, 197 deletions
diff --git a/meta-oe/recipes-support/imagemagick/imagemagick_7.1.2-17.bb b/meta-oe/recipes-support/imagemagick/imagemagick_7.1.2-17.bb
deleted file mode 100644
index 2a1152087a..0000000000
--- a/meta-oe/recipes-support/imagemagick/imagemagick_7.1.2-17.bb
+++ /dev/null
@@ -1,197 +0,0 @@
1SUMMARY = "ImageMagick is an image conversion toolkit"
2SECTION = "console/utils"
3HOMEPAGE = "https://www.imagemagick.org/"
4DESCRIPTION = "ImageMagick is a collection of tools for displaying, converting, and \
5editing raster and vector image files. It can read and write over 200 image file formats."
6LICENSE = "ImageMagick"
7LIC_FILES_CHKSUM = "file://LICENSE;md5=1f56ade64cf079aff7232f7dbeaea992 \
8 file://NOTICE;md5=3974428a57d34b981abb7acc416dde8f"
9# FIXME: There are many more checked libraries. All should be added or explicitly disabled to get consistent results.
10DEPENDS = "lcms bzip2 jpeg libpng tiff zlib fftw freetype libtool"
11
12BASE_PV = "${@d.getVar('PV').split('-')[0]}"
13UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>([0-9][\.|_|-]?)+)"
14
15SRC_URI = "git://github.com/ImageMagick/ImageMagick.git;branch=main;protocol=https;tag=${PV} \
16 file://run-ptest \
17 file://imagemagick-ptest.sh \
18"
19
20SRCREV = "3f2f629405c62106d3569547c03634bc46fcd07d"
21
22inherit autotools pkgconfig update-alternatives ptest
23export ac_cv_sys_file_offset_bits = "64"
24
25EXTRA_OECONF = "--program-prefix= --program-suffix=.im7 --without-perl --enable-largefile"
26
27PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} cxx webp xml"
28PACKAGECONFIG[cxx] = "--with-magick-plus-plus,--without-magick-plus-plus"
29PACKAGECONFIG[graphviz] = "--with-gvc,--without-gvc,graphviz"
30PACKAGECONFIG[heic] = "--with-heic,--without-heic,libheif"
31PACKAGECONFIG[jxl] = "--with-jxl,--without-jxl,libjxl"
32PACKAGECONFIG[lzma] = "--with-lzma,--without-lzma,xz"
33PACKAGECONFIG[openjpeg] = "--with-openjp2,--without-openjp2,openjpeg"
34PACKAGECONFIG[pango] = "--with-pango,--without-pango,pango cairo"
35PACKAGECONFIG[raw] = "--with-raw,--without-raw,libraw"
36PACKAGECONFIG[rsvg] = "--with-rsvg,--without-rsvg,librsvg"
37PACKAGECONFIG[tcmalloc] = "--with-tcmalloc=yes,--with-tcmalloc=no,gperftools"
38PACKAGECONFIG[webp] = "--with-webp,--without-webp,libwebp"
39PACKAGECONFIG[wmf] = "--with-wmf,--without-wmf,libwmf"
40PACKAGECONFIG[x11] = "--with-x,--without-x,virtual/libx11 libxext libxt"
41PACKAGECONFIG[xml] = "--with-xml,--without-xml,libxml2"
42
43do_install:append:class-target() {
44 for file in MagickCore-config.im7 MagickWand-config.im7; do
45 sed -i 's,${STAGING_DIR_TARGET},,g' "${D}${bindir}/$file"
46 done
47
48 if ${@bb.utils.contains('PACKAGECONFIG', 'cxx', 'true', 'false', d)}; then
49 sed -i 's,${STAGING_DIR_TARGET},,g' "${D}${bindir}/Magick++-config.im7"
50 fi
51
52 if ${@bb.utils.contains('PACKAGECONFIG', 'xml', 'true', 'false', d)}; then
53 xml_config="${D}${libdir}/ImageMagick-${BASE_PV}/config-Q16HDRI/configure.xml"
54 sed -i 's,${S},,g' "$xml_config"
55 sed -i 's,${B},,g' "$xml_config"
56 sed -i 's,${RECIPE_SYSROOT},,g' "$xml_config"
57 fi
58
59 if ${@bb.utils.contains_any('PACKAGECONFIG', 'webp openjpeg', 'true', 'false', d)}; then
60 sed -i 's,${HOSTTOOLS_DIR},${bindir},g' "${D}${sysconfdir}/ImageMagick-7/delegates.xml"
61 fi
62}
63
64do_install_ptest() {
65 install -d ${D}${PTEST_PATH}
66 install -m 0755 ${UNPACKDIR}/run-ptest ${D}${PTEST_PATH}/
67 install -m 0755 ${UNPACKDIR}/imagemagick-ptest.sh ${D}${PTEST_PATH}/
68}
69
70
71FILES:${PN} += "${libdir}/ImageMagick-${BASE_PV}/config-Q16* \
72 ${datadir}/ImageMagick-7"
73
74FILES:${PN}-dev += "${libdir}/ImageMagick-${BASE_PV}/modules-Q16/*/*.a"
75
76FILES:${PN}-dbg += "${libdir}/ImageMagick-${BASE_PV}/modules-Q16/*/.debug/*"
77
78BBCLASSEXTEND = "native nativesdk"
79
80ALTERNATIVE_PRIORITY = "100"
81
82ALTERNATIVE:${PN} = "animate compare composite conjure convert display \
83 identify import magick-script mogrify montage stream magick"
84
85ALTERNATIVE_TARGET[animate] = "${bindir}/animate.im7"
86ALTERNATIVE_TARGET[compare] = "${bindir}/compare.im7"
87ALTERNATIVE_TARGET[composite] = "${bindir}/composite.im7"
88ALTERNATIVE_TARGET[conjure] = "${bindir}/conjure.im7"
89ALTERNATIVE_TARGET[convert] = "${bindir}/convert.im7"
90ALTERNATIVE_TARGET[display] = "${bindir}/display.im7"
91ALTERNATIVE_TARGET[identify] = "${bindir}/identify.im7"
92ALTERNATIVE_TARGET[import] = "${bindir}/import.im7"
93ALTERNATIVE_TARGET[magick-script] = "${bindir}/magick-script.im7"
94ALTERNATIVE_TARGET[mogrify] = "${bindir}/mogrify.im7"
95ALTERNATIVE_TARGET[montage] = "${bindir}/montage.im7"
96ALTERNATIVE_TARGET[stream] = "${bindir}/stream.im7"
97ALTERNATIVE_TARGET[magick] = "${bindir}/magick.im7"
98
99ALTERNATIVE:${PN}-doc = "animate.1 compare.1 composite.1 conjure.1 \
100 convert.1 display.1 identify.1 import.1 magick-script.1 mogrify.1 montage.1 stream.1"
101
102ALTERNATIVE_LINK_NAME[animate.1] = "${mandir}/man1/animate.1"
103ALTERNATIVE_TARGET[animate.1] = "${mandir}/man1/animate.im7.1"
104ALTERNATIVE_LINK_NAME[compare.1] = "${mandir}/man1/compare.1"
105ALTERNATIVE_TARGET[compare.1] = "${mandir}/man1/compare.im7.1"
106ALTERNATIVE_LINK_NAME[composite.1] = "${mandir}/man1/composite.1"
107ALTERNATIVE_TARGET[composite.1] = "${mandir}/man1/composite.im7.1"
108ALTERNATIVE_LINK_NAME[conjure.1] = "${mandir}/man1/conjure.1"
109ALTERNATIVE_TARGET[conjure.1] = "${mandir}/man1/conjure.im7.1"
110ALTERNATIVE_LINK_NAME[convert.1] = "${mandir}/man1/convert.1"
111ALTERNATIVE_TARGET[convert.1] = "${mandir}/man1/convert.im7.1"
112ALTERNATIVE_LINK_NAME[display.1] = "${mandir}/man1/display.1"
113ALTERNATIVE_TARGET[display.1] = "${mandir}/man1/display.im7.1"
114ALTERNATIVE_LINK_NAME[identify.1] = "${mandir}/man1/identify.1"
115ALTERNATIVE_TARGET[identify.1] = "${mandir}/man1/identify.im7.1"
116ALTERNATIVE_LINK_NAME[import.1] = "${mandir}/man1/import.1"
117ALTERNATIVE_TARGET[import.1] = "${mandir}/man1/import.im7.1"
118ALTERNATIVE_LINK_NAME[magick-script.1] = "${mandir}/man1/magick-script.1"
119ALTERNATIVE_TARGET[magick-script.1] = "${mandir}/man1/magick-script.im7.1"
120ALTERNATIVE_LINK_NAME[mogrify.1] = "${mandir}/man1/mogrify.1"
121ALTERNATIVE_TARGET[mogrify.1] = "${mandir}/man1/mogrify.im7.1"
122ALTERNATIVE_LINK_NAME[montage.1] = "${mandir}/man1/montage.1"
123ALTERNATIVE_TARGET[montage.1] = "${mandir}/man1/montage.im7.1"
124ALTERNATIVE_LINK_NAME[stream.1] = "${mandir}/man1/stream.1"
125ALTERNATIVE_TARGET[stream.1] = "${mandir}/man1/stream.im7.1"
126ALTERNATIVE_LINK_NAME[magick] = "${bindir}/magick"
127
128CVE_STATUS[CVE-2007-1667] = "cpe-incorrect: CVE should not include a CPE for imagemagick"
129CVE_STATUS[CVE-2014-9804] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
130CVE_STATUS[CVE-2014-9805] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
131CVE_STATUS[CVE-2014-9806] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
132CVE_STATUS[CVE-2014-9807] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
133CVE_STATUS[CVE-2014-9808] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
134CVE_STATUS[CVE-2014-9809] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
135CVE_STATUS[CVE-2014-9810] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
136CVE_STATUS[CVE-2014-9811] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
137CVE_STATUS[CVE-2014-9812] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
138CVE_STATUS[CVE-2014-9813] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
139CVE_STATUS[CVE-2014-9814] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
140CVE_STATUS[CVE-2014-9815] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
141CVE_STATUS[CVE-2014-9816] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
142CVE_STATUS[CVE-2014-9817] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
143CVE_STATUS[CVE-2014-9818] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
144CVE_STATUS[CVE-2014-9819] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
145CVE_STATUS[CVE-2014-9820] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
146CVE_STATUS[CVE-2014-9821] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
147CVE_STATUS[CVE-2014-9822] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
148CVE_STATUS[CVE-2014-9823] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
149CVE_STATUS[CVE-2014-9824] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
150CVE_STATUS[CVE-2014-9825] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
151CVE_STATUS[CVE-2014-9826] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
152CVE_STATUS[CVE-2014-9827] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
153CVE_STATUS[CVE-2014-9828] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
154CVE_STATUS[CVE-2014-9829] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
155CVE_STATUS[CVE-2014-9830] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
156CVE_STATUS[CVE-2014-9831] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
157CVE_STATUS[CVE-2014-9848] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
158CVE_STATUS[CVE-2014-9852] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
159CVE_STATUS[CVE-2014-9853] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
160CVE_STATUS[CVE-2014-9854] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
161CVE_STATUS[CVE-2014-9907] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
162CVE_STATUS[CVE-2016-10062] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 7.0.1-10"
163CVE_STATUS[CVE-2016-10144] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.7-1"
164CVE_STATUS[CVE-2016-10145] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.7-1"
165CVE_STATUS[CVE-2016-10146] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.6-8"
166CVE_STATUS[CVE-2016-5118] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 7.0.1-7"
167CVE_STATUS[CVE-2016-7513] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
168CVE_STATUS[CVE-2016-7514] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 7.0.1-0"
169CVE_STATUS[CVE-2016-7515] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
170CVE_STATUS[CVE-2016-7516] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
171CVE_STATUS[CVE-2016-7517] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
172CVE_STATUS[CVE-2016-7518] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
173CVE_STATUS[CVE-2016-7519] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
174CVE_STATUS[CVE-2016-7520] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
175CVE_STATUS[CVE-2016-7521] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
176CVE_STATUS[CVE-2016-7522] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
177CVE_STATUS[CVE-2016-7523] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
178CVE_STATUS[CVE-2016-7524] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
179CVE_STATUS[CVE-2016-7525] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
180CVE_STATUS[CVE-2016-7526] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
181CVE_STATUS[CVE-2016-7527] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
182CVE_STATUS[CVE-2016-7528] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
183CVE_STATUS[CVE-2016-7529] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
184CVE_STATUS[CVE-2016-7530] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
185CVE_STATUS[CVE-2016-7531] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 7.0.1-0"
186CVE_STATUS[CVE-2016-7532] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
187CVE_STATUS[CVE-2016-7533] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
188CVE_STATUS[CVE-2016-7534] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
189CVE_STATUS[CVE-2016-7535] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
190CVE_STATUS[CVE-2016-7536] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
191CVE_STATUS[CVE-2016-7537] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
192CVE_STATUS[CVE-2016-7538] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
193CVE_STATUS[CVE-2017-5506] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 7.0.4-4"
194CVE_STATUS[CVE-2017-5509] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 7.0.4-4"
195CVE_STATUS[CVE-2017-5510] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 7.0.4-4"
196CVE_STATUS[CVE-2017-5511] = "cpe-incorrect: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 7.0.4-3"
197CVE_STATUS[CVE-2023-5341] = "fixed-version: this is fixed in 7.1.1-19"
diff --git a/meta-oe/recipes-support/imagemagick/imagemagick_7.1.2-18.bb b/meta-oe/recipes-support/imagemagick/imagemagick_7.1.2-18.bb
new file mode 100644
index 0000000000..49bf257cd3
--- /dev/null
+++ b/meta-oe/recipes-support/imagemagick/imagemagick_7.1.2-18.bb
@@ -0,0 +1,130 @@
1SUMMARY = "ImageMagick is an image conversion toolkit"
2SECTION = "console/utils"
3HOMEPAGE = "https://www.imagemagick.org/"
4DESCRIPTION = "ImageMagick is a collection of tools for displaying, converting, and \
5editing raster and vector image files. It can read and write over 200 image file formats."
6LICENSE = "ImageMagick"
7LIC_FILES_CHKSUM = "file://LICENSE;md5=1f56ade64cf079aff7232f7dbeaea992 \
8 file://NOTICE;md5=3974428a57d34b981abb7acc416dde8f"
9# FIXME: There are many more checked libraries. All should be added or explicitly disabled to get consistent results.
10DEPENDS = "lcms bzip2 jpeg libpng tiff zlib fftw freetype libtool"
11
12BASE_PV = "${@d.getVar('PV').split('-')[0]}"
13UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>([0-9][\.|_|-]?)+)"
14
15SRC_URI = "git://github.com/ImageMagick/ImageMagick.git;branch=main;protocol=https;tag=${PV} \
16 file://run-ptest \
17 file://imagemagick-ptest.sh \
18"
19
20SRCREV = "d4e4b2b35a573fb7d96bc64ff1a417415bbe0f4c"
21
22inherit autotools pkgconfig update-alternatives ptest
23export ac_cv_sys_file_offset_bits = "64"
24
25EXTRA_OECONF = "--program-prefix= --program-suffix=.im7 --without-perl --enable-largefile"
26
27PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} cxx webp xml"
28PACKAGECONFIG[cxx] = "--with-magick-plus-plus,--without-magick-plus-plus"
29PACKAGECONFIG[graphviz] = "--with-gvc,--without-gvc,graphviz"
30PACKAGECONFIG[heic] = "--with-heic,--without-heic,libheif"
31PACKAGECONFIG[jxl] = "--with-jxl,--without-jxl,libjxl"
32PACKAGECONFIG[lzma] = "--with-lzma,--without-lzma,xz"
33PACKAGECONFIG[openjpeg] = "--with-openjp2,--without-openjp2,openjpeg"
34PACKAGECONFIG[pango] = "--with-pango,--without-pango,pango cairo"
35PACKAGECONFIG[raw] = "--with-raw,--without-raw,libraw"
36PACKAGECONFIG[rsvg] = "--with-rsvg,--without-rsvg,librsvg"
37PACKAGECONFIG[tcmalloc] = "--with-tcmalloc=yes,--with-tcmalloc=no,gperftools"
38PACKAGECONFIG[webp] = "--with-webp,--without-webp,libwebp"
39PACKAGECONFIG[wmf] = "--with-wmf,--without-wmf,libwmf"
40PACKAGECONFIG[x11] = "--with-x,--without-x,virtual/libx11 libxext libxt"
41PACKAGECONFIG[xml] = "--with-xml,--without-xml,libxml2"
42
43do_install:append:class-target() {
44 for file in MagickCore-config.im7 MagickWand-config.im7; do
45 sed -i 's,${STAGING_DIR_TARGET},,g' "${D}${bindir}/$file"
46 done
47
48 if ${@bb.utils.contains('PACKAGECONFIG', 'cxx', 'true', 'false', d)}; then
49 sed -i 's,${STAGING_DIR_TARGET},,g' "${D}${bindir}/Magick++-config.im7"
50 fi
51
52 if ${@bb.utils.contains('PACKAGECONFIG', 'xml', 'true', 'false', d)}; then
53 xml_config="${D}${libdir}/ImageMagick-${BASE_PV}/config-Q16HDRI/configure.xml"
54 sed -i 's,${S},,g' "$xml_config"
55 sed -i 's,${B},,g' "$xml_config"
56 sed -i 's,${RECIPE_SYSROOT},,g' "$xml_config"
57 fi
58
59 if ${@bb.utils.contains_any('PACKAGECONFIG', 'webp openjpeg', 'true', 'false', d)}; then
60 sed -i 's,${HOSTTOOLS_DIR},${bindir},g' "${D}${sysconfdir}/ImageMagick-7/delegates.xml"
61 fi
62}
63
64do_install_ptest() {
65 install -d ${D}${PTEST_PATH}
66 install -m 0755 ${UNPACKDIR}/run-ptest ${D}${PTEST_PATH}/
67 install -m 0755 ${UNPACKDIR}/imagemagick-ptest.sh ${D}${PTEST_PATH}/
68}
69
70
71FILES:${PN} += "${libdir}/ImageMagick-${BASE_PV}/config-Q16* \
72 ${datadir}/ImageMagick-7"
73
74FILES:${PN}-dev += "${libdir}/ImageMagick-${BASE_PV}/modules-Q16/*/*.a"
75
76FILES:${PN}-dbg += "${libdir}/ImageMagick-${BASE_PV}/modules-Q16/*/.debug/*"
77
78BBCLASSEXTEND = "native nativesdk"
79
80ALTERNATIVE_PRIORITY = "100"
81
82ALTERNATIVE:${PN} = "animate compare composite conjure convert display \
83 identify import magick-script mogrify montage stream magick"
84
85ALTERNATIVE_TARGET[animate] = "${bindir}/animate.im7"
86ALTERNATIVE_TARGET[compare] = "${bindir}/compare.im7"
87ALTERNATIVE_TARGET[composite] = "${bindir}/composite.im7"
88ALTERNATIVE_TARGET[conjure] = "${bindir}/conjure.im7"
89ALTERNATIVE_TARGET[convert] = "${bindir}/convert.im7"
90ALTERNATIVE_TARGET[display] = "${bindir}/display.im7"
91ALTERNATIVE_TARGET[identify] = "${bindir}/identify.im7"
92ALTERNATIVE_TARGET[import] = "${bindir}/import.im7"
93ALTERNATIVE_TARGET[magick-script] = "${bindir}/magick-script.im7"
94ALTERNATIVE_TARGET[mogrify] = "${bindir}/mogrify.im7"
95ALTERNATIVE_TARGET[montage] = "${bindir}/montage.im7"
96ALTERNATIVE_TARGET[stream] = "${bindir}/stream.im7"
97ALTERNATIVE_TARGET[magick] = "${bindir}/magick.im7"
98
99ALTERNATIVE:${PN}-doc = "animate.1 compare.1 composite.1 conjure.1 \
100 convert.1 display.1 identify.1 import.1 magick-script.1 mogrify.1 montage.1 stream.1"
101
102ALTERNATIVE_LINK_NAME[animate.1] = "${mandir}/man1/animate.1"
103ALTERNATIVE_TARGET[animate.1] = "${mandir}/man1/animate.im7.1"
104ALTERNATIVE_LINK_NAME[compare.1] = "${mandir}/man1/compare.1"
105ALTERNATIVE_TARGET[compare.1] = "${mandir}/man1/compare.im7.1"
106ALTERNATIVE_LINK_NAME[composite.1] = "${mandir}/man1/composite.1"
107ALTERNATIVE_TARGET[composite.1] = "${mandir}/man1/composite.im7.1"
108ALTERNATIVE_LINK_NAME[conjure.1] = "${mandir}/man1/conjure.1"
109ALTERNATIVE_TARGET[conjure.1] = "${mandir}/man1/conjure.im7.1"
110ALTERNATIVE_LINK_NAME[convert.1] = "${mandir}/man1/convert.1"
111ALTERNATIVE_TARGET[convert.1] = "${mandir}/man1/convert.im7.1"
112ALTERNATIVE_LINK_NAME[display.1] = "${mandir}/man1/display.1"
113ALTERNATIVE_TARGET[display.1] = "${mandir}/man1/display.im7.1"
114ALTERNATIVE_LINK_NAME[identify.1] = "${mandir}/man1/identify.1"
115ALTERNATIVE_TARGET[identify.1] = "${mandir}/man1/identify.im7.1"
116ALTERNATIVE_LINK_NAME[import.1] = "${mandir}/man1/import.1"
117ALTERNATIVE_TARGET[import.1] = "${mandir}/man1/import.im7.1"
118ALTERNATIVE_LINK_NAME[magick-script.1] = "${mandir}/man1/magick-script.1"
119ALTERNATIVE_TARGET[magick-script.1] = "${mandir}/man1/magick-script.im7.1"
120ALTERNATIVE_LINK_NAME[mogrify.1] = "${mandir}/man1/mogrify.1"
121ALTERNATIVE_TARGET[mogrify.1] = "${mandir}/man1/mogrify.im7.1"
122ALTERNATIVE_LINK_NAME[montage.1] = "${mandir}/man1/montage.1"
123ALTERNATIVE_TARGET[montage.1] = "${mandir}/man1/montage.im7.1"
124ALTERNATIVE_LINK_NAME[stream.1] = "${mandir}/man1/stream.1"
125ALTERNATIVE_TARGET[stream.1] = "${mandir}/man1/stream.im7.1"
126ALTERNATIVE_LINK_NAME[magick] = "${bindir}/magick"
127
128CVE_STATUS[CVE-2014-9826] = "fixed-version: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
129CVE_STATUS[CVE-2016-7538] = "fixed-version: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 6.9.4-0"
130CVE_STATUS[CVE-2017-5506] = "fixed-version: The current version (7.1.1) is not affected by the CVE which affects versions at least earlier than 7.0.4-4"