1
0

Makefile 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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:=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:=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. endef
  49. define Package/libfuse/description
  50. $(call Package/fuse/Default/description)
  51. This package contains the FUSE shared libraries, needed by other programs.
  52. - libfuse
  53. - libulockmgr
  54. endef
  55. # generic args
  56. CONFIGURE_ARGS += \
  57. --enable-shared \
  58. --enable-static \
  59. --enable-lib \
  60. --enable-util \
  61. --disable-rpath \
  62. --disable-example \
  63. --disable-mtab
  64. define Build/InstallDev
  65. $(INSTALL_DIR) $(1)/usr/include
  66. $(CP) $(PKG_INSTALL_DIR)/usr/include/{fuse,fuse.h,ulockmgr.h} $(1)/usr/include/
  67. $(INSTALL_DIR) $(1)/usr/lib
  68. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{fuse,ulockmgr}.{a,so*} $(1)/usr/lib/
  69. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  70. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fuse.pc $(1)/usr/lib/pkgconfig/
  71. $(SED) 's,-I$$$${includedir}/fuse,,g' $(1)/usr/lib/pkgconfig/fuse.pc
  72. $(SED) 's,-L$$$${libdir},,g' $(1)/usr/lib/pkgconfig/fuse.pc
  73. endef
  74. define Package/fuse-utils/install
  75. $(INSTALL_DIR) $(1)/sbin
  76. $(CP) $(PKG_INSTALL_DIR)/sbin/mount.fuse $(1)/sbin/
  77. $(INSTALL_DIR) $(1)/usr/bin
  78. $(CP) $(PKG_INSTALL_DIR)/usr/bin/{fusermount,ulockmgr_server} $(1)/usr/bin/
  79. endef
  80. define Package/libfuse/install
  81. $(INSTALL_DIR) $(1)/usr/lib
  82. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{fuse,ulockmgr}.so.* $(1)/usr/lib/
  83. endef
  84. $(eval $(call BuildPackage,fuse-utils))
  85. $(eval $(call BuildPackage,libfuse))