summaryrefslogtreecommitdiffstats
path: root/meta-gnome/recipes-gimp/gimp/gimp_3.0.4.bb
diff options
context:
space:
mode:
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.bb137
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 @@
1SUMMARY = "The GIMP is the GNU Image Manipulation Program"
2HOMEPAGE = "http://www.gimp.org"
3SECTION = "graphics"
4LICENSE = "GPL-3.0-only"
5LIC_FILES_CHKSUM = "file://COPYING;md5=c678957b0c8e964aa6c70fd77641a71e"
6
7DEPENDS = " \
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
45DEPENDS:append:libc-musl = " libexecinfo"
46
47LDFLAGS:append:libc-musl = " -lexecinfo"
48
49inherit meson gtk-icon-cache mime-xdg pkgconfig gettext gobject-introspection vala
50
51GIR_MESON_OPTION = 'can-crosscompile-gir'
52VALA_MESON_OPTION = "vala"
53VALA_MESON_ENABLE_FLAG = "enabled"
54VALA_MESON_DISABLE_FLAG = "disabled"
55GIDOCGEN_MESON_OPTION = "gi-docgen"
56GIDOCGEN_MESON_ENABLE_FLAG = "enabled"
57GIDOCGEN_MESON_DISABLE_FLAG = "disabled"
58
59SRC_URI = "gitsm://gitlab.gnome.org/GNOME/gimp.git;protocol=https;branch=master"
60SRC_URI += "file://0001-gimp-cross-compile-fix-for-bz2.patch"
61SRC_URI += "file://0002-meson.build-reproducibility-fix.patch"
62SRC_URI += "file://0001-meson.build-dont-check-for-lgi.patch"
63SRC_URI += "file://0001-meson.build-require-iso-codes-native.patch"
64SRCREV = "c1901c5be644ab8dcaf779b1f383bf5370bc90c6"
65
66S = "${WORKDIR}/git"
67
68PACKAGECONFIG[aa] = "-Daa=enabled,-Daa=disabled,aalib"
69PACKAGECONFIG[alsa] = "-Dalsa=enabled,-Dalsa=disabled,alsa-lib"
70PACKAGECONFIG[appdata-test] = "-Dappdata-test=enabled,-Dappdata-test=disabled,appstream-native"
71PACKAGECONFIG[cairo-pdf] = "-Dcairo-pdf=enabled,-Dcairo-pdf=disabled"
72PACKAGECONFIG[check-update] = "-Dcheck-update=yes,-Dcheck-update=no"
73PACKAGECONFIG[ghostscript] = "-Dghostscript=enabled,-Dghostscript=disabled,ghostscript,ghostscript"
74PACKAGECONFIG[gudev] = "-Dgudev=enabled,-Dgudev=disabled,libgudev"
75PACKAGECONFIG[heif] = "-Dheif=enabled,-Dheif=disabled,libheif"
76PACKAGECONFIG[javascript] = "-Djavascript=enabled,-Djavascript=disabled,,gjs"
77PACKAGECONFIG[jpeg2000] = "-Djpeg2000=enabled,-Djpeg2000=disabled,jasper"
78PACKAGECONFIG[jpeg-xl] = "-Djpeg-xl=enabled,-Djpeg-xl=disabled,libjxl"
79PACKAGECONFIG[libunwind] = "-Dlibunwind=true,-Dlibunwind=false,libunwind"
80PACKAGECONFIG[libbacktrace] = "-Dlibbacktrace=true,-Dlibbacktrace=false,libbacktrace"
81PACKAGECONFIG[lua] = "-Dlua=true,-Dlua=false,,luajit lua-lgi"
82PACKAGECONFIG[mng] = "-Dmng=enabled,-Dmng=disabled,libmng"
83PACKAGECONFIG[openmp] = "-Dopenmp=enabled,-Dopenmp=disabled,gcc-runtime"
84PACKAGECONFIG[vector-icons] = "-Dvector-icons=true,-Dvector-icons=false,librsvg shared-mime-info"
85PACKAGECONFIG[webp] = "-Dwebp=enabled,-Dwebp=disabled,libwebp"
86PACKAGECONFIG[xcursor] = "-Dxcursor=enabled,-Dxcursor=disabled,libxcursor"
87PACKAGECONFIG[x11] = "-Dxpm=enabled,-Dxpm=disabled,libxpm libxext libxfixes"
88
89PACKAGECONFIG ?= " \
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
104PACKAGECONFIG:remove:riscv32 = "lua"
105PACKAGECONFIG:remove:riscv64 = "lua"
106PACKAGECONFIG:remove:powerpc64 = "lua"
107PACKAGECONFIG:remove:powerpc64le = "lua"
108
109EXTRA_OEMESON += " \
110 -Dshmem-type=posix \
111 -Dlinux-input=enabled \
112 --buildtype release \
113 --cross-file=${WORKDIR}/meson-${PN}.cross \
114"
115
116do_write_config:append() {
117 cat >${WORKDIR}/meson-${PN}.cross <<EOF
118[binaries]
119gjs = '${bindir}/gjs'
120luajit = '${bindir}/luajit'
121EOF
122}
123
124do_configure:append () {
125 sed -i -e "s|build_by_default: true|build_by_default: false|" ${S}/gimp-data/images/meson.build
126}
127
128do_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
133FILES:${PN} += "${datadir}/metainfo"
134
135RDEPENDS:${PN} = "mypaint-brushes-1.0 glib-networking python3-pygobject"
136
137CVE_STATUS[CVE-2007-3741] = "not-applicable-platform: This only applies for Mandriva Linux"