You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

103 lines
2.6 KiB

  1. #
  2. # Copyright (C) 2006-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. include $(INCLUDE_DIR)/kernel.mk
  9. PKG_NAME:=fuse3
  10. PKG_VERSION:=3.10.4
  11. PKG_RELEASE:=$(AUTORELEASE)
  12. PKG_SOURCE:=fuse-$(PKG_VERSION).tar.xz
  13. PKG_SOURCE_URL:=https://github.com/libfuse/libfuse/releases/download/fuse-$(PKG_VERSION)
  14. PKG_HASH:=9365b74fd8471caecdb3cc5adf25a821f70a931317ee9103d15bd39089e3590d
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/fuse-$(PKG_VERSION)
  16. PKG_MAINTAINER:=
  17. PKG_CPE_ID:=cpe:/a:fuse_project:fuse
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/meson.mk
  21. define Package/fuse3/Default
  22. TITLE:=FUSE
  23. URL:=https://github.com/libfuse/libfuse
  24. SUBMENU:=Filesystem
  25. endef
  26. define Package/fuse3/Default/description
  27. fuse3 (Filesystem in UserSpacE)
  28. endef
  29. define Package/libfuse3
  30. $(call Package/fuse3/Default)
  31. TITLE+= library
  32. URL:=https://github.com/libfuse/libfuse
  33. SECTION:=libs
  34. CATEGORY:=Libraries
  35. DEPENDS:=+kmod-fuse +libpthread
  36. ABI_VERSION:=3
  37. LICENSE:=LGPL-2.1-only
  38. LICENSE_FILES:=LGPL2.txt
  39. endef
  40. define Package/libfuse3/description
  41. $(call Package/fuse3/Default/description)
  42. This package contains the fuse3 shared libraries, needed by other programs.
  43. - libfuse3
  44. endef
  45. define Package/fuse3-utils
  46. $(call Package/fuse3/Default)
  47. SECTION:=utils
  48. CATEGORY:=Utilities
  49. DEPENDS:=+libfuse3
  50. TITLE+= (utilities)
  51. SUBMENU:=Filesystem
  52. LICENSE:=GPL-2.0-only
  53. LICENSE_FILES:=COPYING
  54. endef
  55. define Package/fuse3-utils/description
  56. $(call Package/fuse3/Default/description)
  57. This package contains the FUSE utilities.
  58. - fusermount3
  59. - mount.fuse3
  60. endef
  61. MESON_ARGS += \
  62. -Ddisable-mtab=true \
  63. -Dudevrulesdir=/dev/null \
  64. -Dutils=$(if $(CONFIG_PACKAGE_fuse3-utils),true,false) \
  65. -Dexamples=false \
  66. -Duseroot=false
  67. define Build/InstallDev
  68. $(INSTALL_DIR) $(1)/usr/include/fuse3
  69. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/fuse3/*.h $(1)/usr/include/fuse3
  70. $(INSTALL_DIR) $(1)/usr/lib
  71. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfuse3.so* $(1)/usr/lib/
  72. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  73. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fuse3.pc $(1)/usr/lib/pkgconfig/
  74. endef
  75. define Package/libfuse3/install
  76. $(INSTALL_DIR) $(1)/usr/lib
  77. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfuse3.so.* $(1)/usr/lib/
  78. endef
  79. define Package/fuse3-utils/install
  80. $(INSTALL_DIR) $(1)/usr/bin
  81. $(CP) $(PKG_INSTALL_DIR)/usr/bin/fusermount3 $(1)/usr/bin/
  82. $(INSTALL_DIR) $(1)/usr/sbin
  83. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/mount.fuse3 $(1)/usr/sbin/
  84. endef
  85. $(eval $(call BuildPackage,libfuse3))
  86. $(eval $(call BuildPackage,fuse3-utils))