diff options
Diffstat (limited to 'meta-oe/recipes-support/imagemagick')
-rw-r--r-- | meta-oe/recipes-support/imagemagick/imagemagick_7.1.1-43.bb | 183 | ||||
-rw-r--r-- | meta-oe/recipes-support/imagemagick/imagemagick_7.1.1.bb | 101 |
2 files changed, 183 insertions, 101 deletions
diff --git a/meta-oe/recipes-support/imagemagick/imagemagick_7.1.1-43.bb b/meta-oe/recipes-support/imagemagick/imagemagick_7.1.1-43.bb new file mode 100644 index 0000000000..10d2150998 --- /dev/null +++ b/meta-oe/recipes-support/imagemagick/imagemagick_7.1.1-43.bb | |||
@@ -0,0 +1,183 @@ | |||
1 | SUMMARY = "ImageMagick is an image conversion toolkit" | ||
2 | SECTION = "console/utils" | ||
3 | HOMEPAGE = "https://www.imagemagick.org/" | ||
4 | DESCRIPTION = "ImageMagick is a collection of tools for displaying, converting, and \ | ||
5 | editing raster and vector image files. It can read and write over 200 image file formats." | ||
6 | LICENSE = "ImageMagick" | ||
7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=2f9de66264141265b203cde9902819ea \ | ||
8 | file://NOTICE;md5=bcbf1f1897b40ec8df39700cb560e9ed" | ||
9 | # FIXME: There are many more checked libraries. All should be added or explicitly disabled to get consistent results. | ||
10 | DEPENDS = "lcms bzip2 jpeg libpng tiff zlib fftw freetype libtool" | ||
11 | |||
12 | BASE_PV = "${@d.getVar('PV').split('-')[0]}" | ||
13 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>([0-9][\.|_|-]?)+)" | ||
14 | |||
15 | SRC_URI = "git://github.com/ImageMagick/ImageMagick.git;branch=main;protocol=https" | ||
16 | SRCREV = "a2d96f40e707ba54b57e7d98c3277d3ea6611ace" | ||
17 | |||
18 | |||
19 | inherit autotools pkgconfig update-alternatives | ||
20 | export ac_cv_sys_file_offset_bits = "64" | ||
21 | |||
22 | EXTRA_OECONF = "--program-prefix= --program-suffix=.im7 --without-perl --enable-largefile" | ||
23 | |||
24 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} cxx webp xml" | ||
25 | PACKAGECONFIG[cxx] = "--with-magick-plus-plus,--without-magick-plus-plus" | ||
26 | PACKAGECONFIG[graphviz] = "--with-gvc,--without-gvc,graphviz" | ||
27 | PACKAGECONFIG[jp2] = "--with-jp2,,jasper" | ||
28 | PACKAGECONFIG[lzma] = "--with-lzma,--without-lzma,xz" | ||
29 | PACKAGECONFIG[openjpeg] = "--with-openjp2,--without-openjp2,openjpeg" | ||
30 | PACKAGECONFIG[pango] = "--with-pango,--without-pango,pango cairo" | ||
31 | PACKAGECONFIG[rsvg] = "--with-rsvg,--without-rsvg,librsvg" | ||
32 | PACKAGECONFIG[tcmalloc] = "--with-tcmalloc=yes,--with-tcmalloc=no,gperftools" | ||
33 | PACKAGECONFIG[webp] = "--with-webp,--without-webp,libwebp" | ||
34 | PACKAGECONFIG[wmf] = "--with-wmf,--without-wmf,libwmf" | ||
35 | PACKAGECONFIG[x11] = "--with-x,--without-x,virtual/libx11 libxext libxt" | ||
36 | PACKAGECONFIG[xml] = "--with-xml,--without-xml,libxml2" | ||
37 | |||
38 | do_install:append:class-target() { | ||
39 | for file in MagickCore-config.im7 MagickWand-config.im7; do | ||
40 | sed -i 's,${STAGING_DIR_TARGET},,g' "${D}${bindir}/$file" | ||
41 | done | ||
42 | |||
43 | if ${@bb.utils.contains('PACKAGECONFIG', 'cxx', 'true', 'false', d)}; then | ||
44 | sed -i 's,${STAGING_DIR_TARGET},,g' "${D}${bindir}/Magick++-config.im7" | ||
45 | fi | ||
46 | |||
47 | if ${@bb.utils.contains('PACKAGECONFIG', 'xml', 'true', 'false', d)}; then | ||
48 | xml_config="${D}${libdir}/ImageMagick-${BASE_PV}/config-Q16HDRI/configure.xml" | ||
49 | sed -i 's,${S},,g' "$xml_config" | ||
50 | sed -i 's,${B},,g' "$xml_config" | ||
51 | sed -i 's,${RECIPE_SYSROOT},,g' "$xml_config" | ||
52 | fi | ||
53 | |||
54 | if ${@bb.utils.contains_any('PACKAGECONFIG', 'webp openjpeg', 'true', 'false', d)}; then | ||
55 | sed -i 's,${HOSTTOOLS_DIR},${bindir},g' "${D}${sysconfdir}/ImageMagick-7/delegates.xml" | ||
56 | fi | ||
57 | } | ||
58 | |||
59 | FILES:${PN} += "${libdir}/ImageMagick-${BASE_PV}/config-Q16* \ | ||
60 | ${datadir}/ImageMagick-7" | ||
61 | |||
62 | FILES:${PN}-dev += "${libdir}/ImageMagick-${BASE_PV}/modules-Q16/*/*.a" | ||
63 | |||
64 | FILES:${PN}-dbg += "${libdir}/ImageMagick-${BASE_PV}/modules-Q16/*/.debug/*" | ||
65 | |||
66 | BBCLASSEXTEND = "native nativesdk" | ||
67 | |||
68 | ALTERNATIVE_PRIORITY = "100" | ||
69 | |||
70 | ALTERNATIVE:${PN} = "animate compare composite conjure convert display \ | ||
71 | identify import magick-script mogrify montage stream" | ||
72 | |||
73 | ALTERNATIVE_TARGET[animate] = "${bindir}/animate.im7" | ||
74 | ALTERNATIVE_TARGET[compare] = "${bindir}/compare.im7" | ||
75 | ALTERNATIVE_TARGET[composite] = "${bindir}/composite.im7" | ||
76 | ALTERNATIVE_TARGET[conjure] = "${bindir}/conjure.im7" | ||
77 | ALTERNATIVE_TARGET[convert] = "${bindir}/convert.im7" | ||
78 | ALTERNATIVE_TARGET[display] = "${bindir}/display.im7" | ||
79 | ALTERNATIVE_TARGET[identify] = "${bindir}/identify.im7" | ||
80 | ALTERNATIVE_TARGET[import] = "${bindir}/import.im7" | ||
81 | ALTERNATIVE_TARGET[magick-script] = "${bindir}/magick-script.im7" | ||
82 | ALTERNATIVE_TARGET[mogrify] = "${bindir}/mogrify.im7" | ||
83 | ALTERNATIVE_TARGET[montage] = "${bindir}/montage.im7" | ||
84 | ALTERNATIVE_TARGET[stream] = "${bindir}/stream.im7" | ||
85 | |||
86 | ALTERNATIVE:${PN}-doc = "animate.1 compare.1 composite.1 conjure.1 \ | ||
87 | convert.1 display.1 identify.1 import.1 magick-script.1 mogrify.1 montage.1 stream.1" | ||
88 | |||
89 | ALTERNATIVE_LINK_NAME[animate.1] = "${mandir}/man1/animate.1" | ||
90 | ALTERNATIVE_TARGET[animate.1] = "${mandir}/man1/animate.im7.1" | ||
91 | ALTERNATIVE_LINK_NAME[compare.1] = "${mandir}/man1/compare.1" | ||
92 | ALTERNATIVE_TARGET[compare.1] = "${mandir}/man1/compare.im7.1" | ||
93 | ALTERNATIVE_LINK_NAME[composite.1] = "${mandir}/man1/composite.1" | ||
94 | ALTERNATIVE_TARGET[composite.1] = "${mandir}/man1/composite.im7.1" | ||
95 | ALTERNATIVE_LINK_NAME[conjure.1] = "${mandir}/man1/conjure.1" | ||
96 | ALTERNATIVE_TARGET[conjure.1] = "${mandir}/man1/conjure.im7.1" | ||
97 | ALTERNATIVE_LINK_NAME[convert.1] = "${mandir}/man1/convert.1" | ||
98 | ALTERNATIVE_TARGET[convert.1] = "${mandir}/man1/convert.im7.1" | ||
99 | ALTERNATIVE_LINK_NAME[display.1] = "${mandir}/man1/display.1" | ||
100 | ALTERNATIVE_TARGET[display.1] = "${mandir}/man1/display.im7.1" | ||
101 | ALTERNATIVE_LINK_NAME[identify.1] = "${mandir}/man1/identify.1" | ||
102 | ALTERNATIVE_TARGET[identify.1] = "${mandir}/man1/identify.im7.1" | ||
103 | ALTERNATIVE_LINK_NAME[import.1] = "${mandir}/man1/import.1" | ||
104 | ALTERNATIVE_TARGET[import.1] = "${mandir}/man1/import.im7.1" | ||
105 | ALTERNATIVE_LINK_NAME[magick-script.1] = "${mandir}/man1/magick-script.1" | ||
106 | ALTERNATIVE_TARGET[magick-script.1] = "${mandir}/man1/magick-script.im7.1" | ||
107 | ALTERNATIVE_LINK_NAME[mogrify.1] = "${mandir}/man1/mogrify.1" | ||
108 | ALTERNATIVE_TARGET[mogrify.1] = "${mandir}/man1/mogrify.im7.1" | ||
109 | ALTERNATIVE_LINK_NAME[montage.1] = "${mandir}/man1/montage.1" | ||
110 | ALTERNATIVE_TARGET[montage.1] = "${mandir}/man1/montage.im7.1" | ||
111 | ALTERNATIVE_LINK_NAME[stream.1] = "${mandir}/man1/stream.1" | ||
112 | ALTERNATIVE_TARGET[stream.1] = "${mandir}/man1/stream.im7.1" | ||
113 | |||
114 | CVE_STATUS[CVE-2007-1667] = "cpe-incorrect: CVE should not include a CPE for imagemagick" | ||
115 | CVE_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" | ||
116 | CVE_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" | ||
117 | CVE_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" | ||
118 | CVE_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" | ||
119 | CVE_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" | ||
120 | CVE_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" | ||
121 | CVE_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" | ||
122 | CVE_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" | ||
123 | CVE_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" | ||
124 | CVE_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" | ||
125 | CVE_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" | ||
126 | CVE_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" | ||
127 | CVE_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" | ||
128 | CVE_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" | ||
129 | CVE_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" | ||
130 | CVE_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" | ||
131 | CVE_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" | ||
132 | CVE_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" | ||
133 | CVE_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" | ||
134 | CVE_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" | ||
135 | CVE_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" | ||
136 | CVE_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" | ||
137 | CVE_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" | ||
138 | CVE_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" | ||
139 | CVE_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" | ||
140 | CVE_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" | ||
141 | CVE_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" | ||
142 | CVE_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" | ||
143 | CVE_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" | ||
144 | CVE_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" | ||
145 | CVE_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" | ||
146 | CVE_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" | ||
147 | CVE_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" | ||
148 | CVE_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" | ||
149 | CVE_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" | ||
150 | CVE_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" | ||
151 | CVE_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" | ||
152 | CVE_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" | ||
153 | CVE_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" | ||
154 | CVE_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" | ||
155 | CVE_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" | ||
156 | CVE_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" | ||
157 | CVE_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" | ||
158 | CVE_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" | ||
159 | CVE_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" | ||
160 | CVE_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" | ||
161 | CVE_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" | ||
162 | CVE_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" | ||
163 | CVE_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" | ||
164 | CVE_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" | ||
165 | CVE_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" | ||
166 | CVE_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" | ||
167 | CVE_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" | ||
168 | CVE_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" | ||
169 | CVE_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" | ||
170 | CVE_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" | ||
171 | CVE_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" | ||
172 | CVE_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" | ||
173 | CVE_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" | ||
174 | CVE_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" | ||
175 | CVE_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" | ||
176 | CVE_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" | ||
177 | CVE_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" | ||
178 | CVE_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" | ||
179 | CVE_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" | ||
180 | CVE_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" | ||
181 | CVE_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" | ||
182 | CVE_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" | ||
183 | CVE_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.1.bb b/meta-oe/recipes-support/imagemagick/imagemagick_7.1.1.bb deleted file mode 100644 index 6ab8a61b9b..0000000000 --- a/meta-oe/recipes-support/imagemagick/imagemagick_7.1.1.bb +++ /dev/null | |||
@@ -1,101 +0,0 @@ | |||
1 | SUMMARY = "ImageMagick is an image conversion toolkit" | ||
2 | SECTION = "console/utils" | ||
3 | HOMEPAGE = "https://www.imagemagick.org/" | ||
4 | DESCRIPTION = "ImageMagick is a collection of tools for displaying, converting, and \ | ||
5 | editing raster and vector image files. It can read and write over 200 image file formats." | ||
6 | LICENSE = "ImageMagick" | ||
7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=2f9de66264141265b203cde9902819ea \ | ||
8 | file://NOTICE;md5=bcbf1f1897b40ec8df39700cb560e9ed" | ||
9 | # FIXME: There are many more checked libraries. All should be added or explicitly disabled to get consistent results. | ||
10 | DEPENDS = "lcms bzip2 jpeg libpng tiff zlib fftw freetype libtool" | ||
11 | |||
12 | BASE_PV := "${PV}" | ||
13 | PV .= "-26" | ||
14 | SRC_URI = "git://github.com/ImageMagick/ImageMagick.git;branch=main;protocol=https" | ||
15 | SRCREV = "570a9a048bb0e3a5c221ca87be9408ae35f711e2" | ||
16 | |||
17 | S = "${WORKDIR}/git" | ||
18 | |||
19 | inherit autotools pkgconfig update-alternatives | ||
20 | export ac_cv_sys_file_offset_bits="64" | ||
21 | |||
22 | EXTRA_OECONF = "--program-prefix= --program-suffix=.im7 --without-perl --enable-largefile" | ||
23 | |||
24 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} cxx webp xml" | ||
25 | PACKAGECONFIG[cxx] = "--with-magick-plus-plus,--without-magick-plus-plus" | ||
26 | PACKAGECONFIG[graphviz] = "--with-gvc,--without-gvc,graphviz" | ||
27 | PACKAGECONFIG[jp2] = "--with-jp2,,jasper" | ||
28 | PACKAGECONFIG[lzma] = "--with-lzma,--without-lzma,xz" | ||
29 | PACKAGECONFIG[openjpeg] = "--with-openjp2,--without-openjp2,openjpeg" | ||
30 | PACKAGECONFIG[pango] = "--with-pango,--without-pango,pango cairo" | ||
31 | PACKAGECONFIG[rsvg] = "--with-rsvg,--without-rsvg,librsvg" | ||
32 | PACKAGECONFIG[tcmalloc] = "--with-tcmalloc=yes,--with-tcmalloc=no,gperftools" | ||
33 | PACKAGECONFIG[webp] = "--with-webp,--without-webp,libwebp" | ||
34 | PACKAGECONFIG[wmf] = "--with-wmf,--without-wmf,libwmf" | ||
35 | PACKAGECONFIG[x11] = "--with-x,--without-x,virtual/libx11 libxext libxt" | ||
36 | PACKAGECONFIG[xml] = "--with-xml,--without-xml,libxml2" | ||
37 | |||
38 | do_install:append:class-target() { | ||
39 | for file in MagickCore-config.im7 MagickWand-config.im7 Magick++-config.im7; do | ||
40 | sed -i 's,${STAGING_DIR_TARGET},,g' ${D}${bindir}/"$file" | ||
41 | done | ||
42 | sed -i 's,${S},,g' ${D}${libdir}/ImageMagick-${BASE_PV}/config-Q16HDRI/configure.xml | ||
43 | sed -i 's,${B},,g' ${D}${libdir}/ImageMagick-${BASE_PV}/config-Q16HDRI/configure.xml | ||
44 | sed -i 's,${RECIPE_SYSROOT},,g' ${D}${libdir}/ImageMagick-${BASE_PV}/config-Q16HDRI/configure.xml | ||
45 | sed -i 's,${HOSTTOOLS_DIR},${bindir},g' ${D}${sysconfdir}/ImageMagick-7/delegates.xml | ||
46 | } | ||
47 | |||
48 | FILES:${PN} += "${libdir}/ImageMagick-${BASE_PV}/config-Q16* \ | ||
49 | ${datadir}/ImageMagick-7" | ||
50 | |||
51 | FILES:${PN}-dev += "${libdir}/ImageMagick-${BASE_PV}/modules-Q16/*/*.a" | ||
52 | |||
53 | FILES:${PN}-dbg += "${libdir}/ImageMagick-${BASE_PV}/modules-Q16/*/.debug/*" | ||
54 | |||
55 | BBCLASSEXTEND = "native nativesdk" | ||
56 | |||
57 | ALTERNATIVE_PRIORITY = "100" | ||
58 | |||
59 | ALTERNATIVE:${PN} = "animate compare composite conjure convert display \ | ||
60 | identify import magick-script mogrify montage stream" | ||
61 | |||
62 | ALTERNATIVE_TARGET[animate] = "${bindir}/animate.im7" | ||
63 | ALTERNATIVE_TARGET[compare] = "${bindir}/compare.im7" | ||
64 | ALTERNATIVE_TARGET[composite] = "${bindir}/composite.im7" | ||
65 | ALTERNATIVE_TARGET[conjure] = "${bindir}/conjure.im7" | ||
66 | ALTERNATIVE_TARGET[convert] = "${bindir}/convert.im7" | ||
67 | ALTERNATIVE_TARGET[display] = "${bindir}/display.im7" | ||
68 | ALTERNATIVE_TARGET[identify] = "${bindir}/identify.im7" | ||
69 | ALTERNATIVE_TARGET[import] = "${bindir}/import.im7" | ||
70 | ALTERNATIVE_TARGET[magick-script] = "${bindir}/magick-script.im7" | ||
71 | ALTERNATIVE_TARGET[mogrify] = "${bindir}/mogrify.im7" | ||
72 | ALTERNATIVE_TARGET[montage] = "${bindir}/montage.im7" | ||
73 | ALTERNATIVE_TARGET[stream] = "${bindir}/stream.im7" | ||
74 | |||
75 | ALTERNATIVE:${PN}-doc = "animate.1 compare.1 composite.1 conjure.1 \ | ||
76 | convert.1 display.1 identify.1 import.1 magick-script.1 mogrify.1 montage.1 stream.1" | ||
77 | |||
78 | ALTERNATIVE_LINK_NAME[animate.1] = "${mandir}/man1/animate.1" | ||
79 | ALTERNATIVE_TARGET[animate.1] = "${mandir}/man1/animate.im7.1" | ||
80 | ALTERNATIVE_LINK_NAME[compare.1] = "${mandir}/man1/compare.1" | ||
81 | ALTERNATIVE_TARGET[compare.1] = "${mandir}/man1/compare.im7.1" | ||
82 | ALTERNATIVE_LINK_NAME[composite.1] = "${mandir}/man1/composite.1" | ||
83 | ALTERNATIVE_TARGET[composite.1] = "${mandir}/man1/composite.im7.1" | ||
84 | ALTERNATIVE_LINK_NAME[conjure.1] = "${mandir}/man1/conjure.1" | ||
85 | ALTERNATIVE_TARGET[conjure.1] = "${mandir}/man1/conjure.im7.1" | ||
86 | ALTERNATIVE_LINK_NAME[convert.1] = "${mandir}/man1/convert.1" | ||
87 | ALTERNATIVE_TARGET[convert.1] = "${mandir}/man1/convert.im7.1" | ||
88 | ALTERNATIVE_LINK_NAME[display.1] = "${mandir}/man1/display.1" | ||
89 | ALTERNATIVE_TARGET[display.1] = "${mandir}/man1/display.im7.1" | ||
90 | ALTERNATIVE_LINK_NAME[identify.1] = "${mandir}/man1/identify.1" | ||
91 | ALTERNATIVE_TARGET[identify.1] = "${mandir}/man1/identify.im7.1" | ||
92 | ALTERNATIVE_LINK_NAME[import.1] = "${mandir}/man1/import.1" | ||
93 | ALTERNATIVE_TARGET[import.1] = "${mandir}/man1/import.im7.1" | ||
94 | ALTERNATIVE_LINK_NAME[magick-script.1] = "${mandir}/man1/magick-script.1" | ||
95 | ALTERNATIVE_TARGET[magick-script.1] = "${mandir}/man1/magick-script.im7.1" | ||
96 | ALTERNATIVE_LINK_NAME[mogrify.1] = "${mandir}/man1/mogrify.1" | ||
97 | ALTERNATIVE_TARGET[mogrify.1] = "${mandir}/man1/mogrify.im7.1" | ||
98 | ALTERNATIVE_LINK_NAME[montage.1] = "${mandir}/man1/montage.1" | ||
99 | ALTERNATIVE_TARGET[montage.1] = "${mandir}/man1/montage.im7.1" | ||
100 | ALTERNATIVE_LINK_NAME[stream.1] = "${mandir}/man1/stream.1" | ||
101 | ALTERNATIVE_TARGET[stream.1] = "${mandir}/man1/stream.im7.1" | ||