diff options
Diffstat (limited to 'meta-gnome/recipes-gimp/gimp')
10 files changed, 292 insertions, 185 deletions
diff --git a/meta-gnome/recipes-gimp/gimp/gimp/0001-configure-Keep-first-line-of-compiler-version-string.patch b/meta-gnome/recipes-gimp/gimp/gimp/0001-configure-Keep-first-line-of-compiler-version-string.patch deleted file mode 100644 index 618b4cc7a7..0000000000 --- a/meta-gnome/recipes-gimp/gimp/gimp/0001-configure-Keep-first-line-of-compiler-version-string.patch +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | From 5711ccfab40e304ced7f5be39a4083e3fcecff91 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 24 May 2023 22:22:41 -0700 | ||
4 | Subject: [PATCH] configure: Keep first line of compiler version string | ||
5 | |||
6 | Full output of cc -v may contain additional information which could | ||
7 | contain build path information, which is unnessasary | ||
8 | |||
9 | Upstream-Status: Submitted [https://gitlab.gnome.org/GNOME/gimp/-/merge_requests/926] | ||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | configure.ac | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/configure.ac b/configure.ac | ||
16 | index c25415d..68707a0 100644 | ||
17 | --- a/configure.ac | ||
18 | +++ b/configure.ac | ||
19 | @@ -599,7 +599,7 @@ fi | ||
20 | for CC_VERSION_OPT in $CC_VERSION_OPTS; do | ||
21 | # We run $CC, and escape and format its output, in a single step, | ||
22 | # since some shells expand escape sequences in "echo" arguments. | ||
23 | - CC_VERSION="`$CC $CC_VERSION_OPT 2>&1 | sed -e 's/\\\\/\\\\\\\\\\\\\\\\/g;s/^/\\\\t/;s/$/\\\\n/' | tr -d '\n'`" | ||
24 | + CC_VERSION="`$CC $CC_VERSION_OPT 2>&1 | head -1 | sed -e 's/\\\\/\\\\\\\\\\\\\\\\/g;s/^/\\\\t/;s/$/\\\\n/' | tr -d '\n'`" | ||
25 | if test $? -eq 0; then | ||
26 | break | ||
27 | fi | ||
28 | -- | ||
29 | 2.40.1 | ||
30 | |||
diff --git a/meta-gnome/recipes-gimp/gimp/gimp/0001-file-tiff-load-fix-mismatching-variable-type.patch b/meta-gnome/recipes-gimp/gimp/gimp/0001-file-tiff-load-fix-mismatching-variable-type.patch deleted file mode 100644 index 13b3dda144..0000000000 --- a/meta-gnome/recipes-gimp/gimp/gimp/0001-file-tiff-load-fix-mismatching-variable-type.patch +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
1 | From a2458f1528e5733574bb26ff5452b1329116e6db Mon Sep 17 00:00:00 2001 | ||
2 | From: Simon Budig <simon@budig.de> | ||
3 | Date: Sat, 20 May 2023 18:40:41 +0200 | ||
4 | Subject: [PATCH] file-tiff-load: fix mismatching variable type | ||
5 | |||
6 | Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/gimp/-/commit/a2458f1528e5733574bb26ff5452b1329116e6db] | ||
7 | Signed-off-by: Khem Raj <raj.khem@gmai.com> | ||
8 | --- | ||
9 | plug-ins/file-tiff/file-tiff-load.c | 6 +++--- | ||
10 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
11 | |||
12 | --- a/plug-ins/file-tiff/file-tiff-load.c | ||
13 | +++ b/plug-ins/file-tiff/file-tiff-load.c | ||
14 | @@ -1301,8 +1301,8 @@ load_image (GFile *file, | ||
15 | |||
16 | /* any resolution info in the file? */ | ||
17 | { | ||
18 | - gfloat xres = 72.0; | ||
19 | - gfloat yres = 72.0; | ||
20 | + gdouble xres = 72.0; | ||
21 | + gdouble yres = 72.0; | ||
22 | gushort read_unit; | ||
23 | GimpUnit unit = GIMP_UNIT_PIXEL; /* invalid unit */ | ||
24 | |||
diff --git a/meta-gnome/recipes-gimp/gimp/gimp/0001-gimp-cross-compile-fix-for-bz2.patch b/meta-gnome/recipes-gimp/gimp/gimp/0001-gimp-cross-compile-fix-for-bz2.patch new file mode 100644 index 0000000000..721225c8b3 --- /dev/null +++ b/meta-gnome/recipes-gimp/gimp/gimp/0001-gimp-cross-compile-fix-for-bz2.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From a7e40e19d17404cf5ec4135fc1becd5a90f5e1e1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Markus Volk <f_l_k@t-online.de> | ||
3 | Date: Wed, 25 Dec 2024 07:27:04 +0100 | ||
4 | Subject: [PATCH] gimp: cross-compile fix for bz2 | ||
5 | |||
6 | autotools bzip2 build does not create pkgconfig files so looking for the dependency fails. | ||
7 | |||
8 | Signed-off-by: Markus Volk <f_l_k@t-online.de> | ||
9 | |||
10 | Upstream-Status: Inappropriate [can probably be removed once bzip2 is built with meson or cmake] | ||
11 | --- | ||
12 | meson.build | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/meson.build b/meson.build | ||
16 | index 4e48f8c64c..d5dce47015 100644 | ||
17 | --- a/meson.build | ||
18 | +++ b/meson.build | ||
19 | @@ -765,7 +765,7 @@ zlib = dependency('zlib') | ||
20 | MIMEtypes += 'image/x-psp' | ||
21 | |||
22 | # Compiler-provided headers can't be found in crossroads environment | ||
23 | -if not meson.is_cross_build() | ||
24 | +if true | ||
25 | bz2 = cc.find_library('bz2') | ||
26 | else | ||
27 | bz2 = dependency('bzip2') | ||
28 | -- | ||
29 | 2.47.1 | ||
30 | |||
diff --git a/meta-gnome/recipes-gimp/gimp/gimp/0001-libtool-Do-not-add-build-time-library-paths-to-LD_LI.patch b/meta-gnome/recipes-gimp/gimp/gimp/0001-libtool-Do-not-add-build-time-library-paths-to-LD_LI.patch deleted file mode 100644 index cec0055284..0000000000 --- a/meta-gnome/recipes-gimp/gimp/gimp/0001-libtool-Do-not-add-build-time-library-paths-to-LD_LI.patch +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | From c720df90dfe3a3e92e34bfb36a04cc792064a501 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 24 May 2023 22:39:02 -0700 | ||
4 | Subject: [PATCH] libtool: Do not add build time library paths to | ||
5 | LD_LIBRARY_PATH | ||
6 | |||
7 | This does not serve much purpose on cross builds as it will add build | ||
8 | time paths which are only useful when trying to run these tools from | ||
9 | build area but when they are cross built this is not possible to run | ||
10 | them like this. | ||
11 | |||
12 | Upstream-Status: Inappropriate [Cross-compile specific] | ||
13 | |||
14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
15 | --- | ||
16 | ltmain.sh | 2 +- | ||
17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
18 | |||
19 | diff --git a/ltmain.sh b/ltmain.sh | ||
20 | index 134902c..068d74a 100644 | ||
21 | --- a/ltmain.sh | ||
22 | +++ b/ltmain.sh | ||
23 | @@ -5748,7 +5748,7 @@ func_exec_program () | ||
24 | if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then | ||
25 | $ECHO "\ | ||
26 | # Add our own library path to $shlibpath_var | ||
27 | - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" | ||
28 | + $shlibpath_var=\"$shlibpath_var\" | ||
29 | |||
30 | # Some systems cannot cope with colon-terminated $shlibpath_var | ||
31 | # The second colon is a workaround for a bug in BeOS R4 sed | ||
32 | -- | ||
33 | 2.40.1 | ||
34 | |||
diff --git a/meta-gnome/recipes-gimp/gimp/gimp/0001-meson.build-dont-check-for-lgi.patch b/meta-gnome/recipes-gimp/gimp/gimp/0001-meson.build-dont-check-for-lgi.patch new file mode 100644 index 0000000000..63a9159a43 --- /dev/null +++ b/meta-gnome/recipes-gimp/gimp/gimp/0001-meson.build-dont-check-for-lgi.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From e56a6330f1e29e489601ea3e7cb31bfd2ebb787a Mon Sep 17 00:00:00 2001 | ||
2 | From: Markus Volk <f_l_k@t-online.de> | ||
3 | Date: Thu, 27 Mar 2025 21:02:22 +0100 | ||
4 | Subject: [PATCH] meson.build: dont check for lgi | ||
5 | |||
6 | Checking if host can run lgi is pointless for cross-compile | ||
7 | Set to be always true because we ensure to install lgi via PACKAGECONFIG | ||
8 | |||
9 | Signed-off-by: Markus Volk <f_l_k@t-online.de> | ||
10 | |||
11 | Upstream-Status: Inappropriate [oe-specific] | ||
12 | --- | ||
13 | meson.build | 6 +----- | ||
14 | 1 file changed, 1 insertion(+), 5 deletions(-) | ||
15 | |||
16 | diff --git a/meson.build b/meson.build | ||
17 | index c91e8fc97d..efbc2d8175 100644 | ||
18 | --- a/meson.build | ||
19 | +++ b/meson.build | ||
20 | @@ -1235,11 +1235,7 @@ if have_lua | ||
21 | endif | ||
22 | |||
23 | if is_supported_lua | ||
24 | - have_lua_lgi = run_command(lua, '-e', | ||
25 | - ''' | ||
26 | - local lgi = require 'lgi' | ||
27 | - ''', | ||
28 | - check: false).returncode() == 0 | ||
29 | + have_lua_lgi = true | ||
30 | endif | ||
31 | |||
32 | if have_lua_lgi | ||
33 | -- | ||
34 | 2.49.0 | ||
35 | |||
diff --git a/meta-gnome/recipes-gimp/gimp/gimp/0001-meson.build-require-iso-codes-native.patch b/meta-gnome/recipes-gimp/gimp/gimp/0001-meson.build-require-iso-codes-native.patch new file mode 100644 index 0000000000..ffb8ef29df --- /dev/null +++ b/meta-gnome/recipes-gimp/gimp/gimp/0001-meson.build-require-iso-codes-native.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From 8ccd12d6ec3330e9646ae9db6fd491226d516dc3 Mon Sep 17 00:00:00 2001 | ||
2 | From: Markus Volk <f_l_k@t-online.de> | ||
3 | Date: Fri, 28 Mar 2025 01:33:00 +0100 | ||
4 | Subject: [PATCH] meson.build: require iso-codes-native | ||
5 | |||
6 | This fixes: | ||
7 | FAILED: app/widgets/gimplanguagestore-data.h | ||
8 | /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/gimp/3.0.2/build/tools/gen-languages | ||
9 | gimp_language_store_parser_init: 0.006277 seconds | ||
10 | ERROR: parse_iso_codes: error parsing '/usr/share/xml/iso-codes/iso_639_3.xml': No such file or directory | ||
11 | |||
12 | Upstream-Status: Denied [https://gitlab.gnome.org/GNOME/gimp/-/merge_requests/2185] | ||
13 | Upstream argues that iso-codes locale (.mo files) are required on the target | ||
14 | |||
15 | Signed-off-by: Markus Volk <f_l_k@t-online.de> | ||
16 | --- | ||
17 | meson.build | 2 +- | ||
18 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
19 | |||
20 | diff --git a/meson.build b/meson.build | ||
21 | index efbc2d8175..fd050f4d3c 100644 | ||
22 | --- a/meson.build | ||
23 | +++ b/meson.build | ||
24 | @@ -1135,7 +1135,7 @@ endif | ||
25 | ################################################################################ | ||
26 | # ISO codes | ||
27 | |||
28 | -isocodes = dependency('iso-codes', required: false) | ||
29 | +isocodes = dependency('iso-codes', required: false, native: true) | ||
30 | if isocodes.found() | ||
31 | isocodes_prefix = isocodes.get_variable(pkgconfig: 'prefix') | ||
32 | isocodes_location = isocodes_prefix / 'share' / 'xml' / 'iso-codes' | ||
33 | -- | ||
34 | 2.49.0 | ||
35 | |||
diff --git a/meta-gnome/recipes-gimp/gimp/gimp/0001-metadata-shut-up-a-weird-warning.patch b/meta-gnome/recipes-gimp/gimp/gimp/0001-metadata-shut-up-a-weird-warning.patch deleted file mode 100644 index 4f04ac8250..0000000000 --- a/meta-gnome/recipes-gimp/gimp/gimp/0001-metadata-shut-up-a-weird-warning.patch +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | From 51311f913d9f417d121f59b83d560c7b4b853d1c Mon Sep 17 00:00:00 2001 | ||
2 | From: Simon Budig <simon@budig.de> | ||
3 | Date: Sat, 20 May 2023 22:25:40 +0200 | ||
4 | Subject: [PATCH] metadata: shut up a weird warning | ||
5 | |||
6 | Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/gimp/-/commit/51311f913d9f417d121f59b83d560c7b4b853d1c] | ||
7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
8 | --- | ||
9 | plug-ins/metadata/metadata-editor.c | 2 +- | ||
10 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
11 | |||
12 | --- a/plug-ins/metadata/metadata-editor.c | ||
13 | +++ b/plug-ins/metadata/metadata-editor.c | ||
14 | @@ -2140,7 +2140,7 @@ metadata_dialog_editor_set_metadata (GEx | ||
15 | } | ||
16 | else | ||
17 | { | ||
18 | - if (! g_strv_contains (values, equiv_values[evi])) | ||
19 | + if (! g_strv_contains ((const gchar * const *) values, equiv_values[evi])) | ||
20 | { | ||
21 | gchar *tmpvalue; | ||
22 | |||
diff --git a/meta-gnome/recipes-gimp/gimp/gimp/0002-meson.build-reproducibility-fix.patch b/meta-gnome/recipes-gimp/gimp/gimp/0002-meson.build-reproducibility-fix.patch new file mode 100644 index 0000000000..532715d588 --- /dev/null +++ b/meta-gnome/recipes-gimp/gimp/gimp/0002-meson.build-reproducibility-fix.patch | |||
@@ -0,0 +1,56 @@ | |||
1 | From bf19c5687703769e406a8086036d4ed6421c33cb Mon Sep 17 00:00:00 2001 | ||
2 | From: Markus Volk <f_l_k@t-online.de> | ||
3 | Date: Mon, 13 Jan 2025 10:04:33 +0100 | ||
4 | Subject: [PATCH] meson.build: reproducibility fix | ||
5 | |||
6 | Signed-off-by: Markus Volk <f_l_k@t-online.de> | ||
7 | |||
8 | Upstream-Status: Inappropriate [oe-specific] | ||
9 | --- | ||
10 | meson.build | 28 ++++++++++++++-------------- | ||
11 | 1 file changed, 14 insertions(+), 14 deletions(-) | ||
12 | |||
13 | diff --git a/meson.build b/meson.build | ||
14 | index 97cd621780..e47180db87 100644 | ||
15 | --- a/meson.build | ||
16 | +++ b/meson.build | ||
17 | @@ -1599,23 +1599,23 @@ conf.set('HAVE_FUNC_ATTRIBUTE_DESTRUCTOR', | ||
18 | conf.set_quoted('CC', cc.get_id()) | ||
19 | |||
20 | cc_version='' | ||
21 | -if cc.get_id() == 'gcc' or cc.get_id() == 'clang' | ||
22 | - cc_cmd = run_command(cc, '-v', check: false) | ||
23 | +#if cc.get_id() == 'gcc' or cc.get_id() == 'clang' | ||
24 | +# cc_cmd = run_command(cc, '-v', check: false) | ||
25 | # Note: the call might actually fail when using ccache. | ||
26 | # See: https://github.com/mesonbuild/meson/issues/6174 | ||
27 | - if cc_cmd.returncode() == 0 | ||
28 | - cc_version = cc_cmd.stdout() + cc_cmd.stderr() | ||
29 | - endif | ||
30 | -else | ||
31 | +# if cc_cmd.returncode() == 0 | ||
32 | +# cc_version = cc_cmd.stdout() + cc_cmd.stderr() | ||
33 | +# endif | ||
34 | +#else | ||
35 | # Various compilers have various options. Try most common ones. This | ||
36 | # list of options comes from autotools checks. | ||
37 | - foreach arg : [ '--version', '-v', '-V', '-qversion' ] | ||
38 | - cc_cmd = run_command(cc, arg, check: false) | ||
39 | - if cc_cmd.returncode() == 0 | ||
40 | - cc_version = cc_cmd.stdout() | ||
41 | - endif | ||
42 | - endforeach | ||
43 | -endif | ||
44 | +# foreach arg : [ '--version', '-v', '-V', '-qversion' ] | ||
45 | +# cc_cmd = run_command(cc, arg, check: false) | ||
46 | +# if cc_cmd.returncode() == 0 | ||
47 | +# cc_version = cc_cmd.stdout() | ||
48 | +# endif | ||
49 | +# endforeach | ||
50 | +#endif | ||
51 | if cc_version == '' | ||
52 | # We didn't manage to get a meaningful verbose version from the | ||
53 | # compiler. Just save its name and version. | ||
54 | -- | ||
55 | 2.47.1 | ||
56 | |||
diff --git a/meta-gnome/recipes-gimp/gimp/gimp_2.10.38.bb b/meta-gnome/recipes-gimp/gimp/gimp_2.10.38.bb deleted file mode 100644 index 833341f850..0000000000 --- a/meta-gnome/recipes-gimp/gimp/gimp_2.10.38.bb +++ /dev/null | |||
@@ -1,75 +0,0 @@ | |||
1 | SUMMARY = "The GIMP is the GNU Image Manipulation Program" | ||
2 | HOMEPAGE = "http://www.gimp.org" | ||
3 | SECTION = "x11/graphics" | ||
4 | LICENSE = "GPL-3.0-only" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=c678957b0c8e964aa6c70fd77641a71e" | ||
6 | |||
7 | DEPENDS = " \ | ||
8 | alsa-lib \ | ||
9 | atk \ | ||
10 | cairo \ | ||
11 | fontconfig \ | ||
12 | freetype \ | ||
13 | gdk-pixbuf-native \ | ||
14 | intltool-native \ | ||
15 | libxslt-native \ | ||
16 | gegl-native \ | ||
17 | dbus-glib \ | ||
18 | gtk+ \ | ||
19 | babl \ | ||
20 | gegl \ | ||
21 | libmypaint \ | ||
22 | mypaint-brushes-1.0 \ | ||
23 | gexiv2 \ | ||
24 | jpeg \ | ||
25 | libmng \ | ||
26 | libpng \ | ||
27 | libexif \ | ||
28 | tiff \ | ||
29 | lcms \ | ||
30 | poppler \ | ||
31 | poppler-data \ | ||
32 | jasper \ | ||
33 | bzip2 \ | ||
34 | libgudev \ | ||
35 | libmng \ | ||
36 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libxmu libxpm', '', d)} \ | ||
37 | " | ||
38 | DEPENDS:append:libc-musl = " libexecinfo" | ||
39 | |||
40 | GNOMEBASEBUILDCLASS = "autotools" | ||
41 | inherit features_check gnomebase gtk-icon-cache gtk-doc mime-xdg | ||
42 | |||
43 | REQUIRED_DISTRO_FEATURES = "x11" | ||
44 | |||
45 | SHPV = "${@gnome_verdir("${PV}")}" | ||
46 | |||
47 | SRC_URI = "https://download.gimp.org/pub/${BPN}/v${SHPV}/${BP}.tar.bz2 \ | ||
48 | file://0001-configure-Keep-first-line-of-compiler-version-string.patch \ | ||
49 | file://0001-libtool-Do-not-add-build-time-library-paths-to-LD_LI.patch \ | ||
50 | file://0001-file-tiff-load-fix-mismatching-variable-type.patch \ | ||
51 | file://0001-metadata-shut-up-a-weird-warning.patch \ | ||
52 | " | ||
53 | SRC_URI[sha256sum] = "50a845eec11c8831fe8661707950f5b8446e35f30edfb9acf98f85c1133f856e" | ||
54 | |||
55 | EXTRA_OECONF = "--disable-python \ | ||
56 | --without-webkit \ | ||
57 | --disable-check-update \ | ||
58 | --without-wmf" | ||
59 | |||
60 | EXTRA_OECONF += "${@oe.utils.conditional('SITEINFO_BITS', '32', ' --disable-vector-icons', '', d)}" | ||
61 | |||
62 | do_configure:append() { | ||
63 | find ${B} -name Makefile | xargs sed -i s:'-I$(includedir)':'-I.':g | ||
64 | find ${B} -name Makefile | xargs sed -i s:'-I/usr/include':'-I${STAGING_INCDIR}':g | ||
65 | } | ||
66 | |||
67 | do_compile:prepend() { | ||
68 | # Let native babl/gegl find their plugins | ||
69 | export BABL_PATH=`find ${STAGING_LIBDIR_NATIVE} -maxdepth 1 -name 'babl-*'` | ||
70 | export GEGL_PATH=`find ${STAGING_LIBDIR_NATIVE} -maxdepth 1 -name 'gegl-*'` | ||
71 | } | ||
72 | |||
73 | FILES:${PN} += "${datadir}/metainfo" | ||
74 | |||
75 | RDEPENDS:${PN} += "mypaint-brushes-1.0" | ||
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..414f9c5203 --- /dev/null +++ b/meta-gnome/recipes-gimp/gimp/gimp_3.0.4.bb | |||
@@ -0,0 +1,136 @@ | |||
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 | |||
67 | PACKAGECONFIG[aa] = "-Daa=enabled,-Daa=disabled,aalib" | ||
68 | PACKAGECONFIG[alsa] = "-Dalsa=enabled,-Dalsa=disabled,alsa-lib" | ||
69 | PACKAGECONFIG[appdata-test] = "-Dappdata-test=enabled,-Dappdata-test=disabled,appstream-native" | ||
70 | PACKAGECONFIG[cairo-pdf] = "-Dcairo-pdf=enabled,-Dcairo-pdf=disabled" | ||
71 | PACKAGECONFIG[check-update] = "-Dcheck-update=yes,-Dcheck-update=no" | ||
72 | PACKAGECONFIG[ghostscript] = "-Dghostscript=enabled,-Dghostscript=disabled,ghostscript,ghostscript" | ||
73 | PACKAGECONFIG[gudev] = "-Dgudev=enabled,-Dgudev=disabled,libgudev" | ||
74 | PACKAGECONFIG[heif] = "-Dheif=enabled,-Dheif=disabled,libheif" | ||
75 | PACKAGECONFIG[javascript] = "-Djavascript=enabled,-Djavascript=disabled,,gjs" | ||
76 | PACKAGECONFIG[jpeg2000] = "-Djpeg2000=enabled,-Djpeg2000=disabled,jasper" | ||
77 | PACKAGECONFIG[jpeg-xl] = "-Djpeg-xl=enabled,-Djpeg-xl=disabled,libjxl" | ||
78 | PACKAGECONFIG[libunwind] = "-Dlibunwind=true,-Dlibunwind=false,libunwind" | ||
79 | PACKAGECONFIG[libbacktrace] = "-Dlibbacktrace=true,-Dlibbacktrace=false,libbacktrace" | ||
80 | PACKAGECONFIG[lua] = "-Dlua=true,-Dlua=false,,luajit lua-lgi" | ||
81 | PACKAGECONFIG[mng] = "-Dmng=enabled,-Dmng=disabled,libmng" | ||
82 | PACKAGECONFIG[openmp] = "-Dopenmp=enabled,-Dopenmp=disabled,gcc-runtime" | ||
83 | PACKAGECONFIG[vector-icons] = "-Dvector-icons=true,-Dvector-icons=false,librsvg shared-mime-info" | ||
84 | PACKAGECONFIG[webp] = "-Dwebp=enabled,-Dwebp=disabled,libwebp" | ||
85 | PACKAGECONFIG[xcursor] = "-Dxcursor=enabled,-Dxcursor=disabled,libxcursor" | ||
86 | PACKAGECONFIG[x11] = "-Dxpm=enabled,-Dxpm=disabled,libxpm libxext libxfixes" | ||
87 | |||
88 | PACKAGECONFIG ?= " \ | ||
89 | alsa \ | ||
90 | cairo-pdf \ | ||
91 | ghostscript \ | ||
92 | gudev \ | ||
93 | javascript \ | ||
94 | jpeg2000 \ | ||
95 | jpeg-xl \ | ||
96 | lua \ | ||
97 | mng \ | ||
98 | webp \ | ||
99 | ${@oe.utils.conditional('SITEINFO_BITS', '32', '', 'vector-icons', d)} \ | ||
100 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 xcursor', '', d)} \ | ||
101 | " | ||
102 | |||
103 | PACKAGECONFIG:remove:riscv32 = "lua" | ||
104 | PACKAGECONFIG:remove:riscv64 = "lua" | ||
105 | PACKAGECONFIG:remove:powerpc64 = "lua" | ||
106 | PACKAGECONFIG:remove:powerpc64le = "lua" | ||
107 | |||
108 | EXTRA_OEMESON += " \ | ||
109 | -Dshmem-type=posix \ | ||
110 | -Dlinux-input=enabled \ | ||
111 | --buildtype release \ | ||
112 | --cross-file=${WORKDIR}/meson-${PN}.cross \ | ||
113 | " | ||
114 | |||
115 | do_write_config:append() { | ||
116 | cat >${WORKDIR}/meson-${PN}.cross <<EOF | ||
117 | [binaries] | ||
118 | gjs = '${bindir}/gjs' | ||
119 | luajit = '${bindir}/luajit' | ||
120 | EOF | ||
121 | } | ||
122 | |||
123 | do_configure:append () { | ||
124 | sed -i -e "s|build_by_default: true|build_by_default: false|" ${S}/gimp-data/images/meson.build | ||
125 | } | ||
126 | |||
127 | do_install:prepend() { | ||
128 | sed -i -e "s|${B}||" ${B}/app/widgets/gimplanguagestore-data.h | ||
129 | sed -i -e "s|${B}||" ${B}/plug-ins/file-bmp/huffman.h | ||
130 | } | ||
131 | |||
132 | FILES:${PN} += "${datadir}/metainfo" | ||
133 | |||
134 | RDEPENDS:${PN} = "mypaint-brushes-1.0 glib-networking python3-pygobject" | ||
135 | |||
136 | CVE_STATUS[CVE-2007-3741] = "not-applicable-platform: This only applies for Mandriva Linux" | ||