diff options
| author | Markus Volk <f_l_k@t-online.de> | 2023-05-09 14:46:12 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-05-09 17:27:50 -0700 |
| commit | d5f721182b8a04f97981ab72a4de8480510ad3aa (patch) | |
| tree | 4b7359c3f970d581930f372f9419d4450e87629a | |
| parent | 3f09dd5216b6571019945266fcb4418f63edf0bc (diff) | |
| download | meta-openembedded-d5f721182b8a04f97981ab72a4de8480510ad3aa.tar.gz | |
imaagemagick: update 7.1.1-5 -> 7.1.1-8
- add PACKAGECONFIG for xml
- add configuration
- workaround reproducibility issues
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-support/imagemagick/imagemagick_7.1.1.bb | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/meta-oe/recipes-support/imagemagick/imagemagick_7.1.1.bb b/meta-oe/recipes-support/imagemagick/imagemagick_7.1.1.bb index 07434c0564..e59b511a72 100644 --- a/meta-oe/recipes-support/imagemagick/imagemagick_7.1.1.bb +++ b/meta-oe/recipes-support/imagemagick/imagemagick_7.1.1.bb | |||
| @@ -10,23 +10,19 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=ac58ac14f9d9d02cafd2d81ef38fb2cc \ | |||
| 10 | DEPENDS = "lcms bzip2 jpeg libpng tiff zlib fftw freetype libtool" | 10 | DEPENDS = "lcms bzip2 jpeg libpng tiff zlib fftw freetype libtool" |
| 11 | 11 | ||
| 12 | BASE_PV := "${PV}" | 12 | BASE_PV := "${PV}" |
| 13 | PV .= "-5" | 13 | PV .= "-8" |
| 14 | SRC_URI = "git://github.com/ImageMagick/ImageMagick.git;branch=main;protocol=https \ | 14 | SRC_URI = "git://github.com/ImageMagick/ImageMagick.git;branch=main;protocol=https \ |
| 15 | file://0001-m4-Use-autconf-provided-AC_FUNC_FSEEKO.patch" | 15 | file://0001-m4-Use-autconf-provided-AC_FUNC_FSEEKO.patch" |
| 16 | SRCREV = "2d24be538f286962c355cf422bb525375ac77998" | 16 | SRCREV = "920f79206ff59f30a4cff22c9c9c393508b82663" |
| 17 | 17 | ||
| 18 | S = "${WORKDIR}/git" | 18 | S = "${WORKDIR}/git" |
| 19 | 19 | ||
| 20 | inherit autotools pkgconfig update-alternatives | 20 | inherit autotools pkgconfig update-alternatives |
| 21 | export ac_cv_sys_file_offset_bits="64" | 21 | export ac_cv_sys_file_offset_bits="64" |
| 22 | 22 | ||
| 23 | # xml disabled because it's using xml2-config --prefix to determine prefix which returns just /usr with our libxml2 | 23 | EXTRA_OECONF = "--program-prefix= --program-suffix=.im7 --without-perl --enable-largefile" |
| 24 | # if someone needs xml support then fix it first | ||
| 25 | EXTRA_OECONF = "--program-prefix= --program-suffix=.im7 --without-perl \ | ||
| 26 | --disable-openmp --without-xml --disable-opencl \ | ||
| 27 | --enable-largefile" | ||
| 28 | 24 | ||
| 29 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}" | 25 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} cxx webp xml" |
| 30 | PACKAGECONFIG[cxx] = "--with-magick-plus-plus,--without-magick-plus-plus" | 26 | PACKAGECONFIG[cxx] = "--with-magick-plus-plus,--without-magick-plus-plus" |
| 31 | PACKAGECONFIG[graphviz] = "--with-gvc,--without-gvc,graphviz" | 27 | PACKAGECONFIG[graphviz] = "--with-gvc,--without-gvc,graphviz" |
| 32 | PACKAGECONFIG[jp2] = "--with-jp2,,jasper" | 28 | PACKAGECONFIG[jp2] = "--with-jp2,,jasper" |
| @@ -38,6 +34,17 @@ PACKAGECONFIG[tcmalloc] = "--with-tcmalloc=yes,--with-tcmalloc=no,gperftools" | |||
| 38 | PACKAGECONFIG[webp] = "--with-webp,--without-webp,libwebp" | 34 | PACKAGECONFIG[webp] = "--with-webp,--without-webp,libwebp" |
| 39 | PACKAGECONFIG[wmf] = "--with-wmf,--without-wmf,libwmf" | 35 | PACKAGECONFIG[wmf] = "--with-wmf,--without-wmf,libwmf" |
| 40 | PACKAGECONFIG[x11] = "--with-x,--without-x,virtual/libx11 libxext libxt" | 36 | PACKAGECONFIG[x11] = "--with-x,--without-x,virtual/libx11 libxext libxt" |
| 37 | PACKAGECONFIG[xml] = "--with-xml,--without-xml,libxml2" | ||
| 38 | |||
| 39 | do_install:append:class-target() { | ||
| 40 | for file in MagickCore-config.im7 MagickWand-config.im7 Magick++-config.im7; do | ||
| 41 | sed -i 's,${STAGING_DIR_NATIVE},,g' ${D}${bindir}/"$file" | ||
| 42 | done | ||
| 43 | sed -i 's,${S},,g' ${D}${libdir}/ImageMagick-${BASE_PV}/config-Q16HDRI/configure.xml | ||
| 44 | sed -i 's,${B},,g' ${D}${libdir}/ImageMagick-${BASE_PV}/config-Q16HDRI/configure.xml | ||
| 45 | sed -i 's,${RECIPE_SYSROOT},,g' ${D}${libdir}/ImageMagick-${BASE_PV}/config-Q16HDRI/configure.xml | ||
| 46 | sed -i 's,${HOSTTOOLS_DIR},${bindir},g' ${D}${sysconfdir}/ImageMagick-7/delegates.xml | ||
| 47 | } | ||
| 41 | 48 | ||
| 42 | FILES:${PN} += "${libdir}/ImageMagick-${BASE_PV}/config-Q16* \ | 49 | FILES:${PN} += "${libdir}/ImageMagick-${BASE_PV}/config-Q16* \ |
| 43 | ${datadir}/ImageMagick-7" | 50 | ${datadir}/ImageMagick-7" |
