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.

107 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:=fuse
  10. PKG_VERSION:=2.9.9
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://github.com/libfuse/libfuse/releases/download/$(PKG_NAME)-$(PKG_VERSION)
  14. PKG_HASH:=d0e69d5d608cc22ff4843791ad097f554dd32540ddc9bed7638cc6fea7c1b4b5
  15. PKG_MAINTAINER:=
  16. PKG_CPE_ID:=cpe:/a:fuse_project:fuse
  17. PKG_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/fuse/Default
  21. TITLE:=FUSE
  22. URL:=https://github.com/libfuse/libfuse
  23. endef
  24. define Package/fuse/Default/description
  25. FUSE (Filesystem in UserSpacE)
  26. endef
  27. define Package/fuse-utils
  28. $(call Package/fuse/Default)
  29. SECTION:=utils
  30. CATEGORY:=Utilities
  31. DEPENDS:=+libfuse
  32. TITLE+= (utilities)
  33. SUBMENU:=Filesystem
  34. LICENSE:=GPL-2.0-only
  35. LICENSE_FILES:=COPYING
  36. endef
  37. define Package/fuse-utils/description
  38. $(call Package/fuse/Default/description)
  39. This package contains the FUSE utilities.
  40. - fusermount
  41. - ulockmgr_server
  42. endef
  43. define Package/libfuse
  44. $(call Package/fuse/Default)
  45. SECTION:=libs
  46. CATEGORY:=Libraries
  47. TITLE+= (library)
  48. DEPENDS:=+kmod-fuse +libpthread
  49. SUBMENU:=Filesystem
  50. ABI_VERSION:=1
  51. LICENSE:=LGPL-2.1-only
  52. LICENSE_FILES:=COPYING.LIB
  53. endef
  54. define Package/libfuse/description
  55. $(call Package/fuse/Default/description)
  56. This package contains the FUSE shared libraries, needed by other programs.
  57. - libfuse
  58. - libulockmgr
  59. endef
  60. # generic args
  61. CONFIGURE_ARGS += \
  62. --enable-shared \
  63. --enable-static \
  64. --enable-lib \
  65. --enable-util \
  66. --disable-rpath \
  67. --disable-example \
  68. --disable-mtab
  69. define Build/InstallDev
  70. $(INSTALL_DIR) $(1)/usr/include
  71. $(CP) $(PKG_INSTALL_DIR)/usr/include/{fuse,fuse.h,ulockmgr.h} $(1)/usr/include/
  72. $(INSTALL_DIR) $(1)/usr/lib
  73. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{fuse,ulockmgr}.{a,so*} $(1)/usr/lib/
  74. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  75. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fuse.pc $(1)/usr/lib/pkgconfig/
  76. $(SED) 's,-I$$$${includedir}/fuse,,g' $(1)/usr/lib/pkgconfig/fuse.pc
  77. $(SED) 's,-L$$$${libdir},,g' $(1)/usr/lib/pkgconfig/fuse.pc
  78. endef
  79. define Package/fuse-utils/install
  80. $(INSTALL_DIR) $(1)/sbin
  81. $(CP) $(PKG_INSTALL_DIR)/sbin/mount.fuse $(1)/sbin/
  82. $(INSTALL_DIR) $(1)/usr/bin
  83. $(CP) $(PKG_INSTALL_DIR)/usr/bin/{fusermount,ulockmgr_server} $(1)/usr/bin/
  84. endef
  85. define Package/libfuse/install
  86. $(INSTALL_DIR) $(1)/usr/lib
  87. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{fuse,ulockmgr}.so.* $(1)/usr/lib/
  88. endef
  89. $(eval $(call BuildPackage,libfuse))
  90. $(eval $(call BuildPackage,fuse-utils))