gvfs.mk 3.7 KB

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