Makefile 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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.7
  11. PKG_RELEASE:=2
  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:=832432d1ad4f833c20e13b57cf40ce5277a9d33e483205fc63c78111b3358874
  15. PKG_LICENSE:=LGPLv2.1 GPLv2
  16. PKG_LICENSE_FILES:=COPYING.LIB COPYING
  17. PKG_CPE_ID:=cpe:/a:fuse_project:fuse
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/fuse/Default
  21. TITLE:=FUSE
  22. URL:=http://fuse.sourceforge.net/
  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. endef
  35. define Package/fuse-utils/description
  36. $(call Package/fuse/Default/description)
  37. This package contains the FUSE utilities.
  38. - fusermount
  39. - ulockmgr_server
  40. endef
  41. define Package/libfuse
  42. $(call Package/fuse/Default)
  43. SECTION:=libs
  44. CATEGORY:=Libraries
  45. TITLE+= (library)
  46. DEPENDS:=+kmod-fuse +libpthread
  47. SUBMENU:=Filesystem
  48. ABI_VERSION:=1
  49. endef
  50. define Package/libfuse/description
  51. $(call Package/fuse/Default/description)
  52. This package contains the FUSE shared libraries, needed by other programs.
  53. - libfuse
  54. - libulockmgr
  55. endef
  56. # generic args
  57. CONFIGURE_ARGS += \
  58. --enable-shared \
  59. --enable-static \
  60. --enable-lib \
  61. --enable-util \
  62. --disable-rpath \
  63. --disable-example \
  64. --disable-mtab
  65. define Build/InstallDev
  66. $(INSTALL_DIR) $(1)/usr/include
  67. $(CP) $(PKG_INSTALL_DIR)/usr/include/{fuse,fuse.h,ulockmgr.h} $(1)/usr/include/
  68. $(INSTALL_DIR) $(1)/usr/lib
  69. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{fuse,ulockmgr}.{a,so*} $(1)/usr/lib/
  70. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  71. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fuse.pc $(1)/usr/lib/pkgconfig/
  72. $(SED) 's,-I$$$${includedir}/fuse,,g' $(1)/usr/lib/pkgconfig/fuse.pc
  73. $(SED) 's,-L$$$${libdir},,g' $(1)/usr/lib/pkgconfig/fuse.pc
  74. endef
  75. define Package/fuse-utils/install
  76. $(INSTALL_DIR) $(1)/sbin
  77. $(CP) $(PKG_INSTALL_DIR)/sbin/mount.fuse $(1)/sbin/
  78. $(INSTALL_DIR) $(1)/usr/bin
  79. $(CP) $(PKG_INSTALL_DIR)/usr/bin/{fusermount,ulockmgr_server} $(1)/usr/bin/
  80. endef
  81. define Package/libfuse/install
  82. $(INSTALL_DIR) $(1)/usr/lib
  83. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{fuse,ulockmgr}.so.* $(1)/usr/lib/
  84. endef
  85. $(eval $(call BuildPackage,fuse-utils))
  86. $(eval $(call BuildPackage,libfuse))