The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / gvfs / gvfs.mk
1 ################################################################################
2 #
3 # gvfs
4 #
5 ################################################################################
6
7 GVFS_VERSION_MAJOR = 1.16
8 GVFS_VERSION = $(GVFS_VERSION_MAJOR).2
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
15
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
19
20 GVFS_CONF_OPTS = \
21         --disable-gconf                 \
22         --disable-cdda                  \
23         --disable-obexftp               \
24         --disable-gphoto2               \
25         --disable-keyring               \
26         --disable-bash-completion       \
27         --disable-hal
28
29 ifeq ($(BR2_PACKAGE_AVAHI),y)
30 GVFS_DEPENDENCIES += avahi
31 GVFS_CONF_OPTS += --enable-avahi
32 else
33 GVFS_CONF_OPTS += --disable-avahi
34 endif
35
36 ifeq ($(BR2_PACKAGE_LIBARCHIVE),y)
37 GVFS_DEPENDENCIES += libarchive
38 GVFS_CONF_OPTS += --enable-archive
39 else
40 GVFS_CONF_OPTS += --disable-archive
41 endif
42
43 ifeq ($(BR2_PACKAGE_LIBFUSE),y)
44 GVFS_DEPENDENCIES += libfuse
45 GVFS_CONF_OPTS += --enable-fuse
46 else
47 GVFS_CONF_OPTS += --disable-fuse
48 endif
49
50 ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
51 GVFS_DEPENDENCIES += libgcrypt
52 endif
53
54 ifeq ($(BR2_PACKAGE_LIBSOUP),y)
55 GVFS_DEPENDENCIES += libsoup
56 GVFS_CONF_OPTS += --enable-http
57 else
58 GVFS_CONF_OPTS += --disable-http
59 endif
60
61 ifeq ($(BR2_PACKAGE_SAMBA4),y)
62 GVFS_DEPENDENCIES += samba4
63 GVFS_CONF_OPTS += \
64         --enable-samba \
65         --with-samba-includes=$(STAGING_DIR)/usr/include/samba-4.0 \
66         --with-samba-libs=$(STAGING_DIR)/usr/lib \
67         ac_cv_lib_smbclient_smbc_option_get=yes
68 else
69 GVFS_CONF_OPTS += --disable-samba
70 endif
71
72 define GVFS_REMOVE_USELESS_BINARY
73         rm $(TARGET_DIR)/usr/bin/gvfs-less
74 endef
75
76 define GVFS_REMOVE_TARGET_SCHEMAS
77         rm $(TARGET_DIR)/usr/share/glib-2.0/schemas/*.xml
78 endef
79
80 define GVFS_COMPILE_SCHEMAS
81         $(HOST_DIR)/usr/bin/glib-compile-schemas --targetdir=$(TARGET_DIR)/usr/share/glib-2.0/schemas $(STAGING_DIR)/usr/share/glib-2.0/schemas
82 endef
83
84 GVFS_POST_INSTALL_TARGET_HOOKS += \
85         GVFS_REMOVE_USELESS_BINARY      \
86         GVFS_REMOVE_TARGET_SCHEMAS      \
87         GVFS_COMPILE_SCHEMAS
88
89 $(eval $(autotools-package))