summaryrefslogtreecommitdiffstats
path: root/package/librsvg/librsvg.mk
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-12-28 16:37:36 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-12-30 07:21:58 +0100
commit99f711e9c9d6278ca7471d5ed7c21efb155da1bb (patch)
tree3de5f7d3dca4c3d68eed7d0ae45ae549eb051bb4 /package/librsvg/librsvg.mk
parentad2e427004f93d9f3d3f88991eb66898f8d25347 (diff)
downloadbuildroot-novena-99f711e9c9d6278ca7471d5ed7c21efb155da1bb.tar.gz
buildroot-novena-99f711e9c9d6278ca7471d5ed7c21efb155da1bb.zip
librsvg: relax dependency on Gtk, add gdk-pixbuf dependency
librsvg doesn't *require* Gtk, it can optionally build a Gtk theme engine, but it is not mandatory. Therefore, we make the Gtk dependency an optional dependency rather than a hard dependency. This will be useful as librsvg will become a dependency of libevas-generic-loaders, used in an EFL context in which building libgtk is not really what we want. However, gdk-pixbuf is a mandatory dependency to build librsvg, so we add this one. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/librsvg/librsvg.mk')
-rw-r--r--package/librsvg/librsvg.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/package/librsvg/librsvg.mk b/package/librsvg/librsvg.mk
index e54c06c37..745fcfa45 100644
--- a/package/librsvg/librsvg.mk
+++ b/package/librsvg/librsvg.mk
@@ -11,6 +11,12 @@ LIBRSVG_SOURCE:=librsvg-$(LIBRSVG_VERSION).tar.gz
LIBRSVG_SITE:=http://ftp.gnome.org/pub/GNOME/sources/librsvg/$(LIBRSVG_VERSION_MAJOR)/
LIBRSVG_INSTALL_STAGING = YES
LIBRSVG_CONF_OPT = --disable-tools
-LIBRSVG_DEPENDENCIES = libxml2 cairo pango libglib2 libgtk2
+LIBRSVG_DEPENDENCIES = libxml2 cairo pango libglib2 gdk-pixbuf
+
+# 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))