config BR2_PACKAGE_LIBRSVG
bool "librsvg"
- select BR2_PACKAGE_LIBXML2
select BR2_PACKAGE_CAIRO
select BR2_PACKAGE_CAIRO_PNG
- select BR2_PACKAGE_PANGO
- select BR2_PACKAGE_LIBGLIB2
select BR2_PACKAGE_GDK_PIXBUF
+ select BR2_PACKAGE_LIBCROCO
+ select BR2_PACKAGE_LIBGLIB2
+ select BR2_PACKAGE_LIBXML2
+ select BR2_PACKAGE_PANGO
depends on BR2_USE_WCHAR # glib2
depends on BR2_TOOLCHAIN_HAS_THREADS # glib2
depends on BR2_USE_MMU # glib2
-# From http://ftp.gnome.org/pub/gnome/sources/librsvg/2.26/librsvg-2.26.3.sha256sum
-sha256 3761e3d446a9c2f4ebe52431289e15976f1d447f64ed33bb7f35cb1c430eac49 librsvg-2.26.3.tar.gz
+# From http://ftp.acc.umu.se/pub/gnome/sources/librsvg/2.40/librsvg-2.40.12.sha256sum
+sha256 ffe40c4378bf3899f4d679a475726bab03a127a5bdccddec86404cc329ffb550 librsvg-2.40.12.tar.xz
#
################################################################################
-LIBRSVG_VERSION_MAJOR = 2.26
-LIBRSVG_VERSION = $(LIBRSVG_VERSION_MAJOR).3
-LIBRSVG_SITE = http://ftp.gnome.org/pub/GNOME/sources/librsvg/$(LIBRSVG_VERSION_MAJOR)
+LIBRSVG_VERSION_MAJOR = 2.40
+LIBRSVG_VERSION = $(LIBRSVG_VERSION_MAJOR).12
+LIBRSVG_SITE = http://ftp.gnome.org/pub/gnome/sources/librsvg/$(LIBRSVG_VERSION_MAJOR)
+LIBRSVG_SOURCE = librsvg-$(LIBRSVG_VERSION).tar.xz
LIBRSVG_INSTALL_STAGING = YES
-LIBRSVG_CONF_OPTS = --disable-tools
-LIBRSVG_DEPENDENCIES = libxml2 cairo pango libglib2 gdk-pixbuf
-HOST_LIBRSVG_DEPENDENCIES = host-libxml2 host-cairo host-pango host-libglib2 host-gdk-pixbuf
+LIBRSVG_CONF_OPTS = --disable-tools --enable-introspection=no
+HOST_LIBRSVG_CONF_OPTS = --enable-introspection=no
+LIBRSVG_DEPENDENCIES = cairo gdk-pixbuf libcroco libglib2 libxml2 pango \
+ $(if $(BR2_PACKAGE_LIBGTK3),libgtk3)
+HOST_LIBRSVG_DEPENDENCIES = host-cairo host-gdk-pixbuf host-libcroco host-libglib2 host-libxml2 host-pango
LIBRSVG_LICENSE = LGPLv2+
LIBRSVG_LICENSE_FILES = COPYING.LIB
-# If we have Gtk2, let's build it first to benefit from librsvg Gtk
-# support.
-ifeq ($(BR2_PACKAGE_LIBGTK2),y)
-LIBRSVG_DEPENDENCIES += libgtk2
-endif
-
$(eval $(autotools-package))
$(eval $(host-autotools-package))