summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2016-07-23 10:31:24 -0300
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-07-23 17:00:41 +0200
commit52c86b35ab7c1f17f3e6ce92a4c03a02febf017d (patch)
tree74a7400d0e0ca4d5d235e6345305311f5e273d0f
parent7aa4c7eef6d11c9ac8dbd22e196c5830fe2546e2 (diff)
libfm: add optional support for gtk3
pcmanfm can now use gtk3+ so use that over gtk2+ if it's available. Since it's only x11-safe for the moment the comment and deps other than gtk stay the same. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/libfm/Config.in2
-rw-r--r--package/libfm/libfm.mk10
2 files changed, 10 insertions, 2 deletions
diff --git a/package/libfm/Config.in b/package/libfm/Config.in
index 603b4d51e..0463d1c5d 100644
--- a/package/libfm/Config.in
+++ b/package/libfm/Config.in
@@ -2,7 +2,7 @@ config BR2_PACKAGE_LIBFM
bool "libfm"
select BR2_PACKAGE_MENU_CACHE
select BR2_PACKAGE_LIBGLIB2
- select BR2_PACKAGE_LIBGTK2
+ select BR2_PACKAGE_LIBGTK2 if !BR2_PACKAGE_LIBGTK3_X11
select BR2_PACKAGE_CAIRO
depends on BR2_PACKAGE_XORG7
depends on BR2_USE_WCHAR # libglib2
diff --git a/package/libfm/libfm.mk b/package/libfm/libfm.mk
index a9be09450..633a844d8 100644
--- a/package/libfm/libfm.mk
+++ b/package/libfm/libfm.mk
@@ -7,7 +7,7 @@
LIBFM_VERSION = 1.2.4
LIBFM_SOURCE = libfm-$(LIBFM_VERSION).tar.xz
LIBFM_SITE = http://sourceforge.net/projects/pcmanfm/files
-LIBFM_DEPENDENCIES = menu-cache libgtk2 libglib2 cairo
+LIBFM_DEPENDENCIES = menu-cache libglib2 cairo
LIBFM_LICENSE = GPLv2+, LGPLv2.1+
LIBFM_LICENSE_FILES = COPYING src/extra/fm-xml-file.c
LIBFM_INSTALL_STAGING = YES
@@ -19,4 +19,12 @@ else
LIBFM_CONF_OPTS += --disable-exif
endif
+ifeq ($(BR2_PACKAGE_LIBGTK3_X11),y)
+LIBFM_CONF_OPTS += --with-gtk=3
+LIBFM_DEPENDENCIES += libgtk3
+else
+LIBFM_CONF_OPTS += --with-gtk=2
+LIBFM_DEPENDENCIES += libgtk2
+endif
+
$(eval $(autotools-package))