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
|
|
|
|
2020-04-12 14:57:47 +02:00
|
|
|
GVFS_VERSION_MAJOR = 1.44
|
|
|
|
GVFS_VERSION = $(GVFS_VERSION_MAJOR).1
|
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
|
2020-04-12 14:57:47 +02:00
|
|
|
GVFS_DEPENDENCIES = \
|
|
|
|
host-pkgconf \
|
|
|
|
host-libglib2 \
|
|
|
|
dbus \
|
|
|
|
gsettings-desktop-schemas \
|
|
|
|
libglib2 \
|
|
|
|
shared-mime-info \
|
2019-07-03 22:33:19 +02:00
|
|
|
$(TARGET_NLS_DEPENDENCIES)
|
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
|
|
|
|
2020-04-12 14:57:47 +02:00
|
|
|
GVFS_LDFLAGS = $(TARGET_LDFLAGS) $(TARGET_NLS_LIBS)
|
2013-06-21 16:41:31 +02:00
|
|
|
|
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 = \
|
2020-04-12 14:57:47 +02:00
|
|
|
-Dafc=false \
|
|
|
|
-Dgoa=false \
|
|
|
|
-Dgoogle=false \
|
|
|
|
-Dmtp=false \
|
|
|
|
-Dsftp=false \
|
|
|
|
-Dudisks2=false
|
2009-09-27 23:19:40 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_AVAHI),y)
|
|
|
|
GVFS_DEPENDENCIES += avahi
|
2020-04-12 14:57:47 +02:00
|
|
|
GVFS_CONF_OPTS += -Ddnssd=true
|
2009-09-27 23:19:40 +02:00
|
|
|
else
|
2020-04-12 14:57:47 +02:00
|
|
|
GVFS_CONF_OPTS += -Ddnssd=false
|
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
|
2020-04-12 14:57:47 +02:00
|
|
|
GVFS_CONF_OPTS += -Dgcr=true
|
2018-10-19 22:13:14 +02:00
|
|
|
else
|
2020-04-12 14:57:47 +02:00
|
|
|
GVFS_CONF_OPTS += -Dgcr=false
|
2018-10-19 22:13:14 +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
|
2020-04-12 14:57:47 +02:00
|
|
|
GVFS_CONF_OPTS += -Dgudev=true
|
2018-10-19 22:13:11 +02:00
|
|
|
else
|
2020-04-12 14:57:47 +02:00
|
|
|
GVFS_CONF_OPTS += -Dgudev=false
|
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
|
2020-04-12 14:57:47 +02:00
|
|
|
GVFS_CONF_OPTS += -Darchive=true
|
2009-10-18 23:56:21 +02:00
|
|
|
else
|
2020-04-12 14:57:47 +02:00
|
|
|
GVFS_CONF_OPTS += -Darchive=false
|
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
|
2020-04-12 14:57:47 +02:00
|
|
|
GVFS_CONF_OPTS += -Dbluray=true
|
2015-10-19 15:33:58 +02:00
|
|
|
else
|
2020-04-12 14:57:47 +02:00
|
|
|
GVFS_CONF_OPTS += -Dbluray=false
|
2015-10-19 15:33:58 +02:00
|
|
|
endif
|
|
|
|
|
2018-10-19 22:13:12 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBCAP)$(BR2_PACKAGE_POLKIT),yy)
|
|
|
|
GVFS_DEPENDENCIES += libcap polkit
|
2020-04-12 14:57:47 +02:00
|
|
|
GVFS_CONF_OPTS += -Dadmin=true
|
2018-10-19 22:13:12 +02:00
|
|
|
else
|
2020-04-12 14:57:47 +02:00
|
|
|
GVFS_CONF_OPTS += -Dadmin=false
|
2018-10-19 22:13:12 +02:00
|
|
|
endif
|
|
|
|
|
2018-10-19 22:13:13 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBCDIO_PARANOIA)$(BR2_PACKAGE_LIBGUDEV),yy)
|
|
|
|
GVFS_DEPENDENCIES += libcdio-paranoia libgudev
|
2020-04-12 14:57:47 +02:00
|
|
|
GVFS_CONF_OPTS += -Dcdda=true
|
2009-09-27 23:19:40 +02:00
|
|
|
else
|
2020-04-12 14:57:47 +02:00
|
|
|
GVFS_CONF_OPTS += -Dcdda=false
|
2009-09-27 23:19:40 +02:00
|
|
|
endif
|
|
|
|
|
2020-07-14 19:38:10 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBFUSE3),y)
|
|
|
|
GVFS_DEPENDENCIES += libfuse3
|
|
|
|
GVFS_CONF_OPTS += -Dfuse=true
|
|
|
|
else
|
|
|
|
GVFS_CONF_OPTS += -Dfuse=false
|
|
|
|
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)
|
2020-04-12 14:57:47 +02:00
|
|
|
GVFS_CONF_OPTS += \
|
|
|
|
-Dafp=true \
|
|
|
|
-Dgcrypt=true
|
2013-06-21 16:41:31 +02:00
|
|
|
GVFS_DEPENDENCIES += libgcrypt
|
2015-10-19 15:33:58 +02:00
|
|
|
else
|
2020-04-12 14:57:47 +02:00
|
|
|
GVFS_CONF_OPTS += \
|
|
|
|
-Dafp=false \
|
|
|
|
-Dgcrypt=false
|
2015-10-19 15:33:58 +02:00
|
|
|
endif
|
|
|
|
|
2018-10-19 22:13:15 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBGPHOTO2)$(BR2_PACKAGE_LIBGUDEV),yy)
|
|
|
|
GVFS_DEPENDENCIES += libgphoto2 libgudev
|
2020-04-12 14:57:47 +02:00
|
|
|
GVFS_CONF_OPTS += -Dgphoto2=true
|
2015-10-19 15:33:58 +02:00
|
|
|
else
|
2020-04-12 14:57:47 +02:00
|
|
|
GVFS_CONF_OPTS += -Dgphoto2=false
|
2015-10-19 15:33:58 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBNFS),y)
|
2020-04-12 14:57:47 +02:00
|
|
|
GVFS_CONF_OPTS += -Dnfs=true
|
2015-10-19 15:33:58 +02:00
|
|
|
GVFS_DEPENDENCIES += libnfs
|
|
|
|
else
|
2020-04-12 14:57:47 +02:00
|
|
|
GVFS_CONF_OPTS += -Dnfs=false
|
2013-06-21 16:41:31 +02:00
|
|
|
endif
|
|
|
|
|
2018-10-21 18:45:51 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSECRET),y)
|
|
|
|
GVFS_DEPENDENCIES += libsecret
|
2020-04-12 14:57:47 +02:00
|
|
|
GVFS_CONF_OPTS += -Dkeyring=true
|
2018-10-21 18:45:51 +02:00
|
|
|
else
|
2020-04-12 14:57:47 +02:00
|
|
|
GVFS_CONF_OPTS += -Dkeyring=false
|
2018-10-21 18:45:51 +02:00
|
|
|
endif
|
|
|
|
|
2018-10-13 17:06:06 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSOUP)$(BR2_PACKAGE_LIBXML2),yy)
|
|
|
|
GVFS_DEPENDENCIES += libsoup libxml2
|
2020-04-12 14:57:47 +02:00
|
|
|
GVFS_CONF_OPTS += -Dhttp=true
|
2009-09-27 23:19:40 +02:00
|
|
|
else
|
2020-04-12 14:57:47 +02:00
|
|
|
GVFS_CONF_OPTS += -Dhttp=false
|
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
|
2020-04-12 14:57:47 +02:00
|
|
|
GVFS_CONF_OPTS += -Dlibusb=true
|
2018-10-19 22:13:10 +02:00
|
|
|
else
|
2020-04-12 14:57:47 +02:00
|
|
|
GVFS_CONF_OPTS += -Dlibusb=false
|
2018-10-19 22:13:10 +02:00
|
|
|
endif
|
|
|
|
|
2015-03-06 13:50:32 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_SAMBA4),y)
|
|
|
|
GVFS_DEPENDENCIES += samba4
|
2020-04-12 14:57:47 +02:00
|
|
|
GVFS_CONF_OPTS += -Dsmb=true
|
2009-09-27 23:19:40 +02:00
|
|
|
else
|
2020-04-12 14:57:47 +02:00
|
|
|
GVFS_CONF_OPTS += -Dsmb=false
|
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
|
2020-04-12 14:57:47 +02:00
|
|
|
GVFS_CONF_OPTS += -Dlogind=true
|
2015-10-19 15:33:58 +02:00
|
|
|
else
|
2020-04-12 14:57:47 +02:00
|
|
|
GVFS_CONF_OPTS += \
|
|
|
|
-Dlogind=false \
|
|
|
|
-Dsystemduserunitdir=no \
|
|
|
|
-Dtmpfilesdir=no
|
2015-10-19 15:33:58 +02:00
|
|
|
endif
|
|
|
|
|
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_TARGET_SCHEMAS \
|
2011-07-13 18:54:49 +02:00
|
|
|
GVFS_COMPILE_SCHEMAS
|
2010-09-01 23:59:35 +02:00
|
|
|
|
2020-04-12 14:57:47 +02:00
|
|
|
$(eval $(meson-package))
|