2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2009-09-27 23:19:40 +02:00
|
|
|
#
|
|
|
|
# gvfs
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2016-03-22 12:11:47 +01:00
|
|
|
GVFS_VERSION_MAJOR = 1.28
|
|
|
|
GVFS_VERSION = $(GVFS_VERSION_MAJOR).0
|
2013-06-09 02:36:39 +02:00
|
|
|
GVFS_SOURCE = gvfs-$(GVFS_VERSION).tar.xz
|
2009-09-27 23:19:40 +02:00
|
|
|
GVFS_SITE = http://ftp.gnome.org/pub/GNOME/sources/gvfs/$(GVFS_VERSION_MAJOR)
|
2011-07-13 18:54:49 +02:00
|
|
|
GVFS_INSTALL_STAGING = YES
|
2012-10-22 17:47:52 +02:00
|
|
|
GVFS_DEPENDENCIES = host-pkgconf host-libglib2 libglib2 dbus shared-mime-info
|
2014-06-24 20:55:07 +02:00
|
|
|
GVFS_LICENSE = LGPLv2+
|
|
|
|
GVFS_LICENSE_FILES = COPYING
|
2009-09-27 23:19:40 +02:00
|
|
|
|
2013-06-21 16:41:31 +02:00
|
|
|
# Export ac_cv_path_LIBGCRYPT_CONFIG unconditionally to prevent
|
|
|
|
# build system from searching the host paths.
|
|
|
|
GVFS_CONF_ENV = ac_cv_path_LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-config
|
|
|
|
|
2015-10-19 15:33:58 +02:00
|
|
|
# Most of these are missing library support
|
2014-09-27 21:32:44 +02:00
|
|
|
GVFS_CONF_OPTS = \
|
2015-10-19 15:33:58 +02:00
|
|
|
--disable-afc \
|
|
|
|
--disable-bash-completion \
|
|
|
|
--disable-cdda \
|
|
|
|
--disable-gconf \
|
|
|
|
--disable-gcr \
|
|
|
|
--disable-gdu \
|
|
|
|
--disable-goa \
|
|
|
|
--disable-google \
|
|
|
|
--disable-gphoto2 \
|
|
|
|
--disable-hal \
|
|
|
|
--disable-keyring \
|
|
|
|
--disable-libmtp \
|
|
|
|
--disable-udisks2
|
2009-09-27 23:19:40 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_AVAHI),y)
|
|
|
|
GVFS_DEPENDENCIES += avahi
|
2014-09-27 21:32:44 +02:00
|
|
|
GVFS_CONF_OPTS += --enable-avahi
|
2009-09-27 23:19:40 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
GVFS_CONF_OPTS += --disable-avahi
|
2009-09-27 23:19:40 +02:00
|
|
|
endif
|
|
|
|
|
2015-10-19 15:33:58 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
|
|
|
GVFS_DEPENDENCIES += udev
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBGUDEV),y)
|
|
|
|
GVFS_DEPENDENCIES += libgudev
|
|
|
|
endif
|
|
|
|
|
2009-10-18 23:56:21 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBARCHIVE),y)
|
|
|
|
GVFS_DEPENDENCIES += libarchive
|
2015-10-19 15:33:58 +02:00
|
|
|
GVFS_CONF_OPTS += \
|
|
|
|
--enable-archive \
|
|
|
|
--with-archive-includes=$(STAGING_DIR)/usr \
|
|
|
|
--with-archive-libs=$(STAGING_DIR)/usr
|
2009-10-18 23:56:21 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
GVFS_CONF_OPTS += --disable-archive
|
2009-10-18 23:56:21 +02:00
|
|
|
endif
|
|
|
|
|
2015-10-19 15:33:58 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBBLURAY),y)
|
|
|
|
GVFS_DEPENDENCIES += libbluray
|
|
|
|
GVFS_CONF_OPTS += --enable-bluray
|
|
|
|
else
|
|
|
|
GVFS_CONF_OPTS += --disable-bluray
|
|
|
|
endif
|
|
|
|
|
2009-09-27 23:19:40 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBFUSE),y)
|
|
|
|
GVFS_DEPENDENCIES += libfuse
|
2014-09-27 21:32:44 +02:00
|
|
|
GVFS_CONF_OPTS += --enable-fuse
|
2009-09-27 23:19:40 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
GVFS_CONF_OPTS += --disable-fuse
|
2009-09-27 23:19:40 +02:00
|
|
|
endif
|
|
|
|
|
2015-10-19 15:33:58 +02:00
|
|
|
# AFP support is anon-only without libgcrypt which isn't very useful
|
2013-06-21 16:41:31 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
|
2015-10-19 15:33:58 +02:00
|
|
|
GVFS_CONF_OPTS += --enable-afp
|
2013-06-21 16:41:31 +02:00
|
|
|
GVFS_DEPENDENCIES += libgcrypt
|
2015-10-19 15:33:58 +02:00
|
|
|
else
|
|
|
|
GVFS_CONF_OPTS += --disable-afp
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBGTK3),y)
|
|
|
|
GVFS_CONF_OPTS += --enable-gtk
|
|
|
|
GVFS_DEPENDENCIES += libgtk3
|
|
|
|
else
|
|
|
|
GVFS_CONF_OPTS += --disable-gtk
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBNFS),y)
|
|
|
|
GVFS_CONF_OPTS += --enable-nfs
|
|
|
|
GVFS_DEPENDENCIES += libnfs
|
|
|
|
else
|
|
|
|
GVFS_CONF_OPTS += --disable-nfs
|
2013-06-21 16:41:31 +02:00
|
|
|
endif
|
|
|
|
|
2009-09-27 23:19:40 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSOUP),y)
|
|
|
|
GVFS_DEPENDENCIES += libsoup
|
2014-09-27 21:32:44 +02:00
|
|
|
GVFS_CONF_OPTS += --enable-http
|
2009-09-27 23:19:40 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
GVFS_CONF_OPTS += --disable-http
|
2009-09-27 23:19:40 +02:00
|
|
|
endif
|
|
|
|
|
2015-03-06 13:50:32 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_SAMBA4),y)
|
|
|
|
GVFS_DEPENDENCIES += samba4
|
2014-09-27 21:32:44 +02:00
|
|
|
GVFS_CONF_OPTS += \
|
2009-09-27 23:19:40 +02:00
|
|
|
--enable-samba \
|
2015-03-06 13:50:32 +01:00
|
|
|
--with-samba-includes=$(STAGING_DIR)/usr/include/samba-4.0 \
|
2009-10-18 23:56:22 +02:00
|
|
|
--with-samba-libs=$(STAGING_DIR)/usr/lib \
|
2009-09-27 23:19:40 +02:00
|
|
|
ac_cv_lib_smbclient_smbc_option_get=yes
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
GVFS_CONF_OPTS += --disable-samba
|
2009-09-27 23:19:40 +02:00
|
|
|
endif
|
|
|
|
|
2015-10-19 15:33:58 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
|
|
|
GVFS_DEPENDENCIES += systemd
|
|
|
|
else
|
|
|
|
GVFS_CONF_OPTS += --disable-libsystemd-login
|
|
|
|
endif
|
|
|
|
|
2010-09-01 23:59:35 +02:00
|
|
|
define GVFS_REMOVE_USELESS_BINARY
|
2009-09-27 23:19:40 +02:00
|
|
|
rm $(TARGET_DIR)/usr/bin/gvfs-less
|
2010-09-01 23:59:35 +02:00
|
|
|
endef
|
|
|
|
|
2011-07-13 18:54:49 +02:00
|
|
|
define GVFS_REMOVE_TARGET_SCHEMAS
|
|
|
|
rm $(TARGET_DIR)/usr/share/glib-2.0/schemas/*.xml
|
|
|
|
endef
|
|
|
|
|
|
|
|
define GVFS_COMPILE_SCHEMAS
|
|
|
|
$(HOST_DIR)/usr/bin/glib-compile-schemas --targetdir=$(TARGET_DIR)/usr/share/glib-2.0/schemas $(STAGING_DIR)/usr/share/glib-2.0/schemas
|
|
|
|
endef
|
|
|
|
|
|
|
|
GVFS_POST_INSTALL_TARGET_HOOKS += \
|
|
|
|
GVFS_REMOVE_USELESS_BINARY \
|
|
|
|
GVFS_REMOVE_TARGET_SCHEMAS \
|
|
|
|
GVFS_COMPILE_SCHEMAS
|
2010-09-01 23:59:35 +02:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|