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
|
|
|
|
2018-10-13 15:28:43 +02:00
|
|
|
GVFS_VERSION_MAJOR = 1.31
|
|
|
|
GVFS_VERSION = $(GVFS_VERSION_MAJOR).4
|
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
|
2017-03-30 15:43:37 +02:00
|
|
|
GVFS_LICENSE = LGPL-2.0+
|
2014-06-24 20:55:07 +02:00
|
|
|
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-gdu \
|
|
|
|
--disable-goa \
|
|
|
|
--disable-google \
|
|
|
|
--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
|
|
|
|
|
2018-10-19 22:13:14 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_GCR),y)
|
|
|
|
GVFS_DEPENDENCIES += gcr
|
|
|
|
GVFS_CONF_OPTS += --enable-gcr
|
|
|
|
else
|
|
|
|
GVFS_CONF_OPTS += --disable-gcr
|
|
|
|
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
|
2018-10-19 22:13:11 +02:00
|
|
|
GVFS_CONF_OPTS += --enable-gudev
|
|
|
|
else
|
|
|
|
GVFS_CONF_OPTS += --disable-gudev
|
2015-10-19 15:33:58 +02:00
|
|
|
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
|
|
|
|
|
2018-10-19 22:13:12 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBCAP)$(BR2_PACKAGE_POLKIT),yy)
|
|
|
|
GVFS_DEPENDENCIES += libcap polkit
|
|
|
|
GVFS_CONF_OPTS += --enable-admin
|
|
|
|
else
|
|
|
|
GVFS_CONF_OPTS += --disable-admin
|
|
|
|
endif
|
|
|
|
|
2018-10-19 22:13:13 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBCDIO_PARANOIA)$(BR2_PACKAGE_LIBGUDEV),yy)
|
|
|
|
GVFS_DEPENDENCIES += libcdio-paranoia libgudev
|
|
|
|
GVFS_CONF_OPTS += --enable-cdda
|
|
|
|
else
|
|
|
|
GVFS_CONF_OPTS += --disable-cdda
|
|
|
|
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
|
|
|
|
|
2018-10-19 22:13:15 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBGPHOTO2)$(BR2_PACKAGE_LIBGUDEV),yy)
|
|
|
|
GVFS_DEPENDENCIES += libgphoto2 libgudev
|
|
|
|
GVFS_CONF_OPTS += --enable-gphoto2
|
|
|
|
else
|
|
|
|
GVFS_CONF_OPTS += --disable-gphoto2
|
|
|
|
endif
|
|
|
|
|
2015-10-19 15:33:58 +02:00
|
|
|
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
|
|
|
|
|
2018-10-13 17:06:06 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSOUP)$(BR2_PACKAGE_LIBXML2),yy)
|
|
|
|
GVFS_DEPENDENCIES += libsoup libxml2
|
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
|
|
|
|
|
2018-10-19 22:13:10 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBUSB),y)
|
|
|
|
GVFS_DEPENDENCIES += libusb
|
|
|
|
GVFS_CONF_OPTS += --enable-libusb
|
|
|
|
else
|
|
|
|
GVFS_CONF_OPTS += --disable-libusb
|
|
|
|
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
|
2017-07-05 13:14:19 +02:00
|
|
|
$(HOST_DIR)/bin/glib-compile-schemas --targetdir=$(TARGET_DIR)/usr/share/glib-2.0/schemas $(STAGING_DIR)/usr/share/glib-2.0/schemas
|
2011-07-13 18:54:49 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
GVFS_POST_INSTALL_TARGET_HOOKS += \
|
2017-04-21 17:24:48 +02:00
|
|
|
GVFS_REMOVE_USELESS_BINARY \
|
|
|
|
GVFS_REMOVE_TARGET_SCHEMAS \
|
2011-07-13 18:54:49 +02:00
|
|
|
GVFS_COMPILE_SCHEMAS
|
2010-09-01 23:59:35 +02:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|