/package/gvfs/gvfs.mk

https://gitlab.com/birdland/buildroot-bav335x · Makefile · 139 lines · 110 code · 20 blank · 9 comment · 0 complexity · dfaf47ec241ae08de6b1929fa15c2d22 MD5 · raw file

  1. ################################################################################
  2. #
  3. # gvfs
  4. #
  5. ################################################################################
  6. GVFS_VERSION_MAJOR = 1.30
  7. GVFS_VERSION = $(GVFS_VERSION_MAJOR).1.1
  8. GVFS_SOURCE = gvfs-$(GVFS_VERSION).tar.xz
  9. GVFS_SITE = http://ftp.gnome.org/pub/GNOME/sources/gvfs/$(GVFS_VERSION_MAJOR)
  10. GVFS_INSTALL_STAGING = YES
  11. GVFS_DEPENDENCIES = host-pkgconf host-libglib2 libglib2 dbus shared-mime-info
  12. GVFS_LICENSE = LGPLv2+
  13. GVFS_LICENSE_FILES = COPYING
  14. # Export ac_cv_path_LIBGCRYPT_CONFIG unconditionally to prevent
  15. # build system from searching the host paths.
  16. GVFS_CONF_ENV = ac_cv_path_LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-config
  17. # Most of these are missing library support
  18. GVFS_CONF_OPTS = \
  19. --disable-afc \
  20. --disable-admin \
  21. --disable-bash-completion \
  22. --disable-cdda \
  23. --disable-gconf \
  24. --disable-gcr \
  25. --disable-gdu \
  26. --disable-goa \
  27. --disable-google \
  28. --disable-gphoto2 \
  29. --disable-hal \
  30. --disable-keyring \
  31. --disable-libmtp \
  32. --disable-udisks2
  33. ifeq ($(BR2_PACKAGE_AVAHI),y)
  34. GVFS_DEPENDENCIES += avahi
  35. GVFS_CONF_OPTS += --enable-avahi
  36. else
  37. GVFS_CONF_OPTS += --disable-avahi
  38. endif
  39. ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
  40. GVFS_DEPENDENCIES += udev
  41. endif
  42. ifeq ($(BR2_PACKAGE_LIBGUDEV),y)
  43. GVFS_DEPENDENCIES += libgudev
  44. endif
  45. ifeq ($(BR2_PACKAGE_LIBARCHIVE),y)
  46. GVFS_DEPENDENCIES += libarchive
  47. GVFS_CONF_OPTS += \
  48. --enable-archive \
  49. --with-archive-includes=$(STAGING_DIR)/usr \
  50. --with-archive-libs=$(STAGING_DIR)/usr
  51. else
  52. GVFS_CONF_OPTS += --disable-archive
  53. endif
  54. ifeq ($(BR2_PACKAGE_LIBBLURAY),y)
  55. GVFS_DEPENDENCIES += libbluray
  56. GVFS_CONF_OPTS += --enable-bluray
  57. else
  58. GVFS_CONF_OPTS += --disable-bluray
  59. endif
  60. ifeq ($(BR2_PACKAGE_LIBFUSE),y)
  61. GVFS_DEPENDENCIES += libfuse
  62. GVFS_CONF_OPTS += --enable-fuse
  63. else
  64. GVFS_CONF_OPTS += --disable-fuse
  65. endif
  66. # AFP support is anon-only without libgcrypt which isn't very useful
  67. ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
  68. GVFS_CONF_OPTS += --enable-afp
  69. GVFS_DEPENDENCIES += libgcrypt
  70. else
  71. GVFS_CONF_OPTS += --disable-afp
  72. endif
  73. ifeq ($(BR2_PACKAGE_LIBGTK3),y)
  74. GVFS_CONF_OPTS += --enable-gtk
  75. GVFS_DEPENDENCIES += libgtk3
  76. else
  77. GVFS_CONF_OPTS += --disable-gtk
  78. endif
  79. ifeq ($(BR2_PACKAGE_LIBNFS),y)
  80. GVFS_CONF_OPTS += --enable-nfs
  81. GVFS_DEPENDENCIES += libnfs
  82. else
  83. GVFS_CONF_OPTS += --disable-nfs
  84. endif
  85. ifeq ($(BR2_PACKAGE_LIBSOUP),y)
  86. GVFS_DEPENDENCIES += libsoup
  87. GVFS_CONF_OPTS += --enable-http
  88. else
  89. GVFS_CONF_OPTS += --disable-http
  90. endif
  91. ifeq ($(BR2_PACKAGE_SAMBA4),y)
  92. GVFS_DEPENDENCIES += samba4
  93. GVFS_CONF_OPTS += \
  94. --enable-samba \
  95. --with-samba-includes=$(STAGING_DIR)/usr/include/samba-4.0 \
  96. --with-samba-libs=$(STAGING_DIR)/usr/lib \
  97. ac_cv_lib_smbclient_smbc_option_get=yes
  98. else
  99. GVFS_CONF_OPTS += --disable-samba
  100. endif
  101. ifeq ($(BR2_PACKAGE_SYSTEMD),y)
  102. GVFS_DEPENDENCIES += systemd
  103. else
  104. GVFS_CONF_OPTS += --disable-libsystemd-login
  105. endif
  106. define GVFS_REMOVE_USELESS_BINARY
  107. rm $(TARGET_DIR)/usr/bin/gvfs-less
  108. endef
  109. define GVFS_REMOVE_TARGET_SCHEMAS
  110. rm $(TARGET_DIR)/usr/share/glib-2.0/schemas/*.xml
  111. endef
  112. define GVFS_COMPILE_SCHEMAS
  113. $(HOST_DIR)/usr/bin/glib-compile-schemas --targetdir=$(TARGET_DIR)/usr/share/glib-2.0/schemas $(STAGING_DIR)/usr/share/glib-2.0/schemas
  114. endef
  115. GVFS_POST_INSTALL_TARGET_HOOKS += \
  116. GVFS_REMOVE_USELESS_BINARY \
  117. GVFS_REMOVE_TARGET_SCHEMAS \
  118. GVFS_COMPILE_SCHEMAS
  119. $(eval $(autotools-package))