diff options
Diffstat (limited to 'meta/recipes-gnome/librsvg/librsvg_2.40.2.bb')
-rw-r--r-- | meta/recipes-gnome/librsvg/librsvg_2.40.2.bb | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/meta/recipes-gnome/librsvg/librsvg_2.40.2.bb b/meta/recipes-gnome/librsvg/librsvg_2.40.2.bb new file mode 100644 index 0000000000..34d8ca1bf8 --- /dev/null +++ b/meta/recipes-gnome/librsvg/librsvg_2.40.2.bb | |||
@@ -0,0 +1,55 @@ | |||
1 | SUMMARY = "Library for rendering SVG files" | ||
2 | HOMEPAGE = "http://ftp.gnome.org/pub/GNOME/sources/librsvg/" | ||
3 | BUGTRACKER = "https://bugzilla.gnome.org/" | ||
4 | |||
5 | LICENSE = "LGPLv2+" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | ||
7 | file://rsvg.h;beginline=3;endline=24;md5=20b4113c4909bbf0d67e006778302bc6" | ||
8 | |||
9 | SECTION = "x11/utils" | ||
10 | DEPENDS = "cairo gdk-pixbuf glib-2.0 libcroco libxml2 pango" | ||
11 | BBCLASSEXTEND = "native" | ||
12 | |||
13 | inherit autotools pkgconfig gnomebase gtk-doc pixbufcache | ||
14 | |||
15 | GNOME_COMPRESS_TYPE = "xz" | ||
16 | |||
17 | SRC_URI += "file://gtk-option.patch \ | ||
18 | file://vapigen.m4" | ||
19 | |||
20 | SRC_URI[archive.md5sum] = "acdecdb9f08f3bf662a68bf7dafb8b82" | ||
21 | SRC_URI[archive.sha256sum] = "48049b643294636df7de1a4b997414d699666f5dc44776945c218a257d2a291c" | ||
22 | |||
23 | EXTRA_OECONF = "--disable-introspection --disable-vala" | ||
24 | |||
25 | PACKAGECONFIG ??= "gdkpixbuf" | ||
26 | # The gdk-pixbuf loader | ||
27 | PACKAGECONFIG[gdkpixbuf] = "--enable-pixbuf-loader,--disable-pixbuf-loader,gdk-pixbuf-native" | ||
28 | # GTK+ test application (rsvg-view) | ||
29 | PACKAGECONFIG[gtk] = "--with-gtk3,--without-gtk3,gtk+3" | ||
30 | |||
31 | # The tarball doesn't ship with macros, so drop a vapigen in there so we don't | ||
32 | # need to build vala to configure. | ||
33 | do_configure_prepend() { | ||
34 | if test ! -e ${S}/m4/vapigen.m4; then | ||
35 | mkdir --parents ${S}/m4 | ||
36 | mv ${WORKDIR}/vapigen.m4 ${S}/m4/ | ||
37 | fi | ||
38 | } | ||
39 | |||
40 | do_install_append() { | ||
41 | # Loadable modules don't need .a or .la on Linux | ||
42 | rm -f ${D}${libdir}/gdk-pixbuf-2.0/*/loaders/*.a ${D}${libdir}/gdk-pixbuf-2.0/*/loaders/*.la | ||
43 | } | ||
44 | |||
45 | PACKAGES =+ "librsvg-gtk rsvg" | ||
46 | FILES_${PN} = "${libdir}/*.so.*" | ||
47 | FILES_${PN}-dbg += "${libdir}/gdk-pixbuf-2.0/*/loaders/.debug" | ||
48 | FILES_rsvg = "${bindir}/rsvg* \ | ||
49 | ${datadir}/pixmaps/svg-viewer.svg \ | ||
50 | ${datadir}/themes" | ||
51 | FILES_librsvg-gtk = "${libdir}/gdk-pixbuf-2.0/*/*/*.so" | ||
52 | |||
53 | PIXBUF_PACKAGES = "librsvg-gtk" | ||
54 | |||
55 | PIXBUFCACHE_SYSROOT_DEPS_append_class-native = " harfbuzz-native:do_populate_sysroot_setscene pango-native:do_populate_sysroot_setscene icu-native:do_populate_sysroot_setscene" | ||