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
|
2011-07-13 18:54:47 +02:00
|
|
|
GVFS_VERSION_MINOR = 2
|
2009-09-27 23:19:40 +02:00
|
|
|
GVFS_VERSION = $(GVFS_VERSION_MAJOR).$(GVFS_VERSION_MINOR)
|
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
|
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
|
|
|
|
|
2009-09-27 23:19:40 +02:00
|
|
|
GVFS_CONF_OPT = \
|
|
|
|
--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
|
|
|
|
GVFS_CONF_OPT += --enable-avahi
|
|
|
|
else
|
|
|
|
GVFS_CONF_OPT += --disable-avahi
|
|
|
|
endif
|
|
|
|
|
2009-10-18 23:56:21 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBARCHIVE),y)
|
|
|
|
GVFS_DEPENDENCIES += libarchive
|
|
|
|
GVFS_CONF_OPT += --enable-archive
|
|
|
|
else
|
|
|
|
GVFS_CONF_OPT += --disable-archive
|
|
|
|
endif
|
|
|
|
|
2009-09-27 23:19:40 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBFUSE),y)
|
|
|
|
GVFS_DEPENDENCIES += libfuse
|
|
|
|
GVFS_CONF_OPT += --enable-fuse
|
|
|
|
else
|
|
|
|
GVFS_CONF_OPT += --disable-fuse
|
|
|
|
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
|
|
|
|
GVFS_CONF_OPT += --enable-http
|
|
|
|
else
|
|
|
|
GVFS_CONF_OPT += --disable-http
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SAMBA_LIBSMBCLIENT),y)
|
|
|
|
GVFS_DEPENDENCIES += samba
|
|
|
|
GVFS_CONF_OPT += \
|
|
|
|
--enable-samba \
|
2009-10-18 23:56:22 +02:00
|
|
|
--with-samba-includes=$(STAGING_DIR)/usr/include \
|
|
|
|
--with-samba-libs=$(STAGING_DIR)/usr/lib \
|
2009-09-27 23:19:40 +02:00
|
|
|
ac_cv_lib_smbclient_smbc_option_get=yes
|
|
|
|
else
|
|
|
|
GVFS_CONF_OPT += --disable-samba
|
|
|
|
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))
|