Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 1 | SUMMARY = "ImageMagick is an image conversion toolkit" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 2 | SECTION = "console/utils" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 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." |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 6 | LICENSE = "ImageMagick" |
Andrew Geissler | 615f2f1 | 2022-07-15 14:00:58 -0500 | [diff] [blame] | 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=b97c12a9213df1499565d69b92c73dd7 \ |
| 8 | file://NOTICE;md5=d8b9d2ccf273687ad12ebd06e5d8478f" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 9 | # FIXME: There are many more checked libraries. All should be added or explicitly disabled to get consistent results. |
Brad Bishop | 34ae600 | 2019-04-08 15:21:03 -0400 | [diff] [blame] | 10 | DEPENDS = "lcms bzip2 jpeg libpng tiff zlib fftw freetype libtool" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 11 | |
| 12 | BASE_PV := "${PV}" |
Andrew Geissler | 615f2f1 | 2022-07-15 14:00:58 -0500 | [diff] [blame] | 13 | PV .= "-62" |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 14 | SRC_URI = "git://github.com/ImageMagick/ImageMagick.git;branch=main;protocol=https" |
Andrew Geissler | 615f2f1 | 2022-07-15 14:00:58 -0500 | [diff] [blame] | 15 | SRCREV = "35b4991eb0939a327f3489988c366e21068b0178" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 16 | |
| 17 | S = "${WORKDIR}/git" |
| 18 | |
| 19 | inherit autotools pkgconfig update-alternatives |
| 20 | |
| 21 | # xml disabled because it's using xml2-config --prefix to determine prefix which returns just /usr with our libxml2 |
| 22 | # if someone needs xml support then fix it first |
| 23 | EXTRA_OECONF = "--program-prefix= --program-suffix=.im7 --without-perl --disable-openmp --without-xml --disable-opencl" |
| 24 | |
| 25 | CACHED_CONFIGUREVARS = "ac_cv_sys_file_offset_bits=yes" |
| 26 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}" |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 27 | PACKAGECONFIG[cxx] = "--with-magick-plus-plus,--without-magick-plus-plus" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 28 | PACKAGECONFIG[graphviz] = "--with-gvc,--without-gvc,graphviz" |
| 29 | PACKAGECONFIG[jp2] = "--with-jp2,,jasper" |
| 30 | PACKAGECONFIG[lzma] = "--with-lzma,--without-lzma,xz" |
| 31 | PACKAGECONFIG[openjpeg] = "--with-openjp2,--without-openjp2,openjpeg" |
| 32 | PACKAGECONFIG[pango] = "--with-pango,--without-pango,pango cairo" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 33 | PACKAGECONFIG[rsvg] = "--with-rsvg,--without-rsvg,librsvg" |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 34 | PACKAGECONFIG[tcmalloc] = "--with-tcmalloc=yes,--with-tcmalloc=no,gperftools" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 35 | PACKAGECONFIG[webp] = "--with-webp,--without-webp,libwebp" |
| 36 | PACKAGECONFIG[wmf] = "--with-wmf,--without-wmf,libwmf" |
| 37 | PACKAGECONFIG[x11] = "--with-x,--without-x,virtual/libx11 libxext libxt" |
| 38 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 39 | FILES:${PN} += "${libdir}/ImageMagick-${BASE_PV}/config-Q16* \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 40 | ${datadir}/ImageMagick-7" |
| 41 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 42 | FILES:${PN}-dev += "${libdir}/ImageMagick-${BASE_PV}/modules-Q16/*/*.a" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 43 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 44 | FILES:${PN}-dbg += "${libdir}/ImageMagick-${BASE_PV}/modules-Q16/*/.debug/*" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 45 | |
| 46 | BBCLASSEXTEND = "native" |
| 47 | |
| 48 | ALTERNATIVE_PRIORITY = "100" |
| 49 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 50 | ALTERNATIVE:${PN} = "animate compare composite conjure convert display \ |
Andrew Geissler | d688a01 | 2020-09-18 13:36:00 -0500 | [diff] [blame] | 51 | identify import magick-script mogrify montage stream" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 52 | |
| 53 | ALTERNATIVE_TARGET[animate] = "${bindir}/animate.im7" |
| 54 | ALTERNATIVE_TARGET[compare] = "${bindir}/compare.im7" |
| 55 | ALTERNATIVE_TARGET[composite] = "${bindir}/composite.im7" |
| 56 | ALTERNATIVE_TARGET[conjure] = "${bindir}/conjure.im7" |
| 57 | ALTERNATIVE_TARGET[convert] = "${bindir}/convert.im7" |
| 58 | ALTERNATIVE_TARGET[display] = "${bindir}/display.im7" |
| 59 | ALTERNATIVE_TARGET[identify] = "${bindir}/identify.im7" |
| 60 | ALTERNATIVE_TARGET[import] = "${bindir}/import.im7" |
Andrew Geissler | d688a01 | 2020-09-18 13:36:00 -0500 | [diff] [blame] | 61 | ALTERNATIVE_TARGET[magick-script] = "${bindir}/magick-script.im7" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 62 | ALTERNATIVE_TARGET[mogrify] = "${bindir}/mogrify.im7" |
| 63 | ALTERNATIVE_TARGET[montage] = "${bindir}/montage.im7" |
| 64 | ALTERNATIVE_TARGET[stream] = "${bindir}/stream.im7" |
| 65 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 66 | ALTERNATIVE:${PN}-doc = "animate.1 compare.1 composite.1 conjure.1 \ |
Andrew Geissler | d688a01 | 2020-09-18 13:36:00 -0500 | [diff] [blame] | 67 | convert.1 display.1 identify.1 import.1 magick-script.1 mogrify.1 montage.1 stream.1" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 68 | |
| 69 | ALTERNATIVE_LINK_NAME[animate.1] = "${mandir}/man1/animate.1" |
| 70 | ALTERNATIVE_TARGET[animate.1] = "${mandir}/man1/animate.im7.1" |
| 71 | ALTERNATIVE_LINK_NAME[compare.1] = "${mandir}/man1/compare.1" |
| 72 | ALTERNATIVE_TARGET[compare.1] = "${mandir}/man1/compare.im7.1" |
| 73 | ALTERNATIVE_LINK_NAME[composite.1] = "${mandir}/man1/composite.1" |
| 74 | ALTERNATIVE_TARGET[composite.1] = "${mandir}/man1/composite.im7.1" |
| 75 | ALTERNATIVE_LINK_NAME[conjure.1] = "${mandir}/man1/conjure.1" |
| 76 | ALTERNATIVE_TARGET[conjure.1] = "${mandir}/man1/conjure.im7.1" |
| 77 | ALTERNATIVE_LINK_NAME[convert.1] = "${mandir}/man1/convert.1" |
| 78 | ALTERNATIVE_TARGET[convert.1] = "${mandir}/man1/convert.im7.1" |
| 79 | ALTERNATIVE_LINK_NAME[display.1] = "${mandir}/man1/display.1" |
| 80 | ALTERNATIVE_TARGET[display.1] = "${mandir}/man1/display.im7.1" |
| 81 | ALTERNATIVE_LINK_NAME[identify.1] = "${mandir}/man1/identify.1" |
| 82 | ALTERNATIVE_TARGET[identify.1] = "${mandir}/man1/identify.im7.1" |
| 83 | ALTERNATIVE_LINK_NAME[import.1] = "${mandir}/man1/import.1" |
| 84 | ALTERNATIVE_TARGET[import.1] = "${mandir}/man1/import.im7.1" |
Andrew Geissler | d688a01 | 2020-09-18 13:36:00 -0500 | [diff] [blame] | 85 | ALTERNATIVE_LINK_NAME[magick-script.1] = "${mandir}/man1/magick-script.1" |
| 86 | ALTERNATIVE_TARGET[magick-script.1] = "${mandir}/man1/magick-script.im7.1" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 87 | ALTERNATIVE_LINK_NAME[mogrify.1] = "${mandir}/man1/mogrify.1" |
| 88 | ALTERNATIVE_TARGET[mogrify.1] = "${mandir}/man1/mogrify.im7.1" |
| 89 | ALTERNATIVE_LINK_NAME[montage.1] = "${mandir}/man1/montage.1" |
| 90 | ALTERNATIVE_TARGET[montage.1] = "${mandir}/man1/montage.im7.1" |
| 91 | ALTERNATIVE_LINK_NAME[stream.1] = "${mandir}/man1/stream.1" |
| 92 | ALTERNATIVE_TARGET[stream.1] = "${mandir}/man1/stream.im7.1" |