diff options
Diffstat (limited to 'meta-gnome/recipes-gimp/gimp/gimp_3.0.4.bb')
| -rw-r--r-- | meta-gnome/recipes-gimp/gimp/gimp_3.0.4.bb | 137 |
1 files changed, 137 insertions, 0 deletions
diff --git a/meta-gnome/recipes-gimp/gimp/gimp_3.0.4.bb b/meta-gnome/recipes-gimp/gimp/gimp_3.0.4.bb new file mode 100644 index 0000000000..32603af310 --- /dev/null +++ b/meta-gnome/recipes-gimp/gimp/gimp_3.0.4.bb | |||
| @@ -0,0 +1,137 @@ | |||
| 1 | SUMMARY = "The GIMP is the GNU Image Manipulation Program" | ||
| 2 | HOMEPAGE = "http://www.gimp.org" | ||
| 3 | SECTION = "graphics" | ||
| 4 | LICENSE = "GPL-3.0-only" | ||
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=c678957b0c8e964aa6c70fd77641a71e" | ||
| 6 | |||
| 7 | DEPENDS = " \ | ||
| 8 | appstream-glib \ | ||
| 9 | atk \ | ||
| 10 | babl \ | ||
| 11 | bzip2 \ | ||
| 12 | bison-native \ | ||
| 13 | cairo \ | ||
| 14 | fontconfig \ | ||
| 15 | freetype \ | ||
| 16 | gdk-pixbuf-native \ | ||
| 17 | gegl \ | ||
| 18 | gexiv2 \ | ||
| 19 | glib-2.0 \ | ||
| 20 | glib-2.0-native \ | ||
| 21 | gtk+3 \ | ||
| 22 | harfbuzz \ | ||
| 23 | iso-codes-native \ | ||
| 24 | jpeg \ | ||
| 25 | json-glib \ | ||
| 26 | lcms \ | ||
| 27 | libarchive \ | ||
| 28 | libexif \ | ||
| 29 | libmypaint \ | ||
| 30 | libpng \ | ||
| 31 | librsvg \ | ||
| 32 | librsvg-native \ | ||
| 33 | libxmu \ | ||
| 34 | libxslt-native \ | ||
| 35 | mypaint-brushes-1.0 \ | ||
| 36 | pango \ | ||
| 37 | poppler \ | ||
| 38 | poppler-data \ | ||
| 39 | python3-pygobject-native \ | ||
| 40 | tiff \ | ||
| 41 | xz \ | ||
| 42 | zlib \ | ||
| 43 | " | ||
| 44 | |||
| 45 | DEPENDS:append:libc-musl = " libexecinfo" | ||
| 46 | |||
| 47 | LDFLAGS:append:libc-musl = " -lexecinfo" | ||
| 48 | |||
| 49 | inherit meson gtk-icon-cache mime-xdg pkgconfig gettext gobject-introspection vala | ||
| 50 | |||
| 51 | GIR_MESON_OPTION = 'can-crosscompile-gir' | ||
| 52 | VALA_MESON_OPTION = "vala" | ||
| 53 | VALA_MESON_ENABLE_FLAG = "enabled" | ||
| 54 | VALA_MESON_DISABLE_FLAG = "disabled" | ||
| 55 | GIDOCGEN_MESON_OPTION = "gi-docgen" | ||
| 56 | GIDOCGEN_MESON_ENABLE_FLAG = "enabled" | ||
| 57 | GIDOCGEN_MESON_DISABLE_FLAG = "disabled" | ||
| 58 | |||
| 59 | SRC_URI = "gitsm://gitlab.gnome.org/GNOME/gimp.git;protocol=https;branch=master" | ||
| 60 | SRC_URI += "file://0001-gimp-cross-compile-fix-for-bz2.patch" | ||
| 61 | SRC_URI += "file://0002-meson.build-reproducibility-fix.patch" | ||
| 62 | SRC_URI += "file://0001-meson.build-dont-check-for-lgi.patch" | ||
| 63 | SRC_URI += "file://0001-meson.build-require-iso-codes-native.patch" | ||
| 64 | SRCREV = "c1901c5be644ab8dcaf779b1f383bf5370bc90c6" | ||
| 65 | |||
| 66 | S = "${WORKDIR}/git" | ||
| 67 | |||
| 68 | PACKAGECONFIG[aa] = "-Daa=enabled,-Daa=disabled,aalib" | ||
| 69 | PACKAGECONFIG[alsa] = "-Dalsa=enabled,-Dalsa=disabled,alsa-lib" | ||
| 70 | PACKAGECONFIG[appdata-test] = "-Dappdata-test=enabled,-Dappdata-test=disabled,appstream-native" | ||
| 71 | PACKAGECONFIG[cairo-pdf] = "-Dcairo-pdf=enabled,-Dcairo-pdf=disabled" | ||
| 72 | PACKAGECONFIG[check-update] = "-Dcheck-update=yes,-Dcheck-update=no" | ||
| 73 | PACKAGECONFIG[ghostscript] = "-Dghostscript=enabled,-Dghostscript=disabled,ghostscript,ghostscript" | ||
| 74 | PACKAGECONFIG[gudev] = "-Dgudev=enabled,-Dgudev=disabled,libgudev" | ||
| 75 | PACKAGECONFIG[heif] = "-Dheif=enabled,-Dheif=disabled,libheif" | ||
| 76 | PACKAGECONFIG[javascript] = "-Djavascript=enabled,-Djavascript=disabled,,gjs" | ||
| 77 | PACKAGECONFIG[jpeg2000] = "-Djpeg2000=enabled,-Djpeg2000=disabled,jasper" | ||
| 78 | PACKAGECONFIG[jpeg-xl] = "-Djpeg-xl=enabled,-Djpeg-xl=disabled,libjxl" | ||
| 79 | PACKAGECONFIG[libunwind] = "-Dlibunwind=true,-Dlibunwind=false,libunwind" | ||
| 80 | PACKAGECONFIG[libbacktrace] = "-Dlibbacktrace=true,-Dlibbacktrace=false,libbacktrace" | ||
| 81 | PACKAGECONFIG[lua] = "-Dlua=true,-Dlua=false,,luajit lua-lgi" | ||
| 82 | PACKAGECONFIG[mng] = "-Dmng=enabled,-Dmng=disabled,libmng" | ||
| 83 | PACKAGECONFIG[openmp] = "-Dopenmp=enabled,-Dopenmp=disabled,gcc-runtime" | ||
| 84 | PACKAGECONFIG[vector-icons] = "-Dvector-icons=true,-Dvector-icons=false,librsvg shared-mime-info" | ||
| 85 | PACKAGECONFIG[webp] = "-Dwebp=enabled,-Dwebp=disabled,libwebp" | ||
| 86 | PACKAGECONFIG[xcursor] = "-Dxcursor=enabled,-Dxcursor=disabled,libxcursor" | ||
| 87 | PACKAGECONFIG[x11] = "-Dxpm=enabled,-Dxpm=disabled,libxpm libxext libxfixes" | ||
| 88 | |||
| 89 | PACKAGECONFIG ?= " \ | ||
| 90 | alsa \ | ||
| 91 | cairo-pdf \ | ||
| 92 | ghostscript \ | ||
| 93 | gudev \ | ||
| 94 | javascript \ | ||
| 95 | jpeg2000 \ | ||
| 96 | jpeg-xl \ | ||
| 97 | lua \ | ||
| 98 | mng \ | ||
| 99 | webp \ | ||
| 100 | ${@oe.utils.conditional('SITEINFO_BITS', '32', '', 'vector-icons', d)} \ | ||
| 101 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 xcursor', '', d)} \ | ||
| 102 | " | ||
| 103 | |||
| 104 | PACKAGECONFIG:remove:riscv32 = "lua" | ||
| 105 | PACKAGECONFIG:remove:riscv64 = "lua" | ||
| 106 | PACKAGECONFIG:remove:powerpc64 = "lua" | ||
| 107 | PACKAGECONFIG:remove:powerpc64le = "lua" | ||
| 108 | |||
| 109 | EXTRA_OEMESON += " \ | ||
| 110 | -Dshmem-type=posix \ | ||
| 111 | -Dlinux-input=enabled \ | ||
| 112 | --buildtype release \ | ||
| 113 | --cross-file=${WORKDIR}/meson-${PN}.cross \ | ||
| 114 | " | ||
| 115 | |||
| 116 | do_write_config:append() { | ||
| 117 | cat >${WORKDIR}/meson-${PN}.cross <<EOF | ||
| 118 | [binaries] | ||
| 119 | gjs = '${bindir}/gjs' | ||
| 120 | luajit = '${bindir}/luajit' | ||
| 121 | EOF | ||
| 122 | } | ||
| 123 | |||
| 124 | do_configure:append () { | ||
| 125 | sed -i -e "s|build_by_default: true|build_by_default: false|" ${S}/gimp-data/images/meson.build | ||
| 126 | } | ||
| 127 | |||
| 128 | do_install:prepend() { | ||
| 129 | sed -i -e "s|${B}||" ${B}/app/widgets/gimplanguagestore-data.h | ||
| 130 | sed -i -e "s|${B}||" ${B}/plug-ins/file-bmp/huffman.h | ||
| 131 | } | ||
| 132 | |||
| 133 | FILES:${PN} += "${datadir}/metainfo" | ||
| 134 | |||
| 135 | RDEPENDS:${PN} = "mypaint-brushes-1.0 glib-networking python3-pygobject" | ||
| 136 | |||
| 137 | CVE_STATUS[CVE-2007-3741] = "not-applicable-platform: This only applies for Mandriva Linux" | ||
