1 ################################################################################
5 ################################################################################
7 GVFS_VERSION_MAJOR
= 1.30
8 GVFS_VERSION
= $(GVFS_VERSION_MAJOR
).3
9 GVFS_SOURCE
= gvfs-
$(GVFS_VERSION
).
tar.xz
10 GVFS_SITE
= http
://ftp.gnome.org
/pub
/GNOME
/sources
/gvfs
/$(GVFS_VERSION_MAJOR
)
11 GVFS_INSTALL_STAGING
= YES
12 GVFS_DEPENDENCIES
= host-pkgconf host-libglib2 libglib2 dbus shared-mime-info
13 GVFS_LICENSE
= LGPLv2
+
14 GVFS_LICENSE_FILES
= COPYING
16 # Export ac_cv_path_LIBGCRYPT_CONFIG unconditionally to prevent
17 # build system from searching the host paths.
18 GVFS_CONF_ENV
= ac_cv_path_LIBGCRYPT_CONFIG
=$(STAGING_DIR
)/usr
/bin
/libgcrypt-config
20 # Most of these are missing library support
24 --disable-bash-completion \
37 ifeq ($(BR2_PACKAGE_AVAHI
),y
)
38 GVFS_DEPENDENCIES
+= avahi
39 GVFS_CONF_OPTS
+= --enable-avahi
41 GVFS_CONF_OPTS
+= --disable-avahi
44 ifeq ($(BR2_PACKAGE_HAS_UDEV
),y
)
45 GVFS_DEPENDENCIES
+= udev
48 ifeq ($(BR2_PACKAGE_LIBGUDEV
),y
)
49 GVFS_DEPENDENCIES
+= libgudev
52 ifeq ($(BR2_PACKAGE_LIBARCHIVE
),y
)
53 GVFS_DEPENDENCIES
+= libarchive
56 --with-archive-includes
=$(STAGING_DIR
)/usr \
57 --with-archive-libs
=$(STAGING_DIR
)/usr
59 GVFS_CONF_OPTS
+= --disable-archive
62 ifeq ($(BR2_PACKAGE_LIBBLURAY
),y
)
63 GVFS_DEPENDENCIES
+= libbluray
64 GVFS_CONF_OPTS
+= --enable-bluray
66 GVFS_CONF_OPTS
+= --disable-bluray
69 ifeq ($(BR2_PACKAGE_LIBFUSE
),y
)
70 GVFS_DEPENDENCIES
+= libfuse
71 GVFS_CONF_OPTS
+= --enable-fuse
73 GVFS_CONF_OPTS
+= --disable-fuse
76 # AFP support is anon-only without libgcrypt which isn't very useful
77 ifeq ($(BR2_PACKAGE_LIBGCRYPT
),y
)
78 GVFS_CONF_OPTS
+= --enable-afp
79 GVFS_DEPENDENCIES
+= libgcrypt
81 GVFS_CONF_OPTS
+= --disable-afp
84 ifeq ($(BR2_PACKAGE_LIBGTK3
),y
)
85 GVFS_CONF_OPTS
+= --enable-gtk
86 GVFS_DEPENDENCIES
+= libgtk3
88 GVFS_CONF_OPTS
+= --disable-gtk
91 ifeq ($(BR2_PACKAGE_LIBNFS
),y
)
92 GVFS_CONF_OPTS
+= --enable-nfs
93 GVFS_DEPENDENCIES
+= libnfs
95 GVFS_CONF_OPTS
+= --disable-nfs
98 ifeq ($(BR2_PACKAGE_LIBSOUP
),y
)
99 GVFS_DEPENDENCIES
+= libsoup
100 GVFS_CONF_OPTS
+= --enable-http
102 GVFS_CONF_OPTS
+= --disable-http
105 ifeq ($(BR2_PACKAGE_SAMBA4
),y
)
106 GVFS_DEPENDENCIES
+= samba4
109 --with-samba-includes
=$(STAGING_DIR
)/usr
/include/samba-4.0 \
110 --with-samba-libs
=$(STAGING_DIR
)/usr
/lib \
111 ac_cv_lib_smbclient_smbc_option_get
=yes
113 GVFS_CONF_OPTS
+= --disable-samba
116 ifeq ($(BR2_PACKAGE_SYSTEMD
),y
)
117 GVFS_DEPENDENCIES
+= systemd
119 GVFS_CONF_OPTS
+= --disable-libsystemd-login
122 define GVFS_REMOVE_USELESS_BINARY
123 rm $(TARGET_DIR
)/usr
/bin
/gvfs-less
126 define GVFS_REMOVE_TARGET_SCHEMAS
127 rm $(TARGET_DIR
)/usr
/share
/glib-2.0
/schemas
/*.xml
130 define GVFS_COMPILE_SCHEMAS
131 $(HOST_DIR
)/usr
/bin
/glib-compile-schemas
--targetdir
=$(TARGET_DIR
)/usr
/share
/glib-2.0
/schemas
$(STAGING_DIR
)/usr
/share
/glib-2.0
/schemas
134 GVFS_POST_INSTALL_TARGET_HOOKS
+= \
135 GVFS_REMOVE_USELESS_BINARY \
136 GVFS_REMOVE_TARGET_SCHEMAS \
139 $(eval
$(autotools-package
))