summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-gnome/recipes-gimp/gegl/gegl/0001-meson.build-Give-note-if-sdl2-was-found.patch32
-rw-r--r--meta-gnome/recipes-gimp/gegl/gegl_0.4.20.bb61
-rw-r--r--meta-oe/recipes-graphics/gegl/gegl/pkgconfig.patch21
-rw-r--r--meta-oe/recipes-graphics/gegl/gegl_0.3.18.bb34
4 files changed, 93 insertions, 55 deletions
diff --git a/meta-gnome/recipes-gimp/gegl/gegl/0001-meson.build-Give-note-if-sdl2-was-found.patch b/meta-gnome/recipes-gimp/gegl/gegl/0001-meson.build-Give-note-if-sdl2-was-found.patch
new file mode 100644
index 0000000000..6a49f1d7ce
--- /dev/null
+++ b/meta-gnome/recipes-gimp/gegl/gegl/0001-meson.build-Give-note-if-sdl2-was-found.patch
@@ -0,0 +1,32 @@
1From 6bed199a73a7af39344cf8e799b665011553600c Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
3Date: Sat, 8 Feb 2020 14:29:52 +0100
4Subject: [PATCH] meson.build: Give note if sdl2 was found
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Configure output confused me a bit
10
11Upstream-Status: Pending
12
13Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
14---
15 meson.build | 1 +
16 1 file changed, 1 insertion(+)
17
18diff --git a/meson.build b/meson.build
19index 9d5b484..296b5f3 100644
20--- a/meson.build
21+++ b/meson.build
22@@ -374,6 +374,7 @@ message('\n'.join(['',
23 ' OpenEXR: @0@'.format(openexr.found()),
24 ' rsvg: @0@'.format(librsvg.found()),
25 ' SDL: @0@'.format(sdl1.found()),
26+' SDL2: @0@'.format(sdl2.found()),
27 ' libraw: @0@'.format(libraw.found()),
28 ' Jasper: @0@'.format(jasper.found()),
29 ' av libs: @0@'.format(avlibs_found),
30--
312.21.0
32
diff --git a/meta-gnome/recipes-gimp/gegl/gegl_0.4.20.bb b/meta-gnome/recipes-gimp/gegl/gegl_0.4.20.bb
new file mode 100644
index 0000000000..5e7a1bb84c
--- /dev/null
+++ b/meta-gnome/recipes-gimp/gegl/gegl_0.4.20.bb
@@ -0,0 +1,61 @@
1SUMMARY = "GEGL (Generic Graphics Library) is a graph based image processing framework"
2LICENSE = "GPLv3"
3LIC_FILES_CHKSUM = "file://COPYING;md5=f1a8bfcbc85304df454b65d378b299c7"
4
5DEPENDS = " \
6 intltool-native \
7 babl \
8 glib-2.0 \
9 pango \
10 cairo \
11 expat \
12 zlib \
13 \
14 json-glib \
15"
16
17GNOMEBASEBUILDCLASS = "meson"
18
19inherit features_check gnomebase vala gobject-introspection
20
21REQUIRED_DISTRO_FEATURES = "x11"
22
23SHPV = "${@gnome_verdir("${PV}")}"
24
25SRC_URI = " \
26 https://download.gimp.org/pub/${BPN}/${SHPV}/${BP}.tar.xz \
27 file://0001-meson.build-Give-note-if-sdl2-was-found.patch \
28"
29SRC_URI[md5sum] = "37433eb00f8a4b0d1ae9e975aaedfa26"
30SRC_URI[sha256sum] = "23bd8bb42b20de7c2a8c314eeb5301dc20141feda20a4b1ed455020b69b73dff"
31
32PACKAGECONFIG ??= "gexiv2 jpeg libpng librsvg sdl2"
33PACKAGECONFIG_class-native = "libpng librsvg"
34
35PACKAGECONFIG[jasper] = "-Djasper=enabled,-Djasper=disabled,jasper"
36PACKAGECONFIG[gexiv2] = "-Dgexiv2=enabled,-Dgexiv2=disabled,gexiv2"
37PACKAGECONFIG[graphviz] = "-Dgraphviz=enabled,-Dgraphviz=disabled,graphviz"
38PACKAGECONFIG[jpeg] = "-Dlibjpeg=enabled,-Dlibjpeg=disabled,jpeg"
39PACKAGECONFIG[lcms] = "-Dlcms=enabled,-Dlcms=disabled,lcms"
40PACKAGECONFIG[libav] = "-Dlibav=enabled,-Dlibav=disabled,libav"
41PACKAGECONFIG[libpng] = "-Dlibpng=enabled,-Dlibpng=disabled,libpng"
42PACKAGECONFIG[librsvg] = "-Dlibrsvg=enabled,-Dlibrsvg=disabled,librsvg"
43PACKAGECONFIG[sdl] = "-Dsdl1=enabled,-Dsdl1=disabled,virtual/libsdl"
44PACKAGECONFIG[sdl2] = "-Dsdl2=enabled,-Dsdl2=disabled,virtual/libsdl2"
45PACKAGECONFIG[tiff] = "-Dlibtiff=enabled,-Dlibtiff=disabled,tiff"
46PACKAGECONFIG[webp] = "-Dwebp=enabled,-Dwebp=disabled,webp"
47
48# There are a couple of non-symlink .so files installed into libdir, which need to go into main package
49FILES_${PN} += " \
50 ${libdir}/*.so \
51 ${libdir}/gegl-${SHPV}/*.json \
52 ${libdir}/gegl-${SHPV}/*.so \
53"
54FILES_SOLIBSDEV = "${libdir}/libgegl-${SHPV}${SOLIBSDEV}"
55
56# Fails to build with thumb-1 (qemuarm)
57# gegl-0.2.0/operations/common/matting-global.c: In function 'matting_process':
58# gegl-0.2.0/operations/common/matting-global.c:463:1: internal compiler error: in patch_jump_insn, at cfgrtl.c:1275
59ARM_INSTRUCTION_SET = "arm"
60
61BBCLASSEXTEND = "native"
diff --git a/meta-oe/recipes-graphics/gegl/gegl/pkgconfig.patch b/meta-oe/recipes-graphics/gegl/gegl/pkgconfig.patch
deleted file mode 100644
index d145b625f6..0000000000
--- a/meta-oe/recipes-graphics/gegl/gegl/pkgconfig.patch
+++ /dev/null
@@ -1,21 +0,0 @@
1Index: gegl-0.2.0/configure.ac
2===================================================================
3--- gegl-0.2.0.orig/configure.ac 2012-04-02 21:56:49.000000000 +0000
4+++ gegl-0.2.0/configure.ac 2014-07-17 21:34:15.312546602 +0000
5@@ -765,15 +765,7 @@
6
7 have_sdl="no"
8 if test "x$with_sdl" != "xno"; then
9- AC_PATH_PROG(SDL_CONFIG, sdl-config, no)
10- if test "$SDL_CONFIG" = "no"; then
11- have_sdl="no (SDL library not found)"
12- AC_MSG_RESULT([*** Check for SDL library failed.])
13- else
14- have_sdl="yes"
15- SDL_CFLAGS=`$SDL_CONFIG --cflags`
16- SDL_LIBS=`$SDL_CONFIG --libs`
17- fi
18+ PKG_CHECK_MODULES([SDL], [sdl], [have_sdl="yes"], [have_sdl="no (SDL library not found)"])
19 fi
20
21 AM_CONDITIONAL(HAVE_SDL, test "$have_sdl" = "yes")
diff --git a/meta-oe/recipes-graphics/gegl/gegl_0.3.18.bb b/meta-oe/recipes-graphics/gegl/gegl_0.3.18.bb
deleted file mode 100644
index 0db0f793d5..0000000000
--- a/meta-oe/recipes-graphics/gegl/gegl_0.3.18.bb
+++ /dev/null
@@ -1,34 +0,0 @@
1SUMMARY = "GEGL (Generic Graphics Library) is a graph based image processing framework"
2LICENSE = "LGPL-3.0"
3LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
4DEPENDS = "babl librsvg glib-2.0 gtk+ pango cairo expat zlib libpng jpeg virtual/libsdl json-glib intltool-native"
5
6EXTRA_OECONF = "--disable-docs"
7
8inherit features_check gnomebase vala gobject-introspection
9
10REQUIRED_DISTRO_FEATURES = "x11"
11
12PACKAGECONFIG ??= ""
13PACKAGECONFIG[jasper] = "--with-jasper,--without-jasper,jasper"
14PACKAGECONFIG[avformat] = "--with-libavformat,--without-libavformat,libav"
15PACKAGECONFIG[lcms] = "--with-lcms,--without-lcms,lcms"
16PACKAGECONFIG[tiff] = "--with-libtiff,--without-libtiff,tiff"
17PACKAGECONFIG[webp] = "--with-webp,--without-webp,webp"
18
19SRC_URI = "http://ftp.gimp.org/pub/${BPN}/0.3/${BP}.tar.bz2 \
20 file://pkgconfig.patch "
21SRC_URI[md5sum] = "6e5c6f229261478dc436a38c84405b2a"
22SRC_URI[sha256sum] = "d7858ef26ede136d14e3de188a9e9c0de7707061a9fb96d7d615fab4958491fb"
23
24LDFLAGS += "-lm"
25
26# There are a couple of non-symlink .so files installed into libdir, which need to go into main package
27FILES_${PN}_append = " ${libdir}/gegl-0.3/*.so ${libdir}/gegl-0.3/*.json ${libdir}/libgegl-npd-0.3.so ${libdir}/libgegl-sc-0.3.so"
28FILES_${PN}-dev_append = " ${libdir}/gegl-0.3/*.la ${libdir}/libgegl-0.3.so"
29FILES_${PN}-dev_remove = "${libdir}/lib*.so"
30
31# Fails to build with thumb-1 (qemuarm)
32# gegl-0.2.0/operations/common/matting-global.c: In function 'matting_process':
33# gegl-0.2.0/operations/common/matting-global.c:463:1: internal compiler error: in patch_jump_insn, at cfgrtl.c:1275
34ARM_INSTRUCTION_SET = "arm"