1################################################################################ 2# 3# gvfs 4# 5################################################################################ 6 7GVFS_VERSION_MAJOR = 1.44 8GVFS_VERSION = $(GVFS_VERSION_MAJOR).1 9GVFS_SOURCE = gvfs-$(GVFS_VERSION).tar.xz 10GVFS_SITE = http://ftp.gnome.org/pub/GNOME/sources/gvfs/$(GVFS_VERSION_MAJOR) 11GVFS_INSTALL_STAGING = YES 12GVFS_DEPENDENCIES = \ 13 host-pkgconf \ 14 host-libglib2 \ 15 dbus \ 16 gsettings-desktop-schemas \ 17 libglib2 \ 18 shared-mime-info \ 19 $(TARGET_NLS_DEPENDENCIES) 20GVFS_LICENSE = LGPL-2.0+ 21GVFS_LICENSE_FILES = COPYING 22GVFS_CPE_ID_VENDOR = gnome 23 24GVFS_LDFLAGS = $(TARGET_LDFLAGS) $(TARGET_NLS_LIBS) 25 26# Most of these are missing library support 27GVFS_CONF_OPTS = \ 28 -Dafc=false \ 29 -Dgoa=false \ 30 -Dgoogle=false \ 31 -Dmtp=false \ 32 -Dsftp=false \ 33 -Dudisks2=false 34 35ifeq ($(BR2_PACKAGE_AVAHI),y) 36GVFS_DEPENDENCIES += avahi 37GVFS_CONF_OPTS += -Ddnssd=true 38else 39GVFS_CONF_OPTS += -Ddnssd=false 40endif 41 42ifeq ($(BR2_PACKAGE_GCR),y) 43GVFS_DEPENDENCIES += gcr 44GVFS_CONF_OPTS += -Dgcr=true 45else 46GVFS_CONF_OPTS += -Dgcr=false 47endif 48 49ifeq ($(BR2_PACKAGE_HAS_UDEV),y) 50GVFS_DEPENDENCIES += udev 51endif 52 53ifeq ($(BR2_PACKAGE_LIBGUDEV),y) 54GVFS_DEPENDENCIES += libgudev 55GVFS_CONF_OPTS += -Dgudev=true 56else 57GVFS_CONF_OPTS += -Dgudev=false 58endif 59 60ifeq ($(BR2_PACKAGE_LIBARCHIVE),y) 61GVFS_DEPENDENCIES += libarchive 62GVFS_CONF_OPTS += -Darchive=true 63else 64GVFS_CONF_OPTS += -Darchive=false 65endif 66 67ifeq ($(BR2_PACKAGE_LIBBLURAY),y) 68GVFS_DEPENDENCIES += libbluray 69GVFS_CONF_OPTS += -Dbluray=true 70else 71GVFS_CONF_OPTS += -Dbluray=false 72endif 73 74ifeq ($(BR2_PACKAGE_LIBCAP)$(BR2_PACKAGE_POLKIT),yy) 75GVFS_DEPENDENCIES += libcap polkit 76GVFS_CONF_OPTS += -Dadmin=true 77else 78GVFS_CONF_OPTS += -Dadmin=false 79endif 80 81ifeq ($(BR2_PACKAGE_LIBCDIO_PARANOIA)$(BR2_PACKAGE_LIBGUDEV),yy) 82GVFS_DEPENDENCIES += libcdio-paranoia libgudev 83GVFS_CONF_OPTS += -Dcdda=true 84else 85GVFS_CONF_OPTS += -Dcdda=false 86endif 87 88ifeq ($(BR2_PACKAGE_LIBFUSE3),y) 89GVFS_DEPENDENCIES += libfuse3 90GVFS_CONF_OPTS += -Dfuse=true 91else 92GVFS_CONF_OPTS += -Dfuse=false 93endif 94 95# AFP support is anon-only without libgcrypt which isn't very useful 96ifeq ($(BR2_PACKAGE_LIBGCRYPT),y) 97GVFS_CONF_OPTS += \ 98 -Dafp=true \ 99 -Dgcrypt=true 100GVFS_DEPENDENCIES += libgcrypt 101else 102GVFS_CONF_OPTS += \ 103 -Dafp=false \ 104 -Dgcrypt=false 105endif 106 107ifeq ($(BR2_PACKAGE_LIBGPHOTO2)$(BR2_PACKAGE_LIBGUDEV),yy) 108GVFS_DEPENDENCIES += libgphoto2 libgudev 109GVFS_CONF_OPTS += -Dgphoto2=true 110else 111GVFS_CONF_OPTS += -Dgphoto2=false 112endif 113 114ifeq ($(BR2_PACKAGE_LIBNFS),y) 115GVFS_CONF_OPTS += -Dnfs=true 116GVFS_DEPENDENCIES += libnfs 117else 118GVFS_CONF_OPTS += -Dnfs=false 119endif 120 121ifeq ($(BR2_PACKAGE_LIBSECRET),y) 122GVFS_DEPENDENCIES += libsecret 123GVFS_CONF_OPTS += -Dkeyring=true 124else 125GVFS_CONF_OPTS += -Dkeyring=false 126endif 127 128ifeq ($(BR2_PACKAGE_LIBSOUP)$(BR2_PACKAGE_LIBXML2),yy) 129GVFS_DEPENDENCIES += libsoup libxml2 130GVFS_CONF_OPTS += -Dhttp=true 131else 132GVFS_CONF_OPTS += -Dhttp=false 133endif 134 135ifeq ($(BR2_PACKAGE_LIBUSB),y) 136GVFS_DEPENDENCIES += libusb 137GVFS_CONF_OPTS += -Dlibusb=true 138else 139GVFS_CONF_OPTS += -Dlibusb=false 140endif 141 142ifeq ($(BR2_PACKAGE_SAMBA4),y) 143GVFS_DEPENDENCIES += samba4 144GVFS_CONF_OPTS += -Dsmb=true 145else 146GVFS_CONF_OPTS += -Dsmb=false 147endif 148 149ifeq ($(BR2_PACKAGE_SYSTEMD),y) 150GVFS_DEPENDENCIES += systemd 151GVFS_CONF_OPTS += -Dlogind=true 152else 153GVFS_CONF_OPTS += \ 154 -Dlogind=false \ 155 -Dsystemduserunitdir=no \ 156 -Dtmpfilesdir=no 157endif 158 159define GVFS_REMOVE_TARGET_SCHEMAS 160 rm $(TARGET_DIR)/usr/share/glib-2.0/schemas/*.xml 161endef 162 163define GVFS_COMPILE_SCHEMAS 164 $(HOST_DIR)/bin/glib-compile-schemas --targetdir=$(TARGET_DIR)/usr/share/glib-2.0/schemas $(STAGING_DIR)/usr/share/glib-2.0/schemas 165endef 166 167GVFS_POST_INSTALL_TARGET_HOOKS += \ 168 GVFS_REMOVE_TARGET_SCHEMAS \ 169 GVFS_COMPILE_SCHEMAS 170 171$(eval $(meson-package)) 172