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.

104 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.9.3
  11. PKG_RELEASE:=1
  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:=cd45270a064d2ae14f17cfc914f1555106d6c5091025b0b2698b860399d4ede6
  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. PKG_BUILD_DEPENDS:=meson/host
  20. include $(INCLUDE_DIR)/package.mk
  21. include ../../devel/meson/meson.mk
  22. define Package/fuse3/Default
  23. TITLE:=FUSE
  24. URL:=https://github.com/libfuse/libfuse
  25. SUBMENU:=Filesystem
  26. endef
  27. define Package/fuse3/Default/description
  28. fuse3 (Filesystem in UserSpacE)
  29. endef
  30. define Package/libfuse3
  31. $(call Package/fuse3/Default)
  32. TITLE+= library
  33. URL:=https://github.com/libfuse/libfuse
  34. SECTION:=libs
  35. CATEGORY:=Libraries
  36. DEPENDS:=+kmod-fuse +libpthread
  37. ABI_VERSION:=3
  38. LICENSE:=LGPL-2.1-only
  39. LICENSE_FILES:=LGPL2.txt
  40. endef
  41. define Package/libfuse3/description
  42. $(call Package/fuse3/Default/description)
  43. This package contains the fuse3 shared libraries, needed by other programs.
  44. - libfuse3
  45. endef
  46. define Package/fuse3-utils
  47. $(call Package/fuse3/Default)
  48. SECTION:=utils
  49. CATEGORY:=Utilities
  50. DEPENDS:=+libfuse3
  51. TITLE+= (utilities)
  52. SUBMENU:=Filesystem
  53. LICENSE:=GPL-2.0-only
  54. LICENSE_FILES:=COPYING
  55. endef
  56. define Package/fuse3-utils/description
  57. $(call Package/fuse3/Default/description)
  58. This package contains the FUSE utilities.
  59. - fusermount3
  60. - mount.fuse3
  61. endef
  62. MESON_ARGS += \
  63. -Ddisable-mtab=true \
  64. -Dudevrulesdir=/dev/null \
  65. -Dutils=$(if $(CONFIG_PACKAGE_fuse3-utils),true,false) \
  66. -Dexamples=false \
  67. -Duseroot=false
  68. define Build/InstallDev
  69. $(INSTALL_DIR) $(1)/usr/include/fuse3
  70. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/fuse3/*.h $(1)/usr/include/fuse3
  71. $(INSTALL_DIR) $(1)/usr/lib
  72. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfuse3.so* $(1)/usr/lib/
  73. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  74. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fuse3.pc $(1)/usr/lib/pkgconfig/
  75. endef
  76. define Package/libfuse3/install
  77. $(INSTALL_DIR) $(1)/usr/lib
  78. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfuse3.so.* $(1)/usr/lib/
  79. endef
  80. define Package/fuse3-utils/install
  81. $(INSTALL_DIR) $(1)/usr/bin
  82. $(CP) $(PKG_INSTALL_DIR)/usr/bin/fusermount3 $(1)/usr/bin/
  83. $(INSTALL_DIR) $(1)/usr/sbin
  84. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/mount.fuse3 $(1)/usr/sbin/
  85. endef
  86. $(eval $(call BuildPackage,libfuse3))
  87. $(eval $(call BuildPackage,fuse3-utils))