summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorL. E. Segovia <amy@centricular.com>2024-05-01 13:54:26 -0300
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2024-07-29 18:05:21 +0000
commitfa286f883f6201a8bcdeb8fec6def43a2e321c22 (patch)
tree6213a440a191e4a5d0b6324fd0f55289ceeaecf4
parent67f5663ecdc883a2862938f4d4d21b9c63784f78 (diff)
librsvg: Fix missing dependency on libcroco in the pkg-config module
(cherry picked from commit ddd686b57011e2f32af6701adea4e69387c071c9) Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1535>
-rw-r--r--recipes/librsvg.recipe5
-rw-r--r--recipes/librsvg/0004-Add-missing-libcroco-dependency.patch25
2 files changed, 29 insertions, 1 deletions
diff --git a/recipes/librsvg.recipe b/recipes/librsvg.recipe
index f8fdec22..2ec8a2b3 100644
--- a/recipes/librsvg.recipe
+++ b/recipes/librsvg.recipe
@@ -23,7 +23,10 @@ class Recipe(recipe.Recipe):
'%(libdir)s/librsvg-2.a', '%(libdir)s/librsvg-2.la']
files_typelibs = ['Rsvg-2.0']
- patches = ['librsvg/0001-build-Fix-enumtypes-on-MinGW-inside-MSYS-Windows.patch']
+ patches = [
+ f'{name}/0001-build-Fix-enumtypes-on-MinGW-inside-MSYS-Windows.patch',
+ f'{name}/0004-Add-missing-libcroco-dependency.patch',
+ ]
def prepare(self):
if self.config.target_platform in [Platform.DARWIN, Platform.IOS]:
diff --git a/recipes/librsvg/0004-Add-missing-libcroco-dependency.patch b/recipes/librsvg/0004-Add-missing-libcroco-dependency.patch
new file mode 100644
index 00000000..9480709c
--- /dev/null
+++ b/recipes/librsvg/0004-Add-missing-libcroco-dependency.patch
@@ -0,0 +1,25 @@
+From bf1379e0f3fb9419fcb18e4c665f5ddba4a30418 Mon Sep 17 00:00:00 2001
+From: "L. E. Segovia" <amy@amyspark.me>
+Date: Wed, 1 May 2024 16:51:06 +0000
+Subject: [PATCH 4/4] Add missing libcroco dependency
+
+---
+ librsvg.pc.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/librsvg.pc.in b/librsvg.pc.in
+index a451de0..608807c 100644
+--- a/librsvg.pc.in
++++ b/librsvg.pc.in
+@@ -9,7 +9,7 @@ css_supported=true
+ Name: librsvg
+ Description: library that renders svg files
+ Version: @VERSION@
+-Requires: glib-2.0 gio-2.0 gdk-pixbuf-2.0 cairo
++Requires: glib-2.0 gio-2.0 gdk-pixbuf-2.0 cairo libcroco-0.6
+ Requires.private:
+ Libs: -L${libdir} -lrsvg-@RSVG_API_MAJOR_VERSION@ -lm
+ Cflags: -I${includedir}/librsvg-@RSVG_API_VERSION@
+--
+2.44.0
+