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
|
|
|
|
2013-06-09 02:36:39 +02:00
|
|
|
GVFS_VERSION_MAJOR = 1.16
|
2014-03-17 09:06:41 +01:00
|
|
|
GVFS_VERSION = $(GVFS_VERSION_MAJOR).2
|
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
|
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
GVFS_CONF_OPTS = \
|
2009-09-27 23:19:40 +02:00
|
|
|
--disable-gconf \
|
|
|
|
--disable-cdda \
|
|
|
|
--disable-obexftp \
|
|
|
|
--disable-gphoto2 \
|
|
|
|
--disable-keyring \
|
|
|
|
--disable-bash-completion \
|
2011-07-25 23:06:29 +02:00
|
|
|
--disable-hal
|
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
|
|
|
|
|
2009-10-18 23:56:21 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBARCHIVE),y)
|
|
|
|
GVFS_DEPENDENCIES += libarchive
|
2014-09-27 21:32:44 +02:00
|
|
|
GVFS_CONF_OPTS += --enable-archive
|
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
|
|
|
|
|
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
|
|
|
|
|
2013-06-21 16:41:31 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
|
|
|
|
GVFS_DEPENDENCIES += libgcrypt
|
|
|
|
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
|
|
|
|
|
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))
|